mirror of
https://github.com/malarinv/plume-asr.git
synced 2026-03-08 04:12:35 +00:00
1. refactor package root to src/ layout
2. add framwork suffix for models 3. change black max columns to 79 4. add tests 5. integrate vad, encrypt and refactor manifest, regentity, extended_path, audio, parallel utils 6. added ui utils for encrypted preview 7. wip marblenet model 8. added transformers based wav2vec2 inference 9. update readme and manifest 10. add deploy setup target
This commit is contained in:
17
tests/plume/utils/test_regentity.py
Normal file
17
tests/plume/utils/test_regentity.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from plume.utils.regentity import infer_num_replacer
|
||||
|
||||
|
||||
def test_infer_num():
|
||||
repl = infer_num_replacer()
|
||||
|
||||
assert (
|
||||
repl(
|
||||
"SIX NINE TRIPL EIGHT SIX SIX DOULE NINE THREE ZERO TWO SEVENT-ONE"
|
||||
)
|
||||
== "69888669930271"
|
||||
)
|
||||
|
||||
assert (
|
||||
repl("SIX NINE FSIX EIGHT IGSIX SIX NINE NINE THRE ZERO TWO SEVEN ONE")
|
||||
== "6968669930271"
|
||||
)
|
||||
Reference in New Issue
Block a user