From 54ccf5a131eba23a35b5200f7efdb678fb431c01 Mon Sep 17 00:00:00 2001 From: Loann Peurey Date: Tue, 19 Mar 2024 16:35:41 +0100 Subject: [PATCH] eaf-builder remove unused parameter --- ChildProject/pipelines/eafbuilder.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ChildProject/pipelines/eafbuilder.py b/ChildProject/pipelines/eafbuilder.py index 00152887..f0986630 100644 --- a/ChildProject/pipelines/eafbuilder.py +++ b/ChildProject/pipelines/eafbuilder.py @@ -23,7 +23,6 @@ def create_eaf( eaf_type: str, contxt_on: int, contxt_off: int, - template: str, speech_segments: pd.DataFrame = None, imported_set: str = None, imported_format: str = None, @@ -70,7 +69,7 @@ def create_eaf( speaker_id = segment["speaker_id"] elif "speaker_type" in segment: speaker_id = segment["speaker_type"] - if pd.isnull(speaker_id) and imported_format in FORMAT_SPEECH : speaker_id = "SPEECH" #replace nan with SPEECH for some formats + if pd.isnull(speaker_id) and imported_format in FORMAT_SPEECH: speaker_id = "SPEECH" #replace nan with SPEECH for some formats if speaker_id is None: continue @@ -230,7 +229,6 @@ def run( eaf_type, context_onset, context_offset, - template, speech_segments, imported_set, imported_format,