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

[wenet] support context biasing in bin/recognize.py #2136

Merged
merged 1 commit into from
Nov 12, 2023
Merged

Conversation

cdliang11
Copy link
Collaborator

热词列表:

荣誉伟
北京
人名大会堂
# 不使用热词
python wenet/bin/recognize.py --modes "attention_rescoring" --config 20220506_u2pp_conformer_exp/train.yaml --data_type "raw" --test_data data.list --checkpoint 20220506_u2pp_conformer_exp/final.pt  --dict 20220506_u2pp_conformer_exp/units.txt --result_dir result
2023-11-12 22:28:37,392 INFO attention_rescoring 1000003_0f90da0d.wav 日本内阁官房长官荣誉为表示
# 使用热词
python wenet/bin/recognize.py --modes "attention_rescoring" --config 20220506_u2pp_conformer_exp/train.yaml --data_type "raw" --test_data data.list --checkpoint 20220506_u2pp_conformer_exp/final.pt  --dict 20220506_u2pp_conformer_exp/units.txt --result_dir result --context_graph_score 6.0 --context_list_path hotword.txt --context_bias_mode decoding-graph
2023-11-12 22:29:16,374 INFO attention_rescoring 1000003_0f90da0d.wav 日本内阁官房长官荣誉伟表示

@robin1001 robin1001 merged commit 9575e61 into main Nov 12, 2023
6 checks passed
@robin1001 robin1001 deleted the chengdong-bias branch November 12, 2023 14:56
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

Successfully merging this pull request may close these issues.

2 participants