游雁
2023-04-21 874db8c9f3cb5032fb853d739b71d1fc127e3bc3
funasr/bin/punctuation_infer.py
@@ -61,7 +61,6 @@
            text_name="text",
            non_linguistic_symbols=train_args.non_linguistic_symbols,
        )
        print("start decoding!!!")
    @torch.no_grad()
    def __call__(self, text: Union[list, str], split_size=20):
@@ -223,7 +222,6 @@
            result, _ = text2punc(line)
            item = {'key': key, 'value': result}
            results.append(item)
            print(results)
            return results
        for inference_text, _, _ in data_path_and_name_and_type: