icefall
icefall copied to clipboard
use compile_hlg_using_openfst.py
now i have lm.arpa 、lexicon.txt 、wordlist ,Which script should I use to generate HLG icefall/egs/librispeech/ASR/prepare.sh ?
You can either use compile_hlg_using_openfst.py (if your G is very large and if compile_hlg.py throws OOM) or compile_hlg.py.
You can choose any of them if they both work.
https://github.com/k2-fsa/icefall/blob/b293db4baf1606cfe95066cf28ffde56173a7ddb/egs/librispeech/ASR/prepare.sh#L309-L311
You can either use
compile_hlg_using_openfst.py(if your G is very large and ifcompile_hlg.pythrows OOM) orcompile_hlg.py.You can choose any of them if they both work.
https://github.com/k2-fsa/icefall/blob/b293db4baf1606cfe95066cf28ffde56173a7ddb/egs/librispeech/ASR/prepare.sh#L309-L311 Which script got that L_disambig.fst
I used make_hlg.sh before
I used make_hlg.sh before
I think make_hlg.sh invokes compile_hlg.py. You can replace it with compile_hlg_using_openfst.py if you encounter OOM due to using a large G.
I used make_hlg.sh before
I think
make_hlg.shinvokescompile_hlg.py. You can replace it withcompile_hlg_using_openfst.pyif you encounter OOM due to using a large G.
but the required documents are not the same,compile_hlg_using_openfst.py need L_disambig.fst etc , make_hlg.sh generate L_disambig.pt etc
Required files are generated by
https://github.com/k2-fsa/icefall/blob/fbc88948044278b687a57309248eb2ae6df0a415/egs/librispeech/ASR/prepare.sh#L172-L187
ok,thanks