alecocc commited on
Commit
efbfbdd
·
verified ·
1 Parent(s): 6741212

Update physionet-deid-i2b2-2014.py

Browse files
Files changed (1) hide show
  1. physionet-deid-i2b2-2014.py +1 -1
physionet-deid-i2b2-2014.py CHANGED
@@ -193,7 +193,7 @@ class Deid(datasets.GeneratorBasedBuilder):
193
  annotations = id2annotations[item["record_id"]]
194
 
195
  for annotation in annotations:
196
- start = annotation['start']
197
  end = annotation['end'] + 1 # last char included
198
  ent_type = annotation['type']
199
  ann_dict["annotations"].append({
 
193
  annotations = id2annotations[item["record_id"]]
194
 
195
  for annotation in annotations:
196
+ start = annotation['start'] + 1 # first char not included
197
  end = annotation['end'] + 1 # last char included
198
  ent_type = annotation['type']
199
  ann_dict["annotations"].append({