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?
Asked
Active
Viewed 1.1k times
11
-
You could go the out of process route to access the Python library - not pretty - but something. (You could also look into IronPython as a possibility.) – Norman H Dec 22 '14 at 21:34
3 Answers
2
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.
Nathan Baulch
- 19,637
- 4
- 51
- 53
-
How did you use that Bayesian classifier? I'm following the instructions but a little loss. – youngscientist Sep 25 '10 at 15:21
1
This might be something to look at:
Nitin Agarwal
- 3,150
- 1
- 19
- 11
1
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.
Reinderien
- 8,154
- 3
- 41
- 70