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
11.98k stars 2.91k forks source link

paddleNLP 机器翻译Demo问题 #2887

Closed qjxjy123 closed 1 year ago

qjxjy123 commented 2 years ago

https://github.com/PaddlePaddle/PaddleNLP/blob/develop/faster_generation/samples/mbart_sample.py 在paddlenlp机器翻译内置权重的使用过程中,当输入纯数字进行英译中的时候,会出现一些异常情况:在预测结果前面加入『小行星』、『號』等文字,在demo里将输入的英文改为纯数字即可复现结果。 image image

gongel commented 2 years ago

你好,我测试过HF的源代码,结果是一致的哈。该模型对数字支持确实不是很好,可以尝试换成mbart-large-50-many-to-many-mmt或者做些后处理。

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 60 days with no activity. 当前issue 60天内无活动,被标记为stale。

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale. 当前issue 被标记为stale已有14天,即将关闭。