yangheng95 / PyABSA

Sentiment Analysis, Text Classification, Text Augmentation, Text Adversarial defense, etc.;
https://pyabsa.readthedocs.io
MIT License
923 stars 159 forks source link

使用deploy demo,情感预测总是Positive #152

Closed jkkl closed 2 years ago

jkkl commented 2 years ago

checkpoint = 'model_garden/V0.8.8.0/Chinese/ATEPC/fast_lcf_atepc_Chinese_cdw_apcacc_96.69_apcf1_96.25_atef1_92.26' checkpoint = 'model_garden/V0.8.8.0/Chinese/ATEPC/fast_lcf_atepc_Multilingual_cdw_apcacc_79.61_apcf1_76.24_atef1_63.29.zip' 这两个模型都试了,Sentiment总是Positive,即便用很负向的表达。

image

yangheng95 commented 2 years ago

请问你使用的哪个版本?请尝试更新到最新版本,有些低版本已知有bug

jkkl commented 2 years ago

请问你使用的哪个版本?请尝试更新到最新版本,有些低版本已知有bug

代码是上周刚clone的master

jkkl commented 2 years ago

请问你使用的哪个版本?请尝试更新到最新版本,有些低版本已知有bug

你说的版本是指模型还是代码?

yangheng95 commented 2 years ago

代码与checkpoint应该匹配

yangheng95 commented 2 years ago

请都使用最新版本

yangheng95 commented 2 years ago

我随后会测试确定问题原因

jkkl commented 2 years ago

请都使用最新版本

最新版的模型在哪找~~

jkkl commented 2 years ago

请都使用最新版本

我使用的这个模型,应该是最新的吧:fast_lcf_atepc_Chinese_cdw_apcacc_96.69_apcf1_96.25_atef1_92.26

yangheng95 commented 2 years ago

PyABSA版本大于1.8.33吗

yangheng95 commented 2 years ago

image checkpoint没有问题,请升级PyABSA. 测试版本:V1.8.39 请在此测试:https://55336.gradio.app/

jkkl commented 2 years ago

image checkpoint没有问题,请升级PyABSA. 测试版本:V1.8.39 请在此测试:https://55336.gradio.app/

Thanks,升级代码后成功了~