Galiess commited on
Commit
cc2112a
·
1 Parent(s): 221a262

Update combining.py

Browse files
Files changed (1) hide show
  1. 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: