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

模型结果有问题 #53

Closed
chw-shuai opened this issue Jul 20, 2023 · 1 comment
Closed

模型结果有问题 #53

chw-shuai opened this issue Jul 20, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@chw-shuai
Copy link

使用模型对新闻分类(classify)、目的分类(classify)、摘要(生成)进行测试,和预期结果差异太大,在https://huggingface.co/csebuetnlp/mT5_multilingual_XLSum测试同样如此

-- coding: utf-8 --

from textgen import T5Model
model = T5Model("t5", "shibing624/prompt-t5-base-chinese")
r = model.predict(['''分类任务:
折价率过低遭抛售基金泰和跌7.15%,证券时报记者 朱景锋本报讯 由于折价率在大盘封基中处于最低水平,基金泰和昨日遭到投资者大举抛售,跌幅达到7.15%,远超大盘。盘面显示,基金泰和随大盘高开,之后开始震荡走低,午后开始加速下行,几乎没有像样反弹。截至收盘时,在沪深300指数仅下跌2.56%的情况下,基金泰和收盘跌幅高达7.15%,在所有封基中跌幅最大,而昨日多数封基跌幅在2%左右。
选项:财经,娱乐,时政,股票
答案:'''])
print(r)

结果:['股票价格下降']

@chw-shuai chw-shuai added the bug Something isn't working label Jul 20, 2023
@shibing624
Copy link
Owner

该模型是去年的初版模型,语义对齐太弱了,为避免带来困惑,我关闭该模型,等升级到flat-t5的中文模型后,再开放。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants