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: Processes the text before it is handled by SpaCy.
docstr_tok: ["Processes","the","text","before","it","is","handled","by","SpaCy","."]
code: def _preprocess_text(self, text: Optional[Text]) -> Text:
      """Processes the text before it is handled by SpaCy."""
      if text is None:
          # converted to empty string so that it can still be passed to spacy.
          # Another option could be to neglect tokenization of the attribute of
          # this example, but since we are processing in batch mode, it would
          # get complex to collect all processed and neglected examples.
          text = ""
      if self._config.get("case_sensitive"):
          return text
      else:
          return text.lower()
  
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 9 for calling the SpacyNLP obj's underlying member method code with example usage: obj._preprocess_text(text) and returns: text, text