batchalign 0.8.0.post2__tar.gz → 0.8.0.post3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of batchalign might be problematic. Click here for more details.
- {batchalign-0.8.0.post2/batchalign.egg-info → batchalign-0.8.0.post3}/PKG-INFO +1 -1
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/cli/dispatch.py +81 -2
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/asr/utils.py +6 -2
- batchalign-0.8.0.post3/batchalign/version +3 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3/batchalign.egg-info}/PKG-INFO +1 -1
- batchalign-0.8.0.post2/batchalign/version +0 -3
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/LICENSE +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/MANIFEST.in +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/README.md +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/__main__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/cli/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/cli/cli.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/constants.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/document.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/errors.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/formats/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/formats/base.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/formats/chat/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/formats/chat/file.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/formats/chat/generator.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/formats/chat/lexer.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/formats/chat/parser.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/formats/chat/utils.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/formats/textgrid/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/formats/textgrid/file.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/formats/textgrid/generator.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/formats/textgrid/parser.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/models/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/models/resolve.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/models/speaker/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/models/speaker/config.yaml +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/models/speaker/infer.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/models/speaker/utils.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/models/training/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/models/training/run.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/models/training/utils.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/models/utils.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/models/utterance/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/models/utterance/cantonese_infer.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/models/utterance/dataset.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/models/utterance/execute.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/models/utterance/infer.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/models/utterance/prep.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/models/utterance/train.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/models/wave2vec/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/models/wave2vec/infer_fa.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/models/whisper/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/models/whisper/infer_asr.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/models/whisper/infer_fa.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/analysis/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/analysis/eval.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/asr/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/asr/num2chinese.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/asr/num2lang/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/asr/num2lang/deu.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/asr/num2lang/ell.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/asr/num2lang/eng.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/asr/num2lang/eus.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/asr/num2lang/fra.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/asr/num2lang/hrv.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/asr/num2lang/ind.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/asr/num2lang/jpn.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/asr/num2lang/nld.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/asr/num2lang/por.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/asr/num2lang/spa.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/asr/num2lang/tha.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/asr/oai_whisper.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/asr/rev.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/asr/whisper.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/asr/whisperx.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/avqi/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/avqi/engine.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/base.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/cleanup/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/cleanup/cleanup.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/cleanup/disfluencies.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/cleanup/parse_support.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/cleanup/retrace.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/cleanup/support/filled_pauses.eng +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/cleanup/support/replacements.eng +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/cleanup/support/test.test +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/diarization/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/diarization/pyannote.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/dispatch.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/fa/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/fa/wave2vec_fa.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/fa/whisper_fa.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/morphosyntax/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/morphosyntax/coref.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/morphosyntax/en/irr.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/morphosyntax/fr/apm.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/morphosyntax/fr/apmn.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/morphosyntax/fr/case.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/morphosyntax/ja/verbforms.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/morphosyntax/ud.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/opensmile/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/opensmile/engine.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/pipeline.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/speaker/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/speaker/nemo_speaker.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/translate/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/translate/gtrans.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/translate/seamless.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/translate/utils.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/utr/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/utr/rev_utr.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/utr/utils.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/utr/whisper_utr.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/utterance/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/utterance/ud_utterance.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/conftest.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/formats/chat/test_chat_file.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/formats/chat/test_chat_generator.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/formats/chat/test_chat_lexer.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/formats/chat/test_chat_parser.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/formats/chat/test_chat_utils.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/formats/textgrid/test_textgrid.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/pipelines/analysis/test_eval.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/pipelines/asr/test_asr_pipeline.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/pipelines/asr/test_asr_utils.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/pipelines/cleanup/test_disfluency.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/pipelines/cleanup/test_parse_support.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/pipelines/fa/test_fa_pipeline.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/pipelines/fixures.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/pipelines/test_pipeline.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/pipelines/test_pipeline_models.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/test_document.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/utils/__init__.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/utils/abbrev.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/utils/compounds.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/utils/config.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/utils/dp.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/utils/names.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/utils/utils.py +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign.egg-info/SOURCES.txt +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign.egg-info/dependency_links.txt +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign.egg-info/entry_points.txt +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign.egg-info/requires.txt +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign.egg-info/top_level.txt +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/setup.cfg +0 -0
- {batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/setup.py +0 -0
|
@@ -157,8 +157,87 @@ def _worker_task(file_info, command, lang, num_speakers, loader_info, writer_inf
|
|
|
157
157
|
doc = pipeline(doc, callback=progress_callback, **kw)
|
|
158
158
|
CHATFile(doc=doc).write(output, write_wor=kwargs.get("wor", True))
|
|
159
159
|
|
|
160
|
+
elif command in ["transcribe", "transcribe_s"]:
|
|
161
|
+
from batchalign.document import CustomLine, CustomLineType
|
|
162
|
+
# For transcribe, the "loader" just passes the file path
|
|
163
|
+
doc = file
|
|
164
|
+
|
|
165
|
+
# Process through pipeline
|
|
166
|
+
doc = pipeline(doc, callback=progress_callback)
|
|
167
|
+
|
|
168
|
+
# Write output with ASR comment
|
|
169
|
+
asr = kwargs.get("asr", "rev")
|
|
170
|
+
with open(Path(__file__).parent.parent / "version", 'r') as df:
|
|
171
|
+
VERSION_NUMBER = df.readline().strip()
|
|
172
|
+
doc.content.insert(0, CustomLine(id="Comment", type=CustomLineType.INDEPENDENT,
|
|
173
|
+
content=f"Batchalign {VERSION_NUMBER}, ASR Engine {asr}. Unchecked output of ASR model."))
|
|
174
|
+
CHATFile(doc=doc).write(output
|
|
175
|
+
.replace(".wav", ".cha")
|
|
176
|
+
.replace(".WAV", ".cha")
|
|
177
|
+
.replace(".mp4", ".cha")
|
|
178
|
+
.replace(".MP4", ".cha")
|
|
179
|
+
.replace(".mp3", ".cha")
|
|
180
|
+
.replace(".MP3", ".cha"),
|
|
181
|
+
write_wor=kwargs.get("wor", False))
|
|
182
|
+
|
|
183
|
+
elif command == "translate":
|
|
184
|
+
cf = CHATFile(path=os.path.abspath(file), special_mor_=True)
|
|
185
|
+
doc = cf.doc
|
|
186
|
+
doc = pipeline(doc, callback=progress_callback)
|
|
187
|
+
CHATFile(doc=doc).write(output)
|
|
188
|
+
|
|
189
|
+
elif command == "utseg":
|
|
190
|
+
doc = CHATFile(path=os.path.abspath(file)).doc
|
|
191
|
+
doc = pipeline(doc, callback=progress_callback)
|
|
192
|
+
CHATFile(doc=doc).write(output)
|
|
193
|
+
|
|
194
|
+
elif command == "coref":
|
|
195
|
+
cf = CHATFile(path=os.path.abspath(file))
|
|
196
|
+
doc = cf.doc
|
|
197
|
+
doc = pipeline(doc, callback=progress_callback)
|
|
198
|
+
CHATFile(doc=doc).write(output)
|
|
199
|
+
|
|
200
|
+
elif command == "benchmark":
|
|
201
|
+
# Find gold transcript
|
|
202
|
+
from pathlib import Path as P
|
|
203
|
+
p = P(file)
|
|
204
|
+
cha = p.with_suffix(".cha")
|
|
205
|
+
if not cha.exists():
|
|
206
|
+
raise FileNotFoundError(f"No gold .cha transcript found for benchmarking. audio: {p.name}, desired cha: {cha.name}, looked in: {str(cha)}")
|
|
207
|
+
|
|
208
|
+
gold_doc = CHATFile(path=str(cha), special_mor_=True).doc
|
|
209
|
+
doc = pipeline(file, callback=progress_callback, gold=gold_doc)
|
|
210
|
+
|
|
211
|
+
# Write benchmark results
|
|
212
|
+
import os
|
|
213
|
+
os.remove(P(output).with_suffix(".cha"))
|
|
214
|
+
with open(P(output).with_suffix(".wer.txt"), 'w') as df:
|
|
215
|
+
df.write(str(doc["wer"]))
|
|
216
|
+
with open(P(output).with_suffix(".diff"), 'w') as df:
|
|
217
|
+
df.write(str(doc["diff"]))
|
|
218
|
+
CHATFile(doc=doc["doc"]).write(str(P(output).with_suffix(".asr.cha")),
|
|
219
|
+
write_wor=kwargs.get("wor", False))
|
|
220
|
+
|
|
221
|
+
elif command == "opensmile":
|
|
222
|
+
from batchalign.document import Document
|
|
223
|
+
doc = Document.new(media_path=file, lang=lang)
|
|
224
|
+
results = pipeline(doc, callback=progress_callback, feature_set=kwargs.get("feature_set", "eGeMAPSv02"))
|
|
225
|
+
|
|
226
|
+
# Write opensmile results
|
|
227
|
+
if results.get('success', False):
|
|
228
|
+
output_csv = Path(output).with_suffix('.opensmile.csv')
|
|
229
|
+
features_df = results.get('features_df')
|
|
230
|
+
if features_df is not None:
|
|
231
|
+
features_df.to_csv(output_csv, header=['value'], index_label='feature')
|
|
232
|
+
else:
|
|
233
|
+
error_file = Path(output).with_suffix('.error.txt')
|
|
234
|
+
with open(error_file, 'w') as f:
|
|
235
|
+
f.write(f"OpenSMILE extraction failed: {results.get('error', 'Unknown error')}\n")
|
|
236
|
+
|
|
160
237
|
else:
|
|
161
238
|
loader, writer = loader_info, writer_info
|
|
239
|
+
if loader is None or writer is None:
|
|
240
|
+
raise ValueError(f"Command '{command}' requires loader and writer functions, but they are None. This may indicate an unimplemented command or configuration issue.")
|
|
162
241
|
doc = loader(os.path.abspath(file))
|
|
163
242
|
kw = {}
|
|
164
243
|
if isinstance(doc, tuple) and len(doc) > 1:
|
|
@@ -430,8 +509,8 @@ def _dispatch(command, lang, num_speakers,
|
|
|
430
509
|
command=command,
|
|
431
510
|
lang=lang,
|
|
432
511
|
num_speakers=num_speakers,
|
|
433
|
-
loader_info=
|
|
434
|
-
writer_info=
|
|
512
|
+
loader_info=loader,
|
|
513
|
+
writer_info=writer,
|
|
435
514
|
progress_queue=progress_queue,
|
|
436
515
|
verbose=ctx.obj["verbose"],
|
|
437
516
|
**kwargs)
|
|
@@ -93,11 +93,15 @@ def retokenize_with_engine(intermediate_output, engine):
|
|
|
93
93
|
----------
|
|
94
94
|
intermediate_output : List
|
|
95
95
|
Rev.AI style output.
|
|
96
|
-
|
|
96
|
+
|
|
97
97
|
engine : UtteranceEngine
|
|
98
98
|
The utterance Engine to use.
|
|
99
99
|
"""
|
|
100
|
-
|
|
100
|
+
|
|
101
|
+
# Safety check: if engine is None or not callable, fall back to regular retokenize
|
|
102
|
+
if engine is None or not callable(engine):
|
|
103
|
+
return retokenize(intermediate_output)
|
|
104
|
+
|
|
101
105
|
final_outputs = []
|
|
102
106
|
|
|
103
107
|
for speaker, utterance in intermediate_output:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/models/utterance/cantonese_infer.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/asr/num2lang/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/cleanup/disfluencies.py
RENAMED
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/cleanup/parse_support.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/cleanup/support/test.test
RENAMED
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/diarization/__init__.py
RENAMED
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/diarization/pyannote.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/morphosyntax/__init__.py
RENAMED
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/morphosyntax/coref.py
RENAMED
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/morphosyntax/en/irr.py
RENAMED
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/morphosyntax/fr/apm.py
RENAMED
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/morphosyntax/fr/apmn.py
RENAMED
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/morphosyntax/fr/case.py
RENAMED
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/morphosyntax/ja/verbforms.py
RENAMED
|
File without changes
|
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/opensmile/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/speaker/nemo_speaker.py
RENAMED
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/translate/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/translate/seamless.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/utterance/__init__.py
RENAMED
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/pipelines/utterance/ud_utterance.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/formats/chat/test_chat_file.py
RENAMED
|
File without changes
|
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/formats/chat/test_chat_lexer.py
RENAMED
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/formats/chat/test_chat_parser.py
RENAMED
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/formats/chat/test_chat_utils.py
RENAMED
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/formats/textgrid/test_textgrid.py
RENAMED
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/pipelines/analysis/test_eval.py
RENAMED
|
File without changes
|
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/pipelines/asr/test_asr_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/pipelines/fa/test_fa_pipeline.py
RENAMED
|
File without changes
|
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/pipelines/test_pipeline.py
RENAMED
|
File without changes
|
{batchalign-0.8.0.post2 → batchalign-0.8.0.post3}/batchalign/tests/pipelines/test_pipeline_models.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|