modifiers.doc_modifier
#
Module Contents#
Classes#
Helper class that provides a standard way to create an ABC using inheritance. |
API#
- class modifiers.doc_modifier.DocumentModifier#
Bases:
abc.ABC
Helper class that provides a standard way to create an ABC using inheritance.
Initialization
- property backend: Literal[pandas, cudf, any]#
The dataframe backend the modifier operates on. Can be ‘pandas’, ‘cudf’, or ‘any’. Defaults to ‘pandas’. Returns: str: A string representing the dataframe backend the modifier needs as input
- abstractmethod modify_document(text: str) str #