From d8ccc0e16ec3b825fc0e0b89b0dc63aec06b514c Mon Sep 17 00:00:00 2001 From: Wannaphong Phatthiyaphaibun Date: Thu, 11 Aug 2022 16:18:52 +0700 Subject: [PATCH] Add install lm --- README.md | 8 ++++++++ setup.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 971bf99..9d4f15a 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/setup.py b/setup.py index af96703..d8fb2d3 100644 --- a/setup.py +++ b/setup.py @@ -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" ] }