我可以使用NLTK来确定评论是肯定的还是否定的? [英] Can I use NLTK to determine if a comment is a positive one or a negative one?

查看:80
本文介绍了我可以使用NLTK来确定评论是肯定的还是否定的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可以使用 http://www.nltk.org/code 来向我展示一个简单的示例吗?确定是关于开心还是沮丧的字符串?

Can you show me a simple example using http://www.nltk.org/code to determine if a string about a happy or upset mood?

推荐答案

NLTK不能开箱即用,但是如果您正在寻找有关该领域的一些相关研究,请参阅 WEKA 并使用在先前示例中经过训练的多个分类器来确定语言是否令人反感(并且在此方法中使用可调阈值).

NLTK cannot out of the box, but if you are looking for some related research on that area, take a look at this paper on Offensive Language Detection. The same methods could be adapted to detect comments which are not offensive/unoffensive, but instead happy/unhappy. The primary software package being used in this project for text classification is called WEKA and uses multiple classifiers, trained on previous examples, to determine whether language is offensive or not (and in this method uses a tunable threshold).

这篇关于我可以使用NLTK来确定评论是肯定的还是否定的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆