Skip to content
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

Open
account15222 opened this issue Aug 15, 2024 · 0 comments
Open

标点符号模型预测报错 #19

account15222 opened this issue Aug 15, 2024 · 0 comments

Comments

@account15222
Copy link

大佬 这是什么情况导致的呢 我训练蒙古文标点符号呢 预测的时候也用蒙古文文本
[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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant