def METHOD_NAME(cls,
         model_dir=None,
         model_metadata=None,
         cached_component=None,
         **kwargs):
    # type: (Text, Metadata, Optional[SpacyNLP], **Any) -> SpacyNLP
    import spacy
    if cached_component:
        return cached_component
    component_meta = model_metadata.for_component(cls.name)
    model_name = component_meta.get("model")
    nlp = spacy.METHOD_NAME(model_name, parser=False)
    cls.ensure_proper_language_model(nlp)
    return cls(component_meta, nlp)