langtest.utils.gender_classifier.GenderClassifier#
- class GenderClassifier#
Bases:
object
Helper model to predict the ‘gender’ of a piece of text.
- __init__()#
Methods
__init__
()predict
(text)- param text:
piece of text to run through the gender classifier
Attributes
LABELS
PRETRAINED_MODEL
- predict(text: str) str #
- Parameters:
text (str) – piece of text to run through the gender classifier
- Returns:
predicted label
- Return type:
str