Home | Trees | Indices | Help |
---|
|
object --+ | SenticapReader
Handles the reading of the senticap dataset. Has functions to write examples to a simple csv format, and to count the number of examples.
|
|||
|
|||
`tuple(int, int)` |
|
||
|
|||
|
|||
Inherited from |
|
|||
images =
|
|
|||
Inherited from |
|
Initializer that reads a senticap json file
|
Count the number of examples matching the filter criteria
|
Read a senticap json file and load it into `SenticapImage` and `SenticapSentence` classes. The result is saved in `self.images`.
|
Write a CSV file from the examples matching the filter criteria. The columns of the csv are (filename, is_positive_sentiment, caption). where:
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Feb 2 10:17:36 2016 | http://epydoc.sourceforge.net |