Skip to content

Commit

Permalink
Add install lm
Browse files Browse the repository at this point in the history
  • Loading branch information
wannaphong committed Aug 11, 2022
1 parent 748134b commit d8ccc0e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ Model homepage: https://huggingface.co/airesearch/wav2vec2-large-xlsr-53-th
pip install pythaiasr
```

**For Wav2Vec2 with language model:**
if you want to use wannaphong/wav2vec2-large-xlsr-53-th-cv8-* model, you needs to install by the step.

```sh
pip install pythaiasr[lm]
pip install https://github.com/kpu/kenlm/archive/refs/heads/master.zip
```

## Usage

```python
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def read(*paths):
extras = {
"lm":[
"pyctcdecode>=0.4.0",
"kenlm @ https://github.com/kpu/kenlm/archive/refs/heads/master.zip"
# "kenlm @ https://github.com/kpu/kenlm/archive/refs/heads/master.zip"
]
}

Expand Down

0 comments on commit d8ccc0e

Please sign in to comment.