Spaces:
Build error
Build error
reichenbach
commited on
Commit
•
95eebfd
1
Parent(s):
04ae9ec
Indent Correction
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ def ner_tagging(text_1):
|
|
52 |
|
53 |
text_2 = text_1.split(" ")
|
54 |
output = []
|
55 |
-
|
56 |
if prediction[w] != "O":
|
57 |
output.extend([(text_2[w], prediction[w]), (" ", None)])
|
58 |
else:
|
|
|
52 |
|
53 |
text_2 = text_1.split(" ")
|
54 |
output = []
|
55 |
+
for w in range(len(text_2)):
|
56 |
if prediction[w] != "O":
|
57 |
output.extend([(text_2[w], prediction[w]), (" ", None)])
|
58 |
else:
|