Package miopia :: Package analyzer :: Module AnalyzerConfiguration :: Class AnalyzerConfiguration
[hide private]
[frames] | no frames]

Class AnalyzerConfiguration

source code

object --+
         |
        AnalyzerConfiguration

AnalyzerConfiguration sets the configuration of a SentimentAnalyzer

Instance Methods [hide private]
 
__init__(self, final_sentences_weight=1.75, caps_int=0.1, replication_int=0.25, restrictive_adv_weight=0.75, restrictive_main_weight=1.4, without_shift=3.55, neg_shift=4)
Constructor
source code
 
get_final_sentences_weight(self) source code
 
get_caps_int(self) source code
 
get_replication_int(self) source code
 
get_restrictive_adv_weight(self) source code
 
get_restrictive_main_weight(self) source code
 
get_without_shift(self) source code
 
get_neg_shift(self) source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, final_sentences_weight=1.75, caps_int=0.1, replication_int=0.25, restrictive_adv_weight=0.75, restrictive_main_weight=1.4, without_shift=3.55, neg_shift=4)
(Constructor)

source code 

Constructor

Parameters:
  • final_sentence_weight - A float. The weighting factor for final sentences.
  • caps_int - A float. The weighting factor for capitalized words.
  • replication_int - A float. The weighting factor for words with replicated characters.
  • restrictive_adv_weight - A float. The weighting factor for adversative subordinate clause.
  • restrictive_main_weight - A float. The weighting factor for the main sentence of a subordinate clause.
  • without_shift - A float. The shift value to negate 'sin' ('without') phrases.
  • neg_shift - A float. The shift value value to negate 'no' ('not') and 'nunca' ('never') phrases.
Overrides: object.__init__