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

'DUTIR' 情绪词典脏了 #2

Open
WuZifan opened this issue Jun 20, 2022 · 1 comment
Open

'DUTIR' 情绪词典脏了 #2

WuZifan opened this issue Jun 20, 2022 · 1 comment

Comments

@WuZifan
Copy link

WuZifan commented Jun 20, 2022

`
import cntext as ct
res = ct.load_pkl_dict('DUTIR.pkl')

for k,v in res['DUTIR'].items():
print(k,len(v))
print("开心" in v)
`

会发现 ’开心‘同时在’乐‘和’惧‘两个类别中出现

@hiDaDeng
Copy link
Owner

关于词典污染问题已解决。该问题存在于1.7.1及之前的版本,命令行中的更新安装方法

pip3 install cntext==1.7.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants