txya900619 commited on
Commit
a3a5dd5
1 Parent(s): 5c3ce0e

fix: let error message will apear

Browse files
Files changed (1) hide show
  1. ipa/ipa.py +1 -1
ipa/ipa.py CHANGED
@@ -57,7 +57,7 @@ def get_ipa(raw_text: str, dialect: str) -> tuple[str, str, str, list[str]]:
57
  final_missing_words.extend(missing_words)
58
 
59
  if len(final_ipa) == 0 or len(final_missing_words) > 0:
60
- return final_words, final_ipa, final_pinyin, missing_words
61
 
62
  final_words = " ".join(final_words).replace(" , ", ",")
63
  final_ipa = " ".join(final_ipa).replace(" , ", ",")
 
57
  final_missing_words.extend(missing_words)
58
 
59
  if len(final_ipa) == 0 or len(final_missing_words) > 0:
60
+ return final_words, final_ipa, final_pinyin, final_missing_words
61
 
62
  final_words = " ".join(final_words).replace(" , ", ",")
63
  final_ipa = " ".join(final_ipa).replace(" , ", ",")