Skip to content

Commit

Permalink
remove print
Browse files Browse the repository at this point in the history
  • Loading branch information
zh794390558 committed Jun 8, 2023
1 parent d53c499 commit 89d959f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions paddlespeech/t2s/frontend/polyphonic.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ def __init__(self):

def correct_pronunciation(self, word, pinyin):
# 词汇被词典收录则返回纠正后的读音
print(word, pinyin)
if word in self.polyphonic_words.keys():
pinyin = self.polyphonic_words[word]
print('new', pinyin)
# 否则返回原读音
return pinyin

0 comments on commit 89d959f

Please sign in to comment.