Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flashlight decoder for ASR #9103

Open
Mark-Serin opened this issue May 3, 2024 · 4 comments
Open

Flashlight decoder for ASR #9103

Mark-Serin opened this issue May 3, 2024 · 4 comments
Assignees

Comments

@Mark-Serin
Copy link

At this page you describe how to use flashlight decoder by launching your python script. But I can't find any parameters it should have. In further NeMo versions you have installation guide but no python script to use it.

Can you please help me with that? This feature (flashlight decoder) is still in progress or deprecated?

@titu1994
Copy link
Collaborator

titu1994 commented May 3, 2024

Yes it's supported, please find installation instructions here - https://docs.nvidia.com/nemo-framework/user-guide/latest/nemotoolkit/asr/asr_language_modeling.html#n-gram-language-modeling

That bash script has to be run by users as is, rather than python to install flashlight

@Mark-Serin
Copy link
Author

I followed this guide but it refers to scrips that don't exist anymore. For example the following script is not relevant already:

python eval_beamsearch_ngram.py nemo_model_file=<path to the .nemo file of the model> \
       input_manifest=<path to the evaluation JSON manifest file \
       kenlm_model_file=<path to the binary KenLM model> \
       beam_width=[<list of the beam widths, separated with commas>] \
       beam_alpha=[<list of the beam alphas, separated with commas>] \
       beam_beta=[<list of the beam betas, separated with commas>] \
       preds_output_folder=<optional folder to store the predictions> \
       probs_cache_file=null \
       decoding_mode=beamsearch_ngram \
       decoding_strategy="<Beam library such as beam, pyctcdecode or flashlight>"

because there is no eval_breamsearch_ngram.py here.

@titu1994
Copy link
Collaborator

@karpnv could you update docs ?

@Mark-Serin
Copy link
Author

Mark-Serin commented May 13, 2024

NeMo of previous versions has it but there are no such parameters as decoding_strategy. I mean it can't be used as flashlight. And even in older versions of NeMo it's absent. For example in 1.18.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants