1 '''
2 @author: David Vilares
3 '''
4
6
7
8 '''
9 SentimentInfo stores relevant information about a branch of a L{SentimentDependencyGraph}
10 '''
11
12
13 - def __init__(self,intensifier,so, subjectivity,pos_words,neg_words,
14 number_intensifiers, length_text, number_words):
15 '''
16 Constructor
17 @param intensifier: A float. It indicates the degree of intensification
18 @param so: A float. It indicates the Semantic Orientation
19 @param subjectivity: A boolean. True if node has subjectivity, False otherwise
20 @param pos_words: An integer. The number of positive words.
21 @param neg_words: An integer. The number of negative words.
22 @param number_intensifiers: An integer. The number of intensifiers.
23 @param length_text: An integer. The length of the text (in that node)
24 @param number_words: An integer. The number of words.
25 '''
26 self._intensifier = intensifier
27 self._so = so
28 self._subjectivity = subjectivity
29 self._pos_words = pos_words
30 self._neg_words = neg_words
31 self._number_intensifiers = number_intensifiers
32 self._length_text = length_text
33 self._number_words = number_words
34
35
36
38 return self._intensifier
39
42
44 return self._subjectivity
45
47 self._pos_words = pos_words
48
50 return self._pos_words
51
53 self._neg_words = neg_words
54
56 return self._neg_words
57
59 return self._number_intensifiers
60
62 return self._length_text
63
65 return self._number_words
66