skillner.word_processing.TypeIdentifier#
- class skillner.word_processing.TypeIdentifier(to_lowercase: bool = True)[source]#
Class to classify a word as
STANDARDorSTOP_WORD.An instance of
TypeIdentifierhas a function-like behavior and hence can be called directly on a word.- Parameters:
- to_lowercase: bool, default=True
If
True, the word is lowercased before checking it is type.
Methods
__init__([to_lowercase])identify_type(word)Identify the type of
wordasSTANDARDorSTOP_WORD.