def METHOD_NAME(self, message, **kwargs):
    # type: (Message, **Any) -> None
    mitie_feature_extractor = kwargs.get("mitie_feature_extractor")
    if not mitie_feature_extractor:
        raise Exception("Failed to train 'intent_featurizer_mitie'. "
                        "Missing a proper MITIE feature extractor.")
    if self.clf:
        token_strs = self._tokens_of_message(message)
        intent, confidence = self.clf(token_strs, mitie_feature_extractor)
    else:
        # either the model didn't get trained or it wasn't
        # provided with any data
        intent = None
        confidence = 0.0
    message.set("intent", {"name": intent, "confidence": confidence},
                add_to_output=True)