zhifu gao
2022-12-29 1677e441e34f4b33fccc37cff2466362a603a16e
Merge pull request #22 from alibaba-damo-academy/dev

add dependency "pynini==2.1.5" for fun_text_processing into setup.py
2个文件已修改
7 ■■■■ 已修改文件
funasr/bin/modelscope_infer.py 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
setup.py 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/bin/modelscope_infer.py
@@ -82,6 +82,9 @@
            wav_id, wav_path = line.strip().split()
            logging.info("decoding, utt_id: ['{}']".format(wav_id))
            rec_result = inference_pipeline(audio_in=wav_path)
            text = rec_result["text"]
            if 'text' in rec_result:
                text = rec_result["text"]
            else:
                text = ''
            f_out.write(wav_id + " " + text + "\n")
            logging.info("best hypo: {} \n".format(text))
setup.py
@@ -38,6 +38,8 @@
        "editdistance==0.5.2",
        "tensorboard>=1.14",
        "g2p",
        # ITN
        "pynini==2.1.5",
    ],
    # train: The modules invoked when training only.
    "train": [