def METHOD_NAME(cls,
         model_dir=None,  # type: Optional[Text]
         model_metadata=None,  # type: Optional[Metadata]
         cached_component=None,  # type: Optional[MitieIntentClassifier]
         **kwargs  # type: **Any
         ):
    # type: (...) -> MitieIntentClassifier
    import mitie
    meta = model_metadata.for_component(cls.name)
    file_name = meta.get("classifier_file", MITIE_MODEL_FILE_NAME)
    if not file_name:
        return cls(meta)
    classifier_file = os.path.join(model_dir, file_name)
    if os.path.exists(classifier_file):
        classifier = mitie.text_categorizer(classifier_file)
        return cls(meta, classifier)
    else:
        return cls(meta)