Basvoju commited on
Commit
32c401c
1 Parent(s): 6d09ed4

Update SemEval2018Task7.py

Browse files
Files changed (1) hide show
  1. SemEval2018Task7.py +1 -4
SemEval2018Task7.py CHANGED
@@ -21,9 +21,6 @@
21
 
22
  import glob
23
  import datasets
24
- #from path lib import Path
25
- from itertools import permutations
26
- from spacy.lang.en import English
27
  import xml.dom.minidom
28
  import xml.etree.ElementTree as ET
29
 
@@ -132,7 +129,7 @@ def reading_entity_data(ET_data_to_convert):
132
  current_tag_ending_pos = len(final_string)-1
133
  entity_mapping_list.append({"id":current_tag_id,
134
  "char_start":current_tag_starting_pos,
135
- "char_end":current_tag_ending_pos})
136
  current_tag_id= ""
137
  tag_string=""
138
 
 
21
 
22
  import glob
23
  import datasets
 
 
 
24
  import xml.dom.minidom
25
  import xml.etree.ElementTree as ET
26
 
 
129
  current_tag_ending_pos = len(final_string)-1
130
  entity_mapping_list.append({"id":current_tag_id,
131
  "char_start":current_tag_starting_pos,
132
+ "char_end":current_tag_ending_pos+1})
133
  current_tag_id= ""
134
  tag_string=""
135