pritamdeka commited on
Commit
0ba7a71
β€’
1 Parent(s): 09aacd0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -62,7 +62,7 @@ def keyphrase_generator(article_link, model_1, model_2, max_num_keywords):
62
  count_dict[l]=0
63
  for sent, score in count_dict.items():
64
  score_list.append(score)
65
- clean_sentences_new = pd.Series(corpus).str.replace("[^a-zA-Z]", " ").tolist()
66
  corpus_embeddings = model_1.encode(clean_sentences_new)
67
  sim_mat = np.zeros([len(clean_sentences_new), len(clean_sentences_new)])
68
  for i in range(len(clean_sentences_new)):
 
62
  count_dict[l]=0
63
  for sent, score in count_dict.items():
64
  score_list.append(score)
65
+ clean_sentences_new = pd.Series(corpus).str.replace("[^a-zA-Z]", " ", regex=True).tolist()
66
  corpus_embeddings = model_1.encode(clean_sentences_new)
67
  sim_mat = np.zeros([len(clean_sentences_new), len(clean_sentences_new)])
68
  for i in range(len(clean_sentences_new)):