Closed snoopy1316 closed 2 years ago
问题2:在进行模型构建过程中:PaddleNLP提供了ERNIE预训练模型常用序列标注模型,可以通过指定模型名字完成一键加载:from paddlenlp.transformers import ErnieForTokenClassification
model = ErnieForTokenClassification.from_pretrained("ernie-1.0", num_classes=len(label_map))
输出结果为:
Traceback (most recent call last):
File "一键加载.py", line 1, in
您好,看起来可能是您没有安装datasets库,目前PaddleNLP依赖datasets库,可以安装datasets之后再试一下
参考文档:https://github.com/PaddlePaddle/PaddleNLP/tree/develop/examples/information_extraction/DuEE 在aistudio中运行,硬件信息:GPU 环境配置python 3.7,PaddlePaddle 2.2.2
触发词识别模型训练
该怎样解决,谢谢