PaddlePaddle / PaddleNLP

👑 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.
https://paddlenlp.readthedocs.io
Apache License 2.0
12.17k stars 2.95k forks source link

[Question]使用paddlenlp的uie模型同义词不起作用 #5610

Open guiniao opened 1 year ago

guiniao commented 1 year ago

请提出你的问题

使用paddlenlp的uie模型提取评论的属性-观点词-情感极性,配置synonyms.txt同义词,模型训练好后,利用同义词提取不起作用,问什么,这个同义词也需要大量样本训练吗

w5688414 commented 6 months ago

同义词是构造数据集的,如果想让模型理解您添加的同义词,需要做一些数据工程。

https://github.com/PaddlePaddle/PaddleNLP/blob/829e7f03a5a99d3c5c912a6908462fa076426e85/applications/sentiment_analysis/unified_sentiment_extraction/label_studio.py#L398C46-L398C73