class_docstr: `SpacyWrapper` has been made to be an interface
  between spaCy and CLTK.
class_docstr_tok: ["`","SpacyWrapper","`","has","been","made","to","be","an","interface","between","spaCy","and","CLTK","."]
docstr: >>> from cltk.languages.example_texts import get_example_text
  >>> spacy_wrapper: SpacyWrapper = SpacyWrapper(language="lat")
  >>> latin_spacy_doc: SpacyDoc = spacy_wrapper.parse(get_example_text("lat"))
  
  :param text: Text to analyze.
  :return:
docstr_tok: [">",">",">","from","cltk.languages.example_texts","import","get_example_text",">",">",">","spacy_wrapper",":","SpacyWrapper","=","SpacyWrapper","(","language=","''","lat","''",")",">",">",">","latin_spacy_doc",":","SpacyDoc","=","spacy_wrapper.parse","(","get_example_text","(","``","lat","''",")",")",":","param","text",":","Text","to","analyze",".",":","return",":"]
code: def parse(self, text: str) -> SpacyDoc:
      """
      >>> from cltk.languages.example_texts import get_example_text
      >>> spacy_wrapper: SpacyWrapper = SpacyWrapper(language="lat")
      >>> latin_spacy_doc: SpacyDoc = spacy_wrapper.parse(get_example_text("lat"))
  
      :param text: Text to analyze.
      :return:
      """
      if isinstance(self.nlp, SpacyLanguage):
          # Note: spacy's `nlp` object is called directly, not with eg `nlp.process()`
          return self.nlp(text)
      raise CLTKException(
          "No spaCy model has been loaded. Is the language supported? "
          "Otherwise try to provide a spaCy model with `nlp` argument."
      )
  
file_path: cltk/src/cltk/dependency/spacy_wrapper.py
imports: import logging
  import subprocess
  from typing import Any, Optional
  import spacy
  from spacy import Language
  from spacy.tokens import Doc
  from cltk.core.exceptions import CLTKException, UnknownLanguageError
  from cltk.utils.utils import query_yes_no
label_desc: Use image node_id 2 for calling the SpacyWrapper obj's underlying member method code with example usage: obj.parse(text) and returns: self