class_docstr: Component which provides the common loaded SpaCy model to others.
  
  This is used to avoid loading the SpaCy model multiple times. Instead the Spacy
  model is only loaded once and then shared by depending components.
class_docstr_tok: ["Component","which","provides","the","common","loaded","SpaCy","model","to","others",".","This","is","used","to","avoid","loading","the","SpaCy","model","multiple","times",".","Instead","the","Spacy","model","is","only","loaded","once","and","then","shared","by","depending","components","."]
docstr: Makes a SpaCy doc object from a string of text.
docstr_tok: ["Makes","a","SpaCy","doc","object","from","a","string","of","text","."]
code: def _doc_for_text(self, model: Language, text: Text) -> Doc:
      """Makes a SpaCy doc object from a string of text."""
      return model(self._preprocess_text(text))
  
imports: from __future__ import annotations
  import dataclasses
  import typing
  import logging
  from typing import Any, Dict, List, Optional, Text, Tuple
  from rasa.engine.graph import ExecutionContext, GraphComponent
  from rasa.engine.recipes.default_recipe import DefaultV1Recipe
  from rasa.engine.storage.resource import Resource
  from rasa.engine.storage.storage import ModelStorage
  from rasa.nlu.constants import DENSE_FEATURIZABLE_ATTRIBUTES, SPACY_DOCS
  from rasa.shared.nlu.training_data.message import Message
  from rasa.shared.nlu.training_data.training_data import TrainingData
  from rasa.nlu.model import InvalidModelError
  from rasa.shared.constants import DOCS_URL_COMPONENTS
label_desc: Use image node_id 8 for calling the SpacyNLP obj's underlying member method code with example usage: obj._doc_for_text(model, text) and returns: model