👑 Easy-to-use and powerful NLP and LLM library with 🤗 Awesome model zoo, supporting wide-range of NLP tasks from research to industrial applications, including 🗂Text Classification, 🔍 Neural Search, ❓ Question Answering, ℹ️ Information Extraction, 📄 Document Intelligence, 💌 Sentiment Analysis etc.
[2022-12-19 10:04:01,372] [ INFO] - We are using <class 'paddlenlp.transformers.ernie.tokenizer.ErnieTokenizer'> to load 'C:\Users\16929\Desktop\data_distill\court\checkpoint\model_30000'.
Traceback (most recent call last):
File "C:/Users/16929/Desktop/data_distill/predict_taskflow.py", line 4, in <module>
print(gp("借款后,被告偿还了本金10000元,仍欠原告50000元,现原告诉请要求被告偿还借款本金50000元,依法有据,本院予以支持"))
File "C:\Users\16929\anaconda3\envs\paddle\lib\site-packages\paddlenlp\taskflow\taskflow.py", line 552, in __call__
results = self.task_instance(inputs)
File "C:\Users\16929\anaconda3\envs\paddle\lib\site-packages\paddlenlp\taskflow\task.py", line 429, in __call__
outputs = self._run_model(inputs)
File "C:\Users\16929\anaconda3\envs\paddle\lib\site-packages\paddlenlp\taskflow\information_extraction.py", line 1283, in _run_model
all_preds[0].extend(batch_outputs[0]) # Entity output
IndexError: list index out of range
Process finished with exit code 1
"
请提出你的问题
报错信息
在预测框架中,可能是这边出问题了
paddlenlp版本为2.4.5 预测代码为:
model_config:
部分训练结果: