Gregniuki commited on
Commit
dc92af8
·
verified ·
1 Parent(s): b76543c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -218,10 +218,10 @@ def text_to_ipa(text, language=language):
218
  )
219
  # Remove language markings like (en), (cmn), (de), (pl), (ru)
220
  ipa_text = re.sub(r'\([a-z]{2,3}\)', '', ipa_text)
221
- ipa_text = re.sub(r'tʃˈaɪniːzlˈe̞tə', '', ipa_text)
222
- ipa_text = re.sub(r'tʃˈaɪniːzɭˈetə', '', ipa_text)
223
- ipa_text = re.sub(r'dʒˈapəniːzlˈe̞tə', '', ipa_text)
224
- ipa_text = re.sub(r'dʒˈapəniːzɭˈetə', '', ipa_text)
225
  return ipa_text #preserve_case(text, ipa_text)
226
  except Exception as e:
227
  print(f"Error processing text: {text}. Error: {e}")
 
218
  )
219
  # Remove language markings like (en), (cmn), (de), (pl), (ru)
220
  ipa_text = re.sub(r'\([a-z]{2,3}\)', '', ipa_text)
221
+ # ipa_text = re.sub(r'tʃˈaɪniːzlˈe̞tə', '', ipa_text)
222
+ # ipa_text = re.sub(r'tʃˈaɪniːzɭˈetə', '', ipa_text)
223
+ # ipa_text = re.sub(r'dʒˈapəniːzlˈe̞tə', '', ipa_text)
224
+ # ipa_text = re.sub(r'dʒˈapəniːzɭˈetə', '', ipa_text)
225
  return ipa_text #preserve_case(text, ipa_text)
226
  except Exception as e:
227
  print(f"Error processing text: {text}. Error: {e}")