edithram23 commited on
Commit
7f4bb4c
·
verified ·
1 Parent(s): 4e563eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -185,8 +185,13 @@ if uploaded_file is not None:
185
  t5=[]
186
  t5_words = list(set(sent.split("\n")))
187
  for i in t5_words:
188
- t5+=i.split(" ")
189
- t5_words=set(t5).difference(set(x.split(" ")))
 
 
 
 
 
190
  entities,words_out = extract_entities(sent)
191
  words_out+=t5_words
192
  bert_words = words_red_bert(sent)
 
185
  t5=[]
186
  t5_words = list(set(sent.split("\n")))
187
  for i in t5_words:
188
+ for j in i.split(" "):
189
+ t5+=j.split(',')
190
+ x1 = x.split(' ')
191
+ e=[]
192
+ for i in x1:
193
+ e+=i.split(',')
194
+ t5_words=set(t5).difference(set(e))
195
  entities,words_out = extract_entities(sent)
196
  words_out+=t5_words
197
  bert_words = words_red_bert(sent)