BatchalignHK 0.8.0__tar.gz → 0.8.0.post1__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.
Files changed (184) hide show
  1. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/BatchalignHK.egg-info/PKG-INFO +1 -1
  2. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/PKG-INFO +1 -1
  3. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/cli/dispatch.py +105 -76
  4. batchalignhk-0.8.0.post1/batchalign/version +3 -0
  5. batchalignhk-0.8.0/batchalign/version +0 -3
  6. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/BatchalignHK.egg-info/SOURCES.txt +0 -0
  7. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/BatchalignHK.egg-info/dependency_links.txt +0 -0
  8. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/BatchalignHK.egg-info/entry_points.txt +0 -0
  9. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/BatchalignHK.egg-info/requires.txt +0 -0
  10. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/BatchalignHK.egg-info/top_level.txt +0 -0
  11. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/LICENSE +0 -0
  12. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/MANIFEST.in +0 -0
  13. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/README.md +0 -0
  14. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/__init__.py +0 -0
  15. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/__main__.py +0 -0
  16. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/cli/__init__.py +0 -0
  17. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/cli/cli.py +0 -0
  18. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/constants.py +0 -0
  19. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/document.py +0 -0
  20. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/errors.py +0 -0
  21. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/__init__.py +0 -0
  22. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/core.py +0 -0
  23. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/exception.py +0 -0
  24. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/logging.py +0 -0
  25. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/realtime_meeting.py +0 -0
  26. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/speech_recognizer.py +0 -0
  27. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/speech_synthesizer.py +0 -0
  28. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/speech_transcriber.py +0 -0
  29. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/stream_input_tts.py +0 -0
  30. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/token.py +0 -0
  31. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/util.py +0 -0
  32. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/version.py +0 -0
  33. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/websocket/__init__.py +0 -0
  34. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/websocket/_abnf.py +0 -0
  35. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/websocket/_app.py +0 -0
  36. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/websocket/_cookiejar.py +0 -0
  37. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/websocket/_core.py +0 -0
  38. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/websocket/_exceptions.py +0 -0
  39. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/websocket/_handshake.py +0 -0
  40. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/websocket/_http.py +0 -0
  41. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/websocket/_logging.py +0 -0
  42. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/websocket/_socket.py +0 -0
  43. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/websocket/_ssl_compat.py +0 -0
  44. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/websocket/_url.py +0 -0
  45. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/websocket/_utils.py +0 -0
  46. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/websocket/tests/__init__.py +0 -0
  47. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/websocket/tests/echo-server.py +0 -0
  48. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/websocket/tests/test_abnf.py +0 -0
  49. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/websocket/tests/test_app.py +0 -0
  50. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/websocket/tests/test_cookiejar.py +0 -0
  51. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/websocket/tests/test_http.py +0 -0
  52. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/websocket/tests/test_url.py +0 -0
  53. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/extern/nls/websocket/tests/test_websocket.py +0 -0
  54. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/formats/__init__.py +0 -0
  55. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/formats/base.py +0 -0
  56. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/formats/chat/__init__.py +0 -0
  57. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/formats/chat/file.py +0 -0
  58. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/formats/chat/generator.py +0 -0
  59. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/formats/chat/lexer.py +0 -0
  60. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/formats/chat/parser.py +0 -0
  61. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/formats/chat/utils.py +0 -0
  62. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/formats/textgrid/__init__.py +0 -0
  63. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/formats/textgrid/file.py +0 -0
  64. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/formats/textgrid/generator.py +0 -0
  65. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/formats/textgrid/parser.py +0 -0
  66. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/models/__init__.py +0 -0
  67. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/models/resolve.py +0 -0
  68. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/models/speaker/__init__.py +0 -0
  69. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/models/speaker/config.yaml +0 -0
  70. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/models/speaker/infer.py +0 -0
  71. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/models/speaker/utils.py +0 -0
  72. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/models/training/__init__.py +0 -0
  73. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/models/training/run.py +0 -0
  74. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/models/training/utils.py +0 -0
  75. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/models/utils.py +0 -0
  76. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/models/utterance/__init__.py +0 -0
  77. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/models/utterance/cantonese_infer.py +0 -0
  78. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/models/utterance/dataset.py +0 -0
  79. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/models/utterance/execute.py +0 -0
  80. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/models/utterance/infer.py +0 -0
  81. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/models/utterance/prep.py +0 -0
  82. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/models/utterance/train.py +0 -0
  83. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/models/wave2vec/__init__.py +0 -0
  84. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/models/wave2vec/infer_fa.py +0 -0
  85. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/models/whisper/__init__.py +0 -0
  86. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/models/whisper/infer_asr.py +0 -0
  87. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/models/whisper/infer_fa.py +0 -0
  88. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/__init__.py +0 -0
  89. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/analysis/__init__.py +0 -0
  90. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/analysis/eval.py +0 -0
  91. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/asr/__init__.py +0 -0
  92. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/asr/aliyun.py +0 -0
  93. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/asr/funaudio.py +0 -0
  94. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/asr/num2chinese.py +0 -0
  95. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/asr/num2lang/__init__.py +0 -0
  96. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/asr/num2lang/deu.py +0 -0
  97. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/asr/num2lang/ell.py +0 -0
  98. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/asr/num2lang/eng.py +0 -0
  99. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/asr/num2lang/eus.py +0 -0
  100. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/asr/num2lang/fra.py +0 -0
  101. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/asr/num2lang/hrv.py +0 -0
  102. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/asr/num2lang/ind.py +0 -0
  103. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/asr/num2lang/jpn.py +0 -0
  104. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/asr/num2lang/nld.py +0 -0
  105. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/asr/num2lang/por.py +0 -0
  106. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/asr/num2lang/spa.py +0 -0
  107. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/asr/num2lang/tha.py +0 -0
  108. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/asr/oai_whisper.py +0 -0
  109. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/asr/rev.py +0 -0
  110. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/asr/tencent.py +0 -0
  111. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/asr/utils.py +0 -0
  112. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/asr/whisper.py +0 -0
  113. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/asr/whisperx.py +0 -0
  114. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/avqi/__init__.py +0 -0
  115. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/avqi/engine.py +0 -0
  116. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/base.py +0 -0
  117. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/cleanup/__init__.py +0 -0
  118. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/cleanup/cleanup.py +0 -0
  119. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/cleanup/disfluencies.py +0 -0
  120. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/cleanup/parse_support.py +0 -0
  121. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/cleanup/retrace.py +0 -0
  122. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/cleanup/support/filled_pauses.eng +0 -0
  123. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/cleanup/support/replacements.eng +0 -0
  124. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/cleanup/support/test.test +0 -0
  125. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/diarization/__init__.py +0 -0
  126. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/diarization/pyannote.py +0 -0
  127. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/dispatch.py +0 -0
  128. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/fa/__init__.py +0 -0
  129. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/fa/iic_fa.py +0 -0
  130. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/fa/wave2vec_fa.py +0 -0
  131. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/fa/wave2vec_fa_canto.py +0 -0
  132. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/fa/whisper_fa.py +0 -0
  133. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/morphosyntax/__init__.py +0 -0
  134. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/morphosyntax/coref.py +0 -0
  135. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/morphosyntax/en/irr.py +0 -0
  136. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/morphosyntax/fr/apm.py +0 -0
  137. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/morphosyntax/fr/apmn.py +0 -0
  138. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/morphosyntax/fr/case.py +0 -0
  139. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/morphosyntax/ja/verbforms.py +0 -0
  140. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/morphosyntax/ud.py +0 -0
  141. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/opensmile/__init__.py +0 -0
  142. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/opensmile/engine.py +0 -0
  143. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/pipeline.py +0 -0
  144. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/speaker/__init__.py +0 -0
  145. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/speaker/nemo_speaker.py +0 -0
  146. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/translate/__init__.py +0 -0
  147. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/translate/gtrans.py +0 -0
  148. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/translate/seamless.py +0 -0
  149. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/translate/utils.py +0 -0
  150. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/utr/__init__.py +0 -0
  151. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/utr/funaudio_utr.py +0 -0
  152. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/utr/rev_utr.py +0 -0
  153. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/utr/tencent_utr.py +0 -0
  154. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/utr/utils.py +0 -0
  155. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/utr/whisper_utr.py +0 -0
  156. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/utterance/__init__.py +0 -0
  157. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/pipelines/utterance/ud_utterance.py +0 -0
  158. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/tests/__init__.py +0 -0
  159. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/tests/conftest.py +0 -0
  160. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/tests/formats/chat/test_chat_file.py +0 -0
  161. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/tests/formats/chat/test_chat_generator.py +0 -0
  162. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/tests/formats/chat/test_chat_lexer.py +0 -0
  163. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/tests/formats/chat/test_chat_parser.py +0 -0
  164. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/tests/formats/chat/test_chat_utils.py +0 -0
  165. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/tests/formats/textgrid/test_textgrid.py +0 -0
  166. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/tests/pipelines/analysis/test_eval.py +0 -0
  167. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/tests/pipelines/asr/test_asr_pipeline.py +0 -0
  168. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/tests/pipelines/asr/test_asr_utils.py +0 -0
  169. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/tests/pipelines/cleanup/test_disfluency.py +0 -0
  170. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/tests/pipelines/cleanup/test_parse_support.py +0 -0
  171. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/tests/pipelines/fa/test_fa_pipeline.py +0 -0
  172. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/tests/pipelines/fixures.py +0 -0
  173. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/tests/pipelines/test_pipeline.py +0 -0
  174. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/tests/pipelines/test_pipeline_models.py +0 -0
  175. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/tests/test_document.py +0 -0
  176. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/utils/__init__.py +0 -0
  177. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/utils/abbrev.py +0 -0
  178. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/utils/compounds.py +0 -0
  179. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/utils/config.py +0 -0
  180. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/utils/dp.py +0 -0
  181. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/utils/names.py +0 -0
  182. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/batchalign/utils/utils.py +0 -0
  183. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/setup.cfg +0 -0
  184. {batchalignhk-0.8.0 → batchalignhk-0.8.0.post1}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: BatchalignHK
3
- Version: 0.8.0
3
+ Version: 0.8.0.post1
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: BatchalignHK
3
- Version: 0.8.0
3
+ Version: 0.8.0.post1
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
@@ -47,103 +47,131 @@ def _get_worker_pipeline(command, lang, num_speakers, **kwargs):
47
47
  lang=lang, num_speakers=num_speakers, **kwargs)
48
48
  return _worker_pipeline
49
49
 
50
- def _worker_task(file_info, command, lang, num_speakers, loader_info, writer_info, progress_queue=None, **kwargs):
50
+ def _worker_task(file_info, command, lang, num_speakers, loader_info, writer_info, progress_queue=None, verbose=0, **kwargs):
51
51
  """The task executed in each worker process."""
52
52
  import sys
53
53
  import os
54
54
  import tempfile
55
-
55
+ import logging
56
+
56
57
  file, output = file_info
57
58
  pid = os.getpid()
58
-
59
- # Use a temporary file to capture ALL output at the FD level
60
- # This is the most robust way to prevent interleaved output
61
- with tempfile.TemporaryFile(mode='w+') as log_file:
59
+
60
+ # Configure logging in this worker process
61
+ if verbose >= 1:
62
+ # Ensure basicConfig is called so logging works
63
+ logging.basicConfig(format="%(levelname)s - %(name)s - %(message)s", level=logging.ERROR)
64
+
65
+ # Configure batchalign logger level in this worker process
66
+ baL = logging.getLogger('batchalign')
67
+ if verbose == 0:
68
+ baL.setLevel(logging.WARN)
69
+ elif verbose == 1:
70
+ baL.setLevel(logging.INFO)
71
+ else:
72
+ baL.setLevel(logging.DEBUG)
73
+
74
+ # Only capture output if not in verbose mode
75
+ # In verbose mode, let logs stream naturally to the console
76
+ should_capture = verbose == 0
77
+
78
+ if should_capture:
79
+ # Use a temporary file to capture ALL output at the FD level
80
+ # This is the most robust way to prevent interleaved output
81
+ log_file = tempfile.TemporaryFile(mode='w+')
62
82
  old_stdout_fd = os.dup(sys.stdout.fileno())
63
83
  old_stderr_fd = os.dup(sys.stderr.fileno())
64
-
65
- try:
66
- # Redirect FD 1 and 2 to our temp file
67
- os.dup2(log_file.fileno(), sys.stdout.fileno())
68
- os.dup2(log_file.fileno(), sys.stderr.fileno())
69
-
70
- pipeline = _get_worker_pipeline(command, lang, num_speakers, **kwargs)
71
84
 
72
- def progress_callback(completed, total, tasks):
73
- if not progress_queue:
74
- return
75
- try:
76
- progress_queue.put((file, completed, total, tasks))
77
- except Exception:
78
- pass
79
-
80
- # For now, we'll re-import what we need
81
- from batchalign.formats.chat import CHATFile
82
-
83
- # Morphosyntax specific loader/writer logic moved here for picklability
84
- if command == "morphotag":
85
- # Extract morphotag-specific arguments from kwargs
86
- mwt = kwargs.pop("mwt", {})
87
- retokenize = kwargs.pop("retokenize", False)
88
- skipmultilang = kwargs.pop("skipmultilang", False)
89
-
90
- cf = CHATFile(path=os.path.abspath(file), special_mor_=True)
91
- doc = cf.doc
92
- if str(cf).count("%mor") > 0:
93
- doc.ba_special_["special_mor_notation"] = True
94
-
95
- # Prepare arguments for the pipeline
96
- pipeline_kwargs = {
97
- "retokenize": retokenize,
98
- "skipmultilang": skipmultilang,
99
- "mwt": mwt
100
- }
101
- # Add any remaining kwargs
102
- pipeline_kwargs.update(kwargs)
103
-
104
- # Process
105
- doc = pipeline(doc, callback=progress_callback, **pipeline_kwargs)
106
-
107
- # Write
108
- CHATFile(doc=doc, special_mor_=doc.ba_special_.get("special_mor_notation", False)).write(output)
109
-
110
- # Add other commands as needed, or use a more generic registry
111
- elif command == "align":
112
- cf = CHATFile(path=os.path.abspath(file))
113
- doc = cf.doc
114
- kw = {"pauses": kwargs.get("pauses", False)}
115
- doc = pipeline(doc, callback=progress_callback, **kw)
116
- CHATFile(doc=doc).write(output, write_wor=kwargs.get("wor", True))
117
-
118
- else:
119
- loader, writer = loader_info, writer_info
120
- doc = loader(os.path.abspath(file))
121
- kw = {}
122
- if isinstance(doc, tuple) and len(doc) > 1:
123
- doc, kw = doc
124
- doc = pipeline(doc, callback=progress_callback, **kw)
125
- writer(doc, output)
126
-
127
- # Flush everything before reading back
85
+ # Redirect FD 1 and 2 to our temp file
86
+ os.dup2(log_file.fileno(), sys.stdout.fileno())
87
+ os.dup2(log_file.fileno(), sys.stderr.fileno())
88
+
89
+ try:
90
+ pipeline = _get_worker_pipeline(command, lang, num_speakers, **kwargs)
91
+
92
+ def progress_callback(completed, total, tasks):
93
+ if not progress_queue:
94
+ return
95
+ try:
96
+ progress_queue.put((file, completed, total, tasks))
97
+ except Exception:
98
+ pass
99
+
100
+ # For now, we'll re-import what we need
101
+ from batchalign.formats.chat import CHATFile
102
+
103
+ # Morphosyntax specific loader/writer logic moved here for picklability
104
+ if command == "morphotag":
105
+ # Extract morphotag-specific arguments from kwargs
106
+ mwt = kwargs.pop("mwt", {})
107
+ retokenize = kwargs.pop("retokenize", False)
108
+ skipmultilang = kwargs.pop("skipmultilang", False)
109
+
110
+ cf = CHATFile(path=os.path.abspath(file), special_mor_=True)
111
+ doc = cf.doc
112
+ if str(cf).count("%mor") > 0:
113
+ doc.ba_special_["special_mor_notation"] = True
114
+
115
+ # Prepare arguments for the pipeline
116
+ pipeline_kwargs = {
117
+ "retokenize": retokenize,
118
+ "skipmultilang": skipmultilang,
119
+ "mwt": mwt
120
+ }
121
+ # Add any remaining kwargs
122
+ pipeline_kwargs.update(kwargs)
123
+
124
+ # Process
125
+ doc = pipeline(doc, callback=progress_callback, **pipeline_kwargs)
126
+
127
+ # Write
128
+ CHATFile(doc=doc, special_mor_=doc.ba_special_.get("special_mor_notation", False)).write(output)
129
+
130
+ # Add other commands as needed, or use a more generic registry
131
+ elif command == "align":
132
+ cf = CHATFile(path=os.path.abspath(file))
133
+ doc = cf.doc
134
+ kw = {"pauses": kwargs.get("pauses", False)}
135
+ doc = pipeline(doc, callback=progress_callback, **kw)
136
+ CHATFile(doc=doc).write(output, write_wor=kwargs.get("wor", True))
137
+
138
+ else:
139
+ loader, writer = loader_info, writer_info
140
+ doc = loader(os.path.abspath(file))
141
+ kw = {}
142
+ if isinstance(doc, tuple) and len(doc) > 1:
143
+ doc, kw = doc
144
+ doc = pipeline(doc, callback=progress_callback, **kw)
145
+ writer(doc, output)
146
+
147
+ # Flush and read captured output if we were capturing
148
+ if should_capture:
128
149
  sys.stdout.flush()
129
150
  sys.stderr.flush()
130
151
  log_file.seek(0)
131
152
  captured = log_file.read()
132
-
133
- return file, None, None, captured
134
- except Exception as e:
135
- # Flush everything before reading back
153
+ else:
154
+ captured = ""
155
+
156
+ return file, None, None, captured
157
+ except Exception as e:
158
+ # Flush and read captured output if we were capturing
159
+ if should_capture:
136
160
  sys.stdout.flush()
137
161
  sys.stderr.flush()
138
162
  log_file.seek(0)
139
163
  captured = log_file.read()
140
- return file, traceback.format_exc(), e, captured
141
- finally:
142
- # Restore original FDs
164
+ else:
165
+ captured = ""
166
+ return file, traceback.format_exc(), e, captured
167
+ finally:
168
+ # Restore original FDs only if we redirected them
169
+ if should_capture:
143
170
  os.dup2(old_stdout_fd, sys.stdout.fileno())
144
171
  os.dup2(old_stderr_fd, sys.stderr.fileno())
145
172
  os.close(old_stdout_fd)
146
173
  os.close(old_stderr_fd)
174
+ log_file.close()
147
175
 
148
176
  # this dictionary maps what commands are executed
149
177
  # against what BatchalignPipeline tasks are actually ran
@@ -326,6 +354,7 @@ def _dispatch(command, lang, num_speakers,
326
354
  loader_info=None,
327
355
  writer_info=None,
328
356
  progress_queue=progress_queue,
357
+ verbose=ctx.obj["verbose"],
329
358
  **kwargs)
330
359
 
331
360
  future_to_file = {executor.submit(worker_func, (f, o)): f for f, o in zip(files, outputs)}
@@ -0,0 +1,3 @@
1
+ 0.8.0-post.1
2
+ Jan 13th, 2025
3
+ Speed
@@ -1,3 +0,0 @@
1
- 0.8.0
2
- Jan 13th, 2025
3
- Speed
File without changes