Spaces:
Runtime error
Runtime error
Stefan Dumitrescu
commited on
Commit
·
9f3b863
1
Parent(s):
8dcee18
Update
Browse files
app.py
CHANGED
@@ -89,12 +89,11 @@ if Run_Button == True:
|
|
89 |
if words[j]["tag"] == words[i]["tag"] and words[j]["multi_word_entity"] is True:
|
90 |
end = words[j]["end_char"]
|
91 |
i = j
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
|
96 |
spacy_display["ents"].append({"start": start, "end": end, "label": label})
|
97 |
-
print(f"ADD ENTITY: {spacy_display['ents'][-1]}")
|
98 |
i += 1
|
99 |
|
100 |
|
|
|
89 |
if words[j]["tag"] == words[i]["tag"] and words[j]["multi_word_entity"] is True:
|
90 |
end = words[j]["end_char"]
|
91 |
i = j
|
92 |
+
else:
|
93 |
+
break
|
|
|
94 |
|
95 |
spacy_display["ents"].append({"start": start, "end": end, "label": label})
|
96 |
+
#print(f"ADD ENTITY: {spacy_display['ents'][-1]}")
|
97 |
i += 1
|
98 |
|
99 |
|