为 Twitter 情绪分析项目寻找 C# 中的开源朴素贝叶斯分类器
我在这里找到了一个类似的项目: Python 中的 Twitter 情感分析 。但是,我正在研究 C#,需要使用同一语言的开源朴素贝叶斯分类器。除非有人能阐明我如何利用 python 贝叶斯分类器来实现相同的目标。有什么想法吗?
I've found a similar project here: Sentiment analysis for Twitter in Python . However, I'm working on C# and need to use a naive Bayesian Classifier that is open source in the same language. Unless someone can shed light on how I can utilize a python Bayesian Classifier to achieve the same goals. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
几年前,我在一个项目中成功使用了 这篇 CodeProject 文章中的代码而且它仍然运行良好,准确率高达 99%。
I successfully used the code from this CodeProject article in a project a few years ago and it's still working beautifully with ~99% accuracy.
如果你不是严格需要朴素贝叶斯,我建议 libshogun。它拥有大量高质量的分类器,并且显然已经在 cygwin 上为 win32 成功构建了。构建完成后,您可以从 C# p/调用 DLL。我认为您会发现很难找到用 C# 编写的分类器库,因为分类通常非常注重性能,因此最好的选择是调用这样的本机库。
If you don't strictly need naive Bayes, I would suggest libshogun. It has a huge number of high-quality classifiers, and it apparently has been successfully built for win32 on cygwin. After that's built you can just p/invoke to the DLLs from C#. I think you will find it difficult to find a classifier library written in C# due to the often performance-heavy nature of classification, so your best bet is to call a native library such as this.
这可能值得一看:
https://github.com/joelmartinez/nBayes
https://github.com/joelmartinez/nBayes/wiki
This might be something to look at:
https://github.com/joelmartinez/nBayes
https://github.com/joelmartinez/nBayes/wiki