Spaces:
Sleeping
Sleeping
Commit ·
1654918
1
Parent(s): 5e10a9a
Cleaned up entity string for display
Browse files22 unmodified lines23242526272829303132333422 unmodified linesfor token in sentence:for entity in token.get_spans("ner"):print("ENT ", str(entity))entities.append(entity)print("ENTITIES ", entities)# entities = "/n".join(entities)return entities22 unmodified lines23242526272829303132333422 unmodified linesfor token in sentence:for entity in token.get_spans("ner"):entity = str(entity).split(":")[1]entities.append(entity)entities = "/n".join(entities)print("ENTITIES ", entities)return entities
app.py+3-3