Home | Trees | Indices | Help |
---|
|
1 ''' 2 Created on 09/10/2013 3 4 @author: David Vilares 5 ''' 6 7 8 from miopia.adapter.SintacticAdapter import SintacticAdapter 9 from miopia.adapter.Feature import FeatureType 10 from miopia.util.exceptions.FeatureTypeConfigurationException import FeatureTypeConfigurationException 11 from miopia.analyzer.counter.SentimentCounter import SentimentCounter 1214 ''' 15 SentimentAdapter allows to obtain sentiment features from L{src.miope.analyzer.SentimentAnalyzer} 16 to then train a L{src.miope.classifier.ClassifierI} 17 ''' 18 193821 ''' 22 @param path_weka: The path to the WEKA.jar 23 @param abstracted_lexicons_counter: An instance of L{SentimentCounter} 24 ''' 25 26 if not isinstance(sentiment_counter, SentimentCounter): 27 raise ValueError 28 29 super(SentimentAdapter,self).__init__(path_weka,sentiment_counter, 30 self.TOTAL_WEIGHTING_FACTOR) 31 print "Weight_factor",self._weighting_factor, self.TOTAL_WEIGHTING_FACTOR3234 """ 35 @return: A string with the feature type provided by the SentimentAdapter 36 """ 37 return FeatureType.SENTIMENT_FEATURE
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Wed Oct 15 10:03:40 2014 | http://epydoc.sourceforge.net |