File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -201,10 +201,11 @@ def read_eaf(filename):
201
201
202
202
for intr in eaf_tr .iterfind ('ANNOTATION/' ):
203
203
if intr .tag == 'ALIGNABLE_ANNOTATION' :
204
+ text = intr .find ('ANNOTATION_VALUE' ).text
204
205
tgt_tier .add_interval (Interval (
205
206
start_time = time_slots [intr .attrib ['TIME_SLOT_REF1' ]],
206
207
end_time = time_slots [intr .attrib ['TIME_SLOT_REF2' ]],
207
- text = intr . find ( 'ANNOTATION_VALUE' ). text ))
208
+ text = text if text is not None else '' ))
208
209
else :
209
210
raise Exception ('Only ALIGNABLE_ANNOTATIONs are supported at the moment' )
210
211
tg .add_tier (tgt_tier )
Original file line number Diff line number Diff line change @@ -195,10 +195,11 @@ def read_eaf(filename):
195
195
196
196
for intr in eaf_tr .iterfind ('ANNOTATION/' ):
197
197
if intr .tag == 'ALIGNABLE_ANNOTATION' :
198
+ text = intr .find ('ANNOTATION_VALUE' ).text
198
199
tgt_tier .add_interval (Interval (
199
200
start_time = time_slots [intr .attrib ['TIME_SLOT_REF1' ]],
200
201
end_time = time_slots [intr .attrib ['TIME_SLOT_REF2' ]],
201
- text = intr . find ( 'ANNOTATION_VALUE' ). text ))
202
+ text = text if text is not None else '' ))
202
203
else :
203
204
raise Exception ('Only ALIGNABLE_ANNOTATIONs are supported at the moment' )
204
205
tg .add_tier (tgt_tier )
You can’t perform that action at this time.
0 commit comments