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

Class SenticapImage

source code

object --+
         |
        SenticapImage

Stores details about a sentence.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
addSentence(self, sentence) source code
 
getFilename(self) source code
 
getImgID(self) source code
 
getSentences(self) source code
 
getSplit(self) source code
 
setFilename(self, filename) source code
 
setImgID(self, imgid) source code
 
setSplit(self, split) source code

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

Class Variables [hide private]
  TEST_SPLIT = 0
  TRAIN_SPLIT = 1
  VAL_SPLIT = 2
Instance Variables [hide private]
  filename
The filename of the image in the MSCOCO dataset
  imgid
A unique but arbritrary number assigned to each image.
  sentences
A list of sentences corresponding to this image of type `SenticapSentence`.
  split
Indicates if this is part of the TEST, TRAIN or VAL split.
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)