使用 Weka 按情绪对推文进行分类
我想将推文分为正面-负面-中性。为此,我有一个 CSV 文件,每行包含推文和情绪 [积极-消极-中性]。当我将此文件提供给 Weka 时,它会将其转换为 arff 格式。然后当我选择分类器时[例如。 J48] 我只能看到“负面”推文的结果。它显示精确度、召回率等,但仅适用于“负”属性。我想查看考虑到所有 3 种情绪的所有值。
接下来,我想针对所有负面、正面和中性对其进行训练,然后尝试测试 csv 文件。有人可以告诉我如何继续吗?
I want to classify tweets into positive-negative-neutral. For that I have a CSV file containing tweets and sentiment [positive-negative-neutral] in each row. When I feed this file to Weka, it converts it to arff format. Then when I select the classifier [for eg. J48] I am able to see results only for "negative" tweets. It shows precision, recall etc but only for "negative" attribute. I want to see all the values considering all 3 sentiments.
Next, I want to train it for all negative, positive and neutral and then try the test csv file. Can someone please tell me how I can proceed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于您尚未提供数据,因此您正在处理示例输出,无法非常明确地提供帮助,但是是的,您可以通过以下博客获得一些帮助
Jose Maria Gomez Hidalgo(Nihil Obstat) 使用 Weka 进行情感分析,网址为 http://jmgomezhidalgo.blogspot.in/2013/06/baseline-sentiment-analysis-with-weka.html
希望如此帮助了。
As you haven't provided data, you are working on, and sample output, can not help very explicitly but yes you may get some help by following blog written by
Jose Maria Gomez Hidalgo(Nihil Obstat) on sentiment analysis using Weka at http://jmgomezhidalgo.blogspot.in/2013/06/baseline-sentiment-analysis-with-weka.html
Hope it helped.