Skip to content

Commit

Permalink
Merge pull request #443 from LAAC-LSCP/438-eaf-builder-import-annotat…
Browse files Browse the repository at this point in the history
…ions-speaker_id-na

solving the issue speaker_id NA #438
  • Loading branch information
LoannPeurey authored Aug 18, 2023
2 parents e284d2b + 343aa4d commit 1b62f62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
### Fixed

- zooniverse chunks upload was failing if the dataset column was missing in the csv
- eaf_builder with speaker_id NA no longer fails (#438)

## [0.1.1] 2023-05-11

Expand Down
2 changes: 1 addition & 1 deletion ChildProject/pipelines/eafbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def create_eaf(
for segment in speech_segments.to_dict(orient="records"):
speaker_id = None

if "speaker_id" in segment:
if "speaker_id" in segment and not pd.isnull(segment["speaker_id"]):
speaker_id = segment["speaker_id"]
elif "speaker_type" in segment:
speaker_id = segment["speaker_type"]
Expand Down

0 comments on commit 1b62f62

Please sign in to comment.