Spaces:
Running
Running
togokah
commited on
Commit
·
4328e80
1
Parent(s):
5864c0d
Update esp_constants.py
Browse files
utilities_language_general/esp_constants.py
CHANGED
@@ -52,7 +52,9 @@ with open('language_data/phrases.json', 'r', encoding='utf-8') as f:
|
|
52 |
with open('language_data/fix_irregular_lemma.json', 'r', encoding='utf-8') as f:
|
53 |
FIX_LEMMA = json.load(f)
|
54 |
|
55 |
-
SIMILARITY_VALUES =
|
56 |
-
|
|
|
|
|
57 |
|
58 |
BAD_USER_TARGET_WORDS = []
|
|
|
52 |
with open('language_data/fix_irregular_lemma.json', 'r', encoding='utf-8') as f:
|
53 |
FIX_LEMMA = json.load(f)
|
54 |
|
55 |
+
SIMILARITY_VALUES = st.secrets['SIM_VAL_w2v']
|
56 |
+
SIMILARITY_VALUES = {SIMILARITY_VALUES[i]: SIMILARITY_VALUES[i + 1] for i in range(6)}
|
57 |
+
SIMILARITY_VALUES_bert = st.secrets['SIM_VAL_bert']
|
58 |
+
SIMILARITY_VALUES_bert = {SIMILARITY_VALUES_bert[i]: SIMILARITY_VALUES_bert[i + 1] for i in range(6)}
|
59 |
|
60 |
BAD_USER_TARGET_WORDS = []
|