cdleong commited on
Commit
726b8f4
1 Parent(s): 46c6f99

Restoring accidentally-deleted function

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -58,7 +58,15 @@ def get_valid_epitran_mappings_list():
58
  return filtered_mappings
59
 
60
 
 
 
 
 
 
 
 
61
 
 
62
 
63
 
64
 
 
58
  return filtered_mappings
59
 
60
 
61
+ def get_epitran(selected_mapping):
62
+ if selected_mapping == "cmn-Hans":
63
+ st.info("Chinese requires a special dictionary. Downloading now")
64
+ epitran.download.cedict()
65
+
66
+ epi = epitran.Epitran(selected_mapping)
67
+ return epi
68
 
69
+
70
 
71
 
72