Skip to content

pandas低版本无法加载情感词典 #8

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

Open
skykiseki opened this issue Feb 6, 2023 · 1 comment
Open

pandas低版本无法加载情感词典 #8

skykiseki opened this issue Feb 6, 2023 · 1 comment

Comments

@skykiseki
Copy link

skykiseki commented Feb 6, 2023

python 3.7
pandas 1.1.5

import cntext as ct

concreteness_df = ct.load_pkl_dict('concreteness.pkl')

按readme运行后
Can't get attribute 'new_block' on

升级pandas至最新版本1.3.5后解决,是不是安装包应该约束一下pandas版本?

@skykiseki
Copy link
Author

其他不会有这个问题。只有ChineseEmoBank会有问题。

提个建议,建议把词典都归到一个文件下,而且加载的时候能不区分大小写(readme的直接跑可能会有file not exists的error)

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

1 participant