Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 189 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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)
|