游雁
2023-02-21 15aa271d0c81812c809a20c316305d80364713a1
funasr/runtime/python/onnxruntime/rapid_paraformer/paraformer_onnx.py
@@ -2,18 +2,17 @@
# @Author: SWHL
# @Contact: liekkaskono@163.com
import os.path
import traceback
from pathlib import Path
from typing import List, Union, Tuple
import librosa
import numpy as np
from utils.utils import (CharTokenizer, Hypothesis, ONNXRuntimeError,
from .utils.utils import (CharTokenizer, Hypothesis, ONNXRuntimeError,
                    OrtInferSession, TokenIDConverter, get_logger,
                    read_yaml)
from utils.postprocess_utils import sentence_postprocess
from utils.frontend import WavFrontend
from .utils.postprocess_utils import sentence_postprocess
from .utils.frontend import WavFrontend
logging = get_logger()
@@ -140,5 +139,3 @@
        text = texts[0]
        # text = self.tokenizer.tokens2text(token)
        return text