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

情感分析的使用出现BUG #93

Open
yuCheng8 opened this issue Sep 22, 2018 · 1 comment
Open

情感分析的使用出现BUG #93

yuCheng8 opened this issue Sep 22, 2018 · 1 comment

Comments

@yuCheng8
Copy link

想对我的一个数据框中的一个变量的每一个句子进行情感指数分析,分析的过程中结果报错,我的想法是增加一列情感指数变量,变量名是sgc。
image
以下是我的数据:
image
在运行完代码:mydata['sgc'] = mydata["msg"].apply(sgdoc)
之后报错如下:
image

@yuCheng8
Copy link
Author

此问题自己终结吧,数据里面有空句子。也是代码可以维护的地方

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