DD0101 commited on
Commit
2f005bf
·
1 Parent(s): 66db8e5

remove (text = text.replace(" , ", ", ").replace(" . ", ". "))

Browse files
Files changed (1) hide show
  1. app.py +0 -1
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}