emanuelaboros commited on
Commit
8ddb312
·
verified ·
1 Parent(s): 2447e1e

Update generic_ner.py

Browse files
Files changed (1) hide show
  1. generic_ner.py +1 -1
generic_ner.py CHANGED
@@ -112,7 +112,7 @@ def get_entities(tokens, tags, confidences, text):
112
  "score": np.average(confidences[idx : idx + len(subtree)]),
113
  "index": (idx, idx + len(subtree)),
114
  "word": original_string,
115
- "start": entity_start_position-1,
116
  "end": entity_end_position,
117
  }
118
  )
 
112
  "score": np.average(confidences[idx : idx + len(subtree)]),
113
  "index": (idx, idx + len(subtree)),
114
  "word": original_string,
115
+ "start": entity_start_position + 1,
116
  "end": entity_end_position,
117
  }
118
  )