Package miopia :: Package adapter :: Module SentimentAdapter :: Class SentimentAdapter
[hide private]
[frames] | no frames]

Class SentimentAdapter

source code

                   object --+        
                            |        
              Adapter.Adapter --+    
                                |    
SintacticAdapter.SintacticAdapter --+
                                    |
                                   SentimentAdapter

SentimentAdapter allows to obtain sentiment features from src.miope.analyzer.SentimentAnalyzer to then train a src.miope.classifier.ClassifierI

Instance Methods [hide private]
 
__init__(self, path_weka, sentiment_counter)
Constructor
source code
 
_get_feature_type(self)
Returns: A string with the feature type provided by the SentimentAdapter
source code

Inherited from Adapter.Adapter: arff_header_from_arff_file, classes_from_arff, count_features, get_counter, get_weighting_factor, get_weighting_value, to_arff

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from Adapter.Adapter: ALLOWED_JAVA_HEAP_XMX, BINARY_WEIGHTING_FACTOR, DELIMITER_FEATURE_TYPE_AND_LIST_FEATURES, TOTAL_WEIGHTING_FACTOR

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, path_weka, sentiment_counter)
(Constructor)

source code 

Constructor

Parameters:
  • path_weka - The path to the WEKA.jar
  • abstracted_lexicons_counter - An instance of SentimentCounter
Overrides: object.__init__

_get_feature_type(self)

source code 

The type of the feature

Returns:
A string with the feature type provided by the SentimentAdapter
Overrides: SintacticAdapter.SintacticAdapter._get_feature_type