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 = {'A1': 1.0, 'A2': 1.0, 'B1': 1.0, 'B2': 1.0, 'C1': 1.0, 'C2': 1.0, 'Без уровня': 1.0}
56
- SIMILARITY_VALUES_bert = {'A1': 1.0, 'A2': 1.0, 'B1': 1.0, 'B2': 1.0, 'C1': 1.0, 'C2': 1.0, 'Без уровня': 1.0}
 
 
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 = []