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

recognize.py --dict option #2584

Open
chopperWang opened this issue Jul 26, 2024 · 3 comments
Open

recognize.py --dict option #2584

chopperWang opened this issue Jul 26, 2024 · 3 comments
Labels

Comments

@chopperWang
Copy link

在examples/aishell/so/run.sh中,stage 8.2

  python wenet/bin/recognize.py --gpu 0 \
    --modes $decode_modes \
    --config $dir/train.yaml \
    --data_type $data_type \
    --test_data data/test/data.list \
    --checkpoint $decode_checkpoint \
    --beam_size 10 \
    --batch_size 16 \
    --blank_penalty 0.0 \
    --dict $dict \
    --word data/local/hlg/words.txt \
    --hlg data/local/hlg/HLG.pt \
    --lm_scale $lm_scale \
    --decoder_scale $decoder_scale \
    --r_decoder_scale $r_decoder_scale \
    --result_dir $dir \

中有--dict参数,但是wenet/bin/recognize.py中没有这个选项,运行时会报错,该怎么解决呢?

@Mddct
Copy link
Collaborator

Mddct commented Aug 8, 2024

wenet 版本? 较新版本 dict已经放到yaml里边的tokenizer里

@chopperWang
Copy link
Author

wenet 版本? 较新版本 dict已经放到yaml里边的tokenizer里

用的最新版本的,运行examples/aishell/so/run.sh,stage 8.2仍有--dict参数

@robin1001
Copy link
Collaborator

可以帮忙提个 PR 去 一下

@github-actions github-actions bot added the Stale label Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants