batchalign 0.8.2.post12__tar.gz → 0.8.2.post14__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.
- {batchalign-0.8.2.post12/batchalign.egg-info → batchalign-0.8.2.post14}/PKG-INFO +17 -7
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/analysis/compare.py +11 -10
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/diarization/pyannote.py +18 -2
- batchalign-0.8.2.post14/batchalign/version +3 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14/batchalign.egg-info}/PKG-INFO +17 -7
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign.egg-info/requires.txt +5 -5
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/setup.py +5 -5
- batchalign-0.8.2.post12/batchalign/version +0 -3
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/LICENSE +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/MANIFEST.in +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/README.md +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/__main__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/cli/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/cli/bench.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/cli/cache.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/cli/cli.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/cli/dispatch.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/constants.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/document.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/errors.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/formats/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/formats/base.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/formats/chat/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/formats/chat/file.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/formats/chat/generator.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/formats/chat/lexer.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/formats/chat/parser.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/formats/chat/utils.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/formats/textgrid/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/formats/textgrid/file.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/formats/textgrid/generator.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/formats/textgrid/parser.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/models/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/models/audio_io.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/models/resolve.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/models/speaker/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/models/speaker/config.yaml +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/models/speaker/infer.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/models/speaker/utils.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/models/training/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/models/training/run.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/models/training/utils.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/models/utils.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/models/utterance/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/models/utterance/cantonese_infer.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/models/utterance/dataset.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/models/utterance/execute.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/models/utterance/infer.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/models/utterance/prep.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/models/utterance/train.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/models/wave2vec/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/models/wave2vec/infer_fa.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/models/whisper/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/models/whisper/infer_asr.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/models/whisper/infer_fa.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/analysis/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/analysis/eval.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2chinese.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2lang/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2lang/deu.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2lang/ell.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2lang/eng.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2lang/eus.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2lang/fra.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2lang/hrv.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2lang/ind.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2lang/jpn.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2lang/nld.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2lang/por.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2lang/spa.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2lang/tha.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/oai_whisper.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/rev.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/utils.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/whisper.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/whisperx.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/avqi/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/avqi/engine.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/base.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/cache.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/cleanup/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/cleanup/cleanup.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/cleanup/disfluencies.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/cleanup/parse_support.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/cleanup/retrace.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/cleanup/support/filled_pauses.eng +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/cleanup/support/replacements.eng +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/cleanup/support/test.test +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/diarization/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/dispatch.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/fa/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/fa/wave2vec_fa.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/fa/whisper_fa.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/morphosyntax/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/morphosyntax/coref.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/morphosyntax/en/irr.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/morphosyntax/fr/apm.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/morphosyntax/fr/apmn.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/morphosyntax/fr/case.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/morphosyntax/ja/verbforms.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/morphosyntax/ud.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/opensmile/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/opensmile/engine.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/pipeline.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/segmentation/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/segmentation/cantonese_seg.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/speaker/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/speaker/nemo_speaker.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/translate/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/translate/gtrans.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/translate/seamless.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/translate/utils.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/utr/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/utr/rev_utr.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/utr/utils.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/utr/whisper_utr.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/utterance/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/utterance/ud_utterance.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/cli/test_dispatch_memory.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/conftest.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/formats/chat/test_chat_file.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/formats/chat/test_chat_generator.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/formats/chat/test_chat_lexer.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/formats/chat/test_chat_parser.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/formats/chat/test_chat_utils.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/formats/textgrid/test_textgrid.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/models/test_audio_io.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/models/test_audio_lazy.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/pipelines/analysis/test_eval.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/pipelines/asr/test_asr_pipeline.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/pipelines/asr/test_asr_utils.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/pipelines/cache/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/pipelines/cache/test_cache.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/pipelines/cleanup/test_disfluency.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/pipelines/cleanup/test_parse_support.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/pipelines/fa/test_fa_pipeline.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/pipelines/fa/test_fa_short_segments.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/pipelines/fixures.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/pipelines/test_pipeline.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/pipelines/test_pipeline_models.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/test_document.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/utils/__init__.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/utils/abbrev.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/utils/compounds.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/utils/config.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/utils/device.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/utils/dp.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/utils/names.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/utils/utils.py +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign.egg-info/SOURCES.txt +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign.egg-info/dependency_links.txt +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign.egg-info/entry_points.txt +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign.egg-info/top_level.txt +0 -0
- {batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: batchalign
|
|
3
|
-
Version: 0.8.2.
|
|
3
|
+
Version: 0.8.2.post14
|
|
4
4
|
Summary: Python Speech Language Sample Analysis
|
|
5
5
|
Author: Brian MacWhinney, Houjun Liu
|
|
6
6
|
Author-email: macw@cmu.edu, houjun@cmu.edu
|
|
@@ -19,15 +19,15 @@ Requires-Dist: platformdirs>=4.3.0
|
|
|
19
19
|
Requires-Dist: filelock>=3.0.0
|
|
20
20
|
Requires-Dist: nltk>=3.8
|
|
21
21
|
Requires-Dist: praatio<6.1.0,>=6.0.0
|
|
22
|
-
Requires-Dist: torch
|
|
23
|
-
Requires-Dist: torchaudio
|
|
22
|
+
Requires-Dist: torch<2.9,>=2.7
|
|
23
|
+
Requires-Dist: torchaudio<2.9,>=2.7
|
|
24
24
|
Requires-Dist: soundfile>=0.12.0
|
|
25
25
|
Requires-Dist: pydub
|
|
26
26
|
Requires-Dist: plotly>=5.3.0
|
|
27
|
-
Requires-Dist: transformers
|
|
27
|
+
Requires-Dist: transformers<5,>=4.38.2
|
|
28
28
|
Requires-Dist: tokenizers>=0.14.1
|
|
29
29
|
Requires-Dist: numba>=0.61.0
|
|
30
|
-
Requires-Dist: numpy
|
|
30
|
+
Requires-Dist: numpy<2.3,>=1.24
|
|
31
31
|
Requires-Dist: pycountry>=22.3
|
|
32
32
|
Requires-Dist: stanza[transformers]>=1.10.1
|
|
33
33
|
Requires-Dist: scipy~=1.11
|
|
@@ -50,7 +50,7 @@ Requires-Dist: openai-whisper
|
|
|
50
50
|
Requires-Dist: llvmlite>=0.44.0
|
|
51
51
|
Requires-Dist: praat-parselmouth==0.4.6
|
|
52
52
|
Requires-Dist: opensmile>=2.5.0
|
|
53
|
-
Requires-Dist: pyannote.audio
|
|
53
|
+
Requires-Dist: pyannote.audio<4,>=3.4.0
|
|
54
54
|
Requires-Dist: onnxruntime
|
|
55
55
|
Requires-Dist: certifi>=2025.10.5
|
|
56
56
|
Provides-Extra: dev
|
|
@@ -63,6 +63,16 @@ Requires-Dist: accelerate~=0.27; extra == "train"
|
|
|
63
63
|
Provides-Extra: docs
|
|
64
64
|
Requires-Dist: mkdocs-material; extra == "docs"
|
|
65
65
|
Requires-Dist: mkdocs-click; extra == "docs"
|
|
66
|
+
Dynamic: author
|
|
67
|
+
Dynamic: author-email
|
|
68
|
+
Dynamic: classifier
|
|
69
|
+
Dynamic: description
|
|
70
|
+
Dynamic: description-content-type
|
|
71
|
+
Dynamic: license-file
|
|
72
|
+
Dynamic: provides-extra
|
|
73
|
+
Dynamic: requires-dist
|
|
74
|
+
Dynamic: requires-python
|
|
75
|
+
Dynamic: summary
|
|
66
76
|
|
|
67
77
|
# TalkBank | Batchalign2
|
|
68
78
|
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/analysis/compare.py
RENAMED
|
@@ -159,11 +159,12 @@ def _find_best_segment(gold_tokens, main_tokens, mfn):
|
|
|
159
159
|
multiset overlap with the gold utterance, ignoring order. To keep common
|
|
160
160
|
words from swallowing later transcript material, it only considers windows
|
|
161
161
|
near the gold utterance length. Among equally good windows it prefers the
|
|
162
|
-
one with the
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
162
|
+
one with the most Levenshtein alignment matches (so order is respected and
|
|
163
|
+
cross-utterance fragments that happen to be dense don't beat in-utterance
|
|
164
|
+
matches), then fewer non-matching (wasted) tokens, then the latest one as
|
|
165
|
+
a final tiebreaker (so CHI repetitions / self-corrections beat earlier INV
|
|
166
|
+
tokens). The caller then runs the full Levenshtein aligner inside that
|
|
167
|
+
window to produce token annotations.
|
|
167
168
|
"""
|
|
168
169
|
if not gold_tokens or not main_tokens:
|
|
169
170
|
return 0, 0
|
|
@@ -212,15 +213,15 @@ def _find_best_segment(gold_tokens, main_tokens, mfn):
|
|
|
212
213
|
best_waste = waste
|
|
213
214
|
best_align_matches = align_matches
|
|
214
215
|
elif score == best_score:
|
|
215
|
-
if
|
|
216
|
+
if align_matches > best_align_matches:
|
|
216
217
|
best = (start, end)
|
|
217
218
|
best_waste = waste
|
|
218
219
|
best_align_matches = align_matches
|
|
219
|
-
elif
|
|
220
|
-
if
|
|
220
|
+
elif align_matches == best_align_matches:
|
|
221
|
+
if best_waste is None or waste < best_waste:
|
|
221
222
|
best = (start, end)
|
|
222
|
-
|
|
223
|
-
elif
|
|
223
|
+
best_waste = waste
|
|
224
|
+
elif waste == best_waste and end > best[1]:
|
|
224
225
|
best = (start, end)
|
|
225
226
|
|
|
226
227
|
# If no tokens overlap at all, return an empty window so the caller
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/diarization/pyannote.py
RENAMED
|
@@ -47,9 +47,25 @@ class PyannoteEngine(BatchalignEngine):
|
|
|
47
47
|
|
|
48
48
|
def process(self, doc: Document, **kwargs) -> Document:
|
|
49
49
|
if self.pipe is None:
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
# torch>=2.6 defaults torch.load(weights_only=True), which rejects
|
|
51
|
+
# pyannote 3.x checkpoints that pickle TorchVersion/Specifications/etc.
|
|
52
|
+
# The pyannote checkpoint comes from a trusted HF repo, so force
|
|
53
|
+
# weights_only=False for the duration of the pipeline load.
|
|
54
|
+
import torch
|
|
55
|
+
_orig_torch_load = torch.load
|
|
56
|
+
def _patched_load(*args, **kwargs):
|
|
57
|
+
kwargs["weights_only"] = False
|
|
58
|
+
return _orig_torch_load(*args, **kwargs)
|
|
59
|
+
torch.load = _patched_load
|
|
60
|
+
try:
|
|
61
|
+
from pyannote.audio import Pipeline
|
|
62
|
+
self.pipe = Pipeline.from_pretrained("talkbank/dia-fork")
|
|
63
|
+
finally:
|
|
64
|
+
torch.load = _orig_torch_load
|
|
52
65
|
assert doc.media != None and doc.media.url != None, f"We cannot diarize something that doesn't have a media path! Provided media tier='{doc.media}'"
|
|
66
|
+
if not doc.tiers:
|
|
67
|
+
L.warning("Skipping diarization: upstream ASR produced no tiers/utterances.")
|
|
68
|
+
return doc
|
|
53
69
|
res = self.pipe(doc.media.url, num_speakers=self.num_speakers)
|
|
54
70
|
|
|
55
71
|
speakers = list(set([int(i[-1].split("_")[-1])
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: batchalign
|
|
3
|
-
Version: 0.8.2.
|
|
3
|
+
Version: 0.8.2.post14
|
|
4
4
|
Summary: Python Speech Language Sample Analysis
|
|
5
5
|
Author: Brian MacWhinney, Houjun Liu
|
|
6
6
|
Author-email: macw@cmu.edu, houjun@cmu.edu
|
|
@@ -19,15 +19,15 @@ Requires-Dist: platformdirs>=4.3.0
|
|
|
19
19
|
Requires-Dist: filelock>=3.0.0
|
|
20
20
|
Requires-Dist: nltk>=3.8
|
|
21
21
|
Requires-Dist: praatio<6.1.0,>=6.0.0
|
|
22
|
-
Requires-Dist: torch
|
|
23
|
-
Requires-Dist: torchaudio
|
|
22
|
+
Requires-Dist: torch<2.9,>=2.7
|
|
23
|
+
Requires-Dist: torchaudio<2.9,>=2.7
|
|
24
24
|
Requires-Dist: soundfile>=0.12.0
|
|
25
25
|
Requires-Dist: pydub
|
|
26
26
|
Requires-Dist: plotly>=5.3.0
|
|
27
|
-
Requires-Dist: transformers
|
|
27
|
+
Requires-Dist: transformers<5,>=4.38.2
|
|
28
28
|
Requires-Dist: tokenizers>=0.14.1
|
|
29
29
|
Requires-Dist: numba>=0.61.0
|
|
30
|
-
Requires-Dist: numpy
|
|
30
|
+
Requires-Dist: numpy<2.3,>=1.24
|
|
31
31
|
Requires-Dist: pycountry>=22.3
|
|
32
32
|
Requires-Dist: stanza[transformers]>=1.10.1
|
|
33
33
|
Requires-Dist: scipy~=1.11
|
|
@@ -50,7 +50,7 @@ Requires-Dist: openai-whisper
|
|
|
50
50
|
Requires-Dist: llvmlite>=0.44.0
|
|
51
51
|
Requires-Dist: praat-parselmouth==0.4.6
|
|
52
52
|
Requires-Dist: opensmile>=2.5.0
|
|
53
|
-
Requires-Dist: pyannote.audio
|
|
53
|
+
Requires-Dist: pyannote.audio<4,>=3.4.0
|
|
54
54
|
Requires-Dist: onnxruntime
|
|
55
55
|
Requires-Dist: certifi>=2025.10.5
|
|
56
56
|
Provides-Extra: dev
|
|
@@ -63,6 +63,16 @@ Requires-Dist: accelerate~=0.27; extra == "train"
|
|
|
63
63
|
Provides-Extra: docs
|
|
64
64
|
Requires-Dist: mkdocs-material; extra == "docs"
|
|
65
65
|
Requires-Dist: mkdocs-click; extra == "docs"
|
|
66
|
+
Dynamic: author
|
|
67
|
+
Dynamic: author-email
|
|
68
|
+
Dynamic: classifier
|
|
69
|
+
Dynamic: description
|
|
70
|
+
Dynamic: description-content-type
|
|
71
|
+
Dynamic: license-file
|
|
72
|
+
Dynamic: provides-extra
|
|
73
|
+
Dynamic: requires-dist
|
|
74
|
+
Dynamic: requires-python
|
|
75
|
+
Dynamic: summary
|
|
66
76
|
|
|
67
77
|
# TalkBank | Batchalign2
|
|
68
78
|
|
|
@@ -3,15 +3,15 @@ platformdirs>=4.3.0
|
|
|
3
3
|
filelock>=3.0.0
|
|
4
4
|
nltk>=3.8
|
|
5
5
|
praatio<6.1.0,>=6.0.0
|
|
6
|
-
torch
|
|
7
|
-
torchaudio
|
|
6
|
+
torch<2.9,>=2.7
|
|
7
|
+
torchaudio<2.9,>=2.7
|
|
8
8
|
soundfile>=0.12.0
|
|
9
9
|
pydub
|
|
10
10
|
plotly>=5.3.0
|
|
11
|
-
transformers
|
|
11
|
+
transformers<5,>=4.38.2
|
|
12
12
|
tokenizers>=0.14.1
|
|
13
13
|
numba>=0.61.0
|
|
14
|
-
numpy
|
|
14
|
+
numpy<2.3,>=1.24
|
|
15
15
|
pycountry>=22.3
|
|
16
16
|
stanza[transformers]>=1.10.1
|
|
17
17
|
scipy~=1.11
|
|
@@ -34,7 +34,7 @@ openai-whisper
|
|
|
34
34
|
llvmlite>=0.44.0
|
|
35
35
|
praat-parselmouth==0.4.6
|
|
36
36
|
opensmile>=2.5.0
|
|
37
|
-
pyannote.audio
|
|
37
|
+
pyannote.audio<4,>=3.4.0
|
|
38
38
|
onnxruntime
|
|
39
39
|
certifi>=2025.10.5
|
|
40
40
|
|
|
@@ -31,8 +31,8 @@ setup(
|
|
|
31
31
|
"filelock>=3.0.0",
|
|
32
32
|
"nltk>=3.8",
|
|
33
33
|
"praatio>=6.0.0,<6.1.0",
|
|
34
|
-
"torch>=2.
|
|
35
|
-
"torchaudio>=2.
|
|
34
|
+
"torch>=2.7,<2.9",
|
|
35
|
+
"torchaudio>=2.7,<2.9", # <2.9: keep list_audio_backends; <2.10: keep AudioMetaData — needed by pyannote.audio 3.x (torch.load weights_only patched in batchalign.pipelines.diarization.pyannote)
|
|
36
36
|
"soundfile>=0.12.0", # Audio I/O backend (replaces torchaudio.load/save/info)
|
|
37
37
|
# "pyAudioAnalysis",
|
|
38
38
|
# "hmmlearn==0.3.0",
|
|
@@ -40,10 +40,10 @@ setup(
|
|
|
40
40
|
"pydub",
|
|
41
41
|
# "imblearn",
|
|
42
42
|
"plotly>=5.3.0",
|
|
43
|
-
"transformers>=4.38.2",
|
|
43
|
+
"transformers>=4.38.2,<5",
|
|
44
44
|
"tokenizers>=0.14.1",
|
|
45
45
|
"numba>=0.61.0",
|
|
46
|
-
"numpy
|
|
46
|
+
"numpy>=1.24,<2.3",
|
|
47
47
|
"pycountry>=22.3",
|
|
48
48
|
"stanza[transformers]>=1.10.1",
|
|
49
49
|
"scipy~=1.11",
|
|
@@ -66,7 +66,7 @@ setup(
|
|
|
66
66
|
"llvmlite>=0.44.0",
|
|
67
67
|
"praat-parselmouth==0.4.6",
|
|
68
68
|
"opensmile>=2.5.0",
|
|
69
|
-
"pyannote.audio",
|
|
69
|
+
"pyannote.audio>=3.4.0,<4",
|
|
70
70
|
"onnxruntime",
|
|
71
71
|
"certifi>=2025.10.5"
|
|
72
72
|
],
|
|
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.2.post12 → batchalign-0.8.2.post14}/batchalign/formats/textgrid/generator.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
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/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
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/analysis/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2lang/__init__.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2lang/deu.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2lang/ell.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2lang/eng.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2lang/eus.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2lang/fra.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2lang/hrv.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2lang/ind.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2lang/jpn.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2lang/nld.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2lang/por.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2lang/spa.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/asr/num2lang/tha.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
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/cleanup/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/cleanup/disfluencies.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/cleanup/parse_support.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/cleanup/support/test.test
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/diarization/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/morphosyntax/__init__.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/morphosyntax/coref.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/morphosyntax/en/irr.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/morphosyntax/fr/apm.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/morphosyntax/fr/apmn.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/morphosyntax/fr/case.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/opensmile/__init__.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/opensmile/engine.py
RENAMED
|
File without changes
|
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/segmentation/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/speaker/__init__.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/speaker/nemo_speaker.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/translate/__init__.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/translate/gtrans.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/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.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/utterance/__init__.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/pipelines/utterance/ud_utterance.py
RENAMED
|
File without changes
|
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/cli/test_dispatch_memory.py
RENAMED
|
File without changes
|
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/formats/chat/test_chat_file.py
RENAMED
|
File without changes
|
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/formats/chat/test_chat_lexer.py
RENAMED
|
File without changes
|
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/formats/chat/test_chat_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/models/test_audio_io.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/models/test_audio_lazy.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/pipelines/analysis/test_eval.py
RENAMED
|
File without changes
|
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/pipelines/asr/test_asr_utils.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/pipelines/cache/__init__.py
RENAMED
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/pipelines/cache/test_cache.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign/tests/pipelines/test_pipeline.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
|
{batchalign-0.8.2.post12 → batchalign-0.8.2.post14}/batchalign.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|