Spaces:
Sleeping
Sleeping
remove (text = text.replace(" , ", ", ").replace(" . ", ". "))
Browse files
app.py
CHANGED
@@ -61,7 +61,6 @@ def ner(text):
|
|
61 |
entity['entity'] = entity.pop('entity_group')
|
62 |
|
63 |
text = text.replace("_", " ")
|
64 |
-
text = text.replace(" , ", ", ").replace(" . ", ". ")
|
65 |
|
66 |
|
67 |
return {'text': text, 'entities': output}
|
|
|
61 |
entity['entity'] = entity.pop('entity_group')
|
62 |
|
63 |
text = text.replace("_", " ")
|
|
|
64 |
|
65 |
|
66 |
return {'text': text, 'entities': output}
|