Skip to content

Commit

Permalink
update demo code
Browse files Browse the repository at this point in the history
  • Loading branch information
letuananh committed Apr 29, 2021
1 parent ddea574 commit 48606c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demo_batch_processing_eaf_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
for tier in eaf.roots:
if tier.type_ref == 'Utterance':
print(f" | {tier.ID} | Participant: {tier.participant} | Type: {tier.type_ref}")
for ann in tier.annotations:
if 'BABYNAME' in ann.value:
for ann in tier:
if 'BABYNAME' in ann.text:
c += 1
print(f" | -- {tier.ID} --> {tier.participant}: {ann.value}")
print(f" | -- {tier.ID} --> {tier.participant}: {ann.text}")
print(c)
csv_data.append((child_file.name, c))

Expand Down

0 comments on commit 48606c0

Please sign in to comment.