Spaces:
Sleeping
Sleeping
sotirios-slv
commited on
Commit
•
7486b42
1
Parent(s):
e60cc65
Removed the broken join
Browse files
app.py
CHANGED
@@ -23,10 +23,11 @@ def get_named_entities(ocr_text: str):
|
|
23 |
|
24 |
for token in sentence:
|
25 |
for entity in token.get_spans("ner"):
|
|
|
26 |
entities.append(entity)
|
27 |
|
28 |
print("ENTITIES ", entities)
|
29 |
-
entities = "/n".join(entities)
|
30 |
|
31 |
return entities
|
32 |
|
|
|
23 |
|
24 |
for token in sentence:
|
25 |
for entity in token.get_spans("ner"):
|
26 |
+
print("ENT ", type(entity))
|
27 |
entities.append(entity)
|
28 |
|
29 |
print("ENTITIES ", entities)
|
30 |
+
# entities = "/n".join(entities)
|
31 |
|
32 |
return entities
|
33 |
|