Skip to main content

Document Class

Document inherits from TextChunk.

Document stores the information for a document (for example an online review for a product or a news article). The class is iterable and will yield instances of Sentence.

Attributes / Properties

NameTypeDescription
sentenceslist of Sentence instancesList of Sentences of the document.
subsentenceslist of Subsentence instancesDirect access to list of Subsentence for the document.
idstrId of document, by default sequential integer if not provided.
common propertiesdepends on propertyProperties allowing access to specific data (pos, token etc.).