skillner.word_processing.TypeIdentifier#
- class skillner.word_processing.TypeIdentifier(to_lowercase: bool = True)[source]#
Class to classify a word as
STANDARD
orSTOP_WORD
.An instance of
TypeIdentifier
has 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
word
asSTANDARD
orSTOP_WORD
.