| | |
| | | #!/usr/bin/env python3 |
| | | # Copyright ESPnet (https://github.com/espnet/espnet). All Rights Reserved. |
| | | # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) |
| | | |
| | | |
| | | import argparse |
| | | import logging |
| | |
| | | if mode == "punc": |
| | | from funasr.bin.punctuation_infer import inference_modelscope |
| | | return inference_modelscope(**kwargs) |
| | | if mode == "punc_VadRealtime": |
| | | from funasr.bin.punctuation_infer_vadrealtime import inference_modelscope |
| | | return inference_modelscope(**kwargs) |
| | | else: |
| | | logging.info("Unknown decoding mode: {}".format(mode)) |
| | | return None |