Module senticap_reader :: Class SenticapSentence
[hide private]
[frames] | no frames]

Class SenticapSentence

source code

object --+
         |
        SenticapSentence

Stores details about a sentence.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
getRawsentence(self) source code
 
getSentimentPolarity(self) source code
 
getTokens(self) source code
 
getWordSentiment(self) source code
 
setRawSentence(self, raw_sentence) source code
 
setSentimentPolarity(self, sentiment_polarity) source code
 
setTokens(self, tokens) source code
 
setWordSentiment(self, word_sentiment) source code

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

Class Variables [hide private]
  NEGATIVE_SENTIMENT = 0
  POSITIVE_SENTIMENT = 1
Instance Variables [hide private]
  raw_sentence
The caption without any processing; taken directly from MTURK.
  sentiment_polarity
Does this sentence express positive or negative sentiment.
  tokens
A tokenized version of the sentence with punctuation removed and words made lower case.
  word_sentiment
Indicates which words are part of an Adjective Noun Pair with sentiment; 1 iff the word is part of an ANP with sentiment.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)