Update physionet-deid-i2b2-2014.py
Browse files
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({
|