Spaces:
Runtime error
Runtime error
Update combining.py
Browse files- combining.py +1 -1
combining.py
CHANGED
|
@@ -444,7 +444,7 @@ def similarity_analysis(masked_sentence, final_uncommon_str, nlp, fill_mask):
|
|
| 444 |
# MLM with BERT
|
| 445 |
pred = fill_mask(masked_sentence)
|
| 446 |
# Similarity between the masked words and the uncommon words with word embeddings
|
| 447 |
-
nlp = spacy.load("en_core_web_md")
|
| 448 |
if type(pred[0]) == list:
|
| 449 |
df1 = pd.DataFrame(pred[0])
|
| 450 |
else:
|
|
|
|
| 444 |
# MLM with BERT
|
| 445 |
pred = fill_mask(masked_sentence)
|
| 446 |
# Similarity between the masked words and the uncommon words with word embeddings
|
| 447 |
+
#nlp = spacy.load("en_core_web_md")
|
| 448 |
if type(pred[0]) == list:
|
| 449 |
df1 = pd.DataFrame(pred[0])
|
| 450 |
else:
|