class documentation
A Review is the main block of a ReviewsCorpusReader.
Method | __init__ |
No summary |
Method | __repr__ |
Undocumented |
Method | add |
Add a line (ReviewLine) to the review. |
Method | features |
Return a list of features in the review. Each feature is a tuple made of the specific item feature and the opinion strength about that feature. |
Method | sents |
Return all tokenized sentences in the review. |
Instance Variable | review |
Undocumented |
Instance Variable | title |
Undocumented |
Parameters | |
title | the title of the review. |
review | the list of the ReviewLines that belong to the Review. |
Add a line (ReviewLine) to the review.
Parameters | |
review | a ReviewLine instance that belongs to the Review. |
Return a list of features in the review. Each feature is a tuple made of the specific item feature and the opinion strength about that feature.
Returns | |
list(tuple) | all features of the review as a list of tuples (feat, score). |