Skip to content

Commit

Permalink
Merge pull request #664 from alibaba-damo-academy/dev_lhn
Browse files Browse the repository at this point in the history
fix english hotwords bug
  • Loading branch information
hnluo authored Jun 26, 2023
2 parents 39b5de0 + e832927 commit 023f006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion funasr/bin/asr_infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ def seg_tokenize(txt, seg_dict):
hotword_str_list = []
for hw in hotword_list_or_file.strip().split():
hotword_str_list.append(hw)
hw_list = hw
hw_list = hw.strip().split()
if seg_dict is not None:
hw_list = seg_tokenize(hw_list, seg_dict)
hotword_list.append(self.converter.tokens2ids(hw_list))
Expand Down

0 comments on commit 023f006

Please sign in to comment.