Re: Naive Bayes Classifier Sentiment Analysis

2014-09-11 Thread luca filipponi
Finally I’ve implemented a Naive Bayes Classifier for Sentiment analysis and works quite good, but I’ve few questions. The training phase creates a .bin file that is the model of the classifier, I’ve tried to read but I can’t. What does the .bin file represent? I’m asking this because I’d like

Re: Naive Bayes Classifier Sentiment Analysis

2014-07-29 Thread vaibhav srivastava
Hi Filipponi, This case testnb will not work. As in the end part of it code its takes label to print the confusion matrix. if you want to use your Model to predict what are the possible out come, you have to use the class "TestNaiveBayesDriver.java" to write that. and comment this section /*if (

Re: Naive Bayes Classifier Sentiment Analysis

2014-07-29 Thread Luca Filipponi
I appreciate your help, but for my lack of knowledge I didn’t understand. I’ll try to explain better my problem :D What I’ve done is to create a sequence File starting from csv like this ( is italian tweet :D ): negativo,471685156584292353, @beppe_grillo intanto .. Piangi tu ... Per adesso io

Re: Naive Bayes Classifier Sentiment Analysis

2014-07-29 Thread vaibhav srivastava
Hi The sequence file format will be Text and Vector Writable. suppose you have test document named as 1,2,3,4. The you can have sequence file format as Key : /test/1 Value : /test/2 Value : this line in BayesTestMapper //the key is the expected value context.write(new Text(SLASH.split(key.t

Re: Naive Bayes Classifier Sentiment Analysis

2014-07-29 Thread Luca Filipponi
I am using mahout 0.9, which part of source code should I look? My problem is that I don’t know how to the sequence file without the label should be structured. Do you have any hint? Il giorno 29/lug/2014, alle ore 15:24, vaibhav srivastava ha scritto: > Hi, > If you want to create a test se

Re: Naive Bayes Classifier Sentiment Analysis

2014-07-29 Thread vaibhav srivastava
Hi, If you want to create a test set and if you do not want to measure accuracy. Then you can make an instance of claasifier and load your model on that classifier and then can find the best score. Look at navie bayes test code. Hope this help. Thanks . On 29 Jul 2014 12:53, "Luca Filipponi" wrot

Naive Bayes Classifier Sentiment Analysis

2014-07-29 Thread Luca Filipponi
Hi , I am trying to develop sentiment analysis on italian tweet from twitter using the naive bayes classifier, but I’ve some trouble. My idea was to classify a lot of tweet as positive, negative or neautral, and using that as training set for the Classifier. To do that I’ve wrote a sequence fil