Spaces:
Runtime error
Runtime error
Commit
·
7f4ecbd
1
Parent(s):
7c8f86e
fix: annotation has already assigned target
Browse files
app.py
CHANGED
@@ -29,8 +29,8 @@ def predict(text):
|
|
29 |
|
30 |
ner_pipeline(document)
|
31 |
|
32 |
-
|
33 |
-
document.entities.append(
|
34 |
|
35 |
re_pipeline(document)
|
36 |
|
|
|
29 |
|
30 |
ner_pipeline(document)
|
31 |
|
32 |
+
while len(document.entities.predictions) > 0:
|
33 |
+
document.entities.append(document.entities.predictions.pop())
|
34 |
|
35 |
re_pipeline(document)
|
36 |
|