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

Sentiment on a quote in a recent news #105

Open
popohoma opened this issue Aug 16, 2019 · 0 comments
Open

Sentiment on a quote in a recent news #105

popohoma opened this issue Aug 16, 2019 · 0 comments

Comments

@popohoma
Copy link

Hi Team,

Tried below idiom via SnowNLP and it's giving below output. Does your NLP really understand what it means and does below output looks sensible?

First Case

text = SnowNLP(u'黃台之瓜,何堪再摘')
sent = text.sentences
for sen in sent:
s = SnowNLP(sen)
print(s.sentiments)

Output:
0.4737672181921908
0.31789640360305127

Second Case

text = SnowNLP(u'黃台之瓜何堪再摘')
sent = text.sentences
for sen in sent:
s = SnowNLP(sen)
print(s.sentiments)

0.2741812142680359

Thanks

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