Bayes
Bayes copied to clipboard
Bayesian Classification in Objective-C
Bayes
Usage:
#import <Foundation/Foundation.h>
#import "Api.h"
int main(int argc, const char * argv[])
{
@autoreleasepool {
Api *myApi = [[Api alloc] init];
//Classifiers
[myApi sentiClassifier:@"This was one of the bad movies. Will Never watch it again" andClassifier:@"MaxentClassifier" andDomain:@"movies"];
NSLog(@"Maxent Classifier %@",myApi.jsonOutputDict);
//NaiveBayes
[myApi sentiClassifier:@"This was one of the best movies. Will surely watch it again" andClassifier:@"NaiveBayes" andDomain:@"tweets"];
NSLog(@"Naive Bayes %@",myApi.jsonOutputDict);
//NaiveBayes
[myApi sentiClassifier:@"This was one of the best movies. Will surely watch it again" andClassifier:@"WSD-SentiWordNet" andDomain:@"movies"];
NSLog(@"WSD %@",myApi.jsonOutputDict);
//Domains
//movies, tweets, amazon
About
-
Library includes standard naive bays, robinson's classifier.
-
For sentiment analysis api is used for which json is used dependencies of which are included in the project.
-
Basic text processing
- Remove StopWords
- Tokenizer, POS-Tagger, bigrams, trigrams etc..