class documentation
Stores a token of text with annotations produced during sentence boundary detection.
Method | __init__ |
Undocumented |
Method | __repr__ |
A string representation of the token that can reproduce it with eval(), which lists all the token's non-default annotations. |
Method | __str__ |
A string representation akin to that used by Kiss and Strunk. |
Class Variable | __slots__ |
Undocumented |
Instance Variable | period |
Undocumented |
Instance Variable | tok |
Undocumented |
Instance Variable | type |
Undocumented |
Property | first |
Undocumented |
Property | first |
True if the token's first character is lowercase. |
Property | first |
True if the token's first character is uppercase. |
Property | is |
True if the token text is all alphabetic. |
Property | is |
True if the token text is that of an ellipsis. |
Property | is |
True if the token text is that of an initial. |
Property | is |
True if the token is either a number or is alphabetic. |
Property | is |
True if the token text is that of a number. |
Property | type |
The type with its final period removed if it has one. |
Property | type |
The type with its final period removed if it is marked as a sentence break. |
Method | _get |
Returns a case-normalized representation of the token. |
Constant | _RE |
Undocumented |
Constant | _RE |
Undocumented |
Constant | _RE |
Undocumented |
Constant | _RE |
Undocumented |
Class Variable | _properties |
Undocumented |