def METHOD_NAME(cls, cfg):
    # type: (RasaNLUModelConfig) -> SpacyNLP
    import spacy
    component_conf = cfg.for_component(cls.name, cls.defaults)
    spacy_model_name = component_conf.get("model")
    # if no model is specified, we fall back to the language string
    if not spacy_model_name:
        spacy_model_name = cfg.language
        component_conf["model"] = cfg.language
    logger.info("Trying to load spacy model with "
                "name '{}'".format(spacy_model_name))
    nlp = spacy.load(spacy_model_name, parser=False)
    cls.ensure_proper_language_model(nlp)
    return SpacyNLP(component_conf, nlp)