Spaces:
Runtime error
Runtime error
Restoring accidentally-deleted function
Browse files
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 |
|