pibrary.string
Classes
This class is used to preprocess a text. |
Module Contents
- class pibrary.string.String(seq)[source]
Bases:
collections.UserStringThis class is used to preprocess a text.
- property str: str[source]
Property to get the string of the text.
- Returns:
String of the text.
- Return type:
str
- remove_punctuation_except_period() collections.UserString[source]
Remove punctuation except period from a text.
- Returns:
Text without punctuation except period.
- Return type:
UserString
- remove_punctuation() collections.UserString[source]
Remove punctuation from a text.
- Returns:
Text without punctuation.
- Return type:
UserString