-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
标点符号模型预测报错 #19
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
大佬 这是什么情况导致的呢 我训练蒙古文标点符号呢 预测的时候也用蒙古文文本
[2024-08-15 14:20:05,522] [ INFO] - Already cached /root/.paddlenlp/models/ernie-3.0-medium-zh/ernie_3.0_medium_zh_vocab.txt
[2024-08-15 14:20:05,550] [ INFO] - tokenizer config file saved in /root/.paddlenlp/models/ernie-3.0-medium-zh/tokenizer_config.json
[2024-08-15 14:20:05,551] [ INFO] - Special tokens file saved in /root/.paddlenlp/models/ernie-3.0-medium-zh/special_tokens_map.json
[2024-08-15 14:20:07.638259 INFO ] predictor:init:60 - 标点符号模型加载成功。
Traceback (most recent call last):
File "infer.py", line 17, in
result = pun_executor(args.text)
File "/data/Speech/PunctuationModel/utils/predictor.py", line 108, in call
input_ids, seg_ids, seq_len = self.preprocess(text)
TypeError: cannot unpack non-iterable NoneType object
The text was updated successfully, but these errors were encountered: