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

Class SentimentInfo

source code

object --+
         |
        SentimentInfo

SentimentInfo stores relevant information about a branch of a SentimentDependencyGraph

Instance Methods [hide private]
 
__init__(self, intensifier, so, subjectivity, pos_words, neg_words, number_intensifiers, length_text, number_words)
Constructor
source code
 
get_int(self) source code
 
get_so(self) source code
 
get_subjectivity(self) source code
 
set_pos_words(self, pos_words) source code
 
get_pos_words(self) source code
 
set_neg_words(self, neg_words) source code
 
get_neg_words(self) source code
 
get_number_intensifiers(self) source code
 
get_length_text(self) source code
 
get_number_words(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, intensifier, so, subjectivity, pos_words, neg_words, number_intensifiers, length_text, number_words)
(Constructor)

source code 

Constructor

Parameters:
  • intensifier - A float. It indicates the degree of intensification
  • so - A float. It indicates the Semantic Orientation
  • subjectivity - A boolean. True if node has subjectivity, False otherwise
  • pos_words - An integer. The number of positive words.
  • neg_words - An integer. The number of negative words.
  • number_intensifiers - An integer. The number of intensifiers.
  • length_text - An integer. The length of the text (in that node)
  • number_words - An integer. The number of words.
Overrides: object.__init__