emanuelaboros commited on
Commit
88de6a3
·
1 Parent(s): f9d6dfb
Files changed (1) hide show
  1. generic_ner.py +1 -1
generic_ner.py CHANGED
@@ -126,7 +126,7 @@ def get_entities(tokens, tags, confidences, text):
126
  np.average(confidences[idx : idx + len(subtree)]) * 100, 2
127
  ),
128
  "index": (idx, idx + len(subtree)),
129
- "word": text[
130
  entity_start_position:entity_end_position
131
  ], # original_string,
132
  "start": entity_start_position,
 
126
  np.average(confidences[idx : idx + len(subtree)]) * 100, 2
127
  ),
128
  "index": (idx, idx + len(subtree)),
129
+ "text": text[
130
  entity_start_position:entity_end_position
131
  ], # original_string,
132
  "start": entity_start_position,