class_docstr: CLTK's wrapper for the Stanza project.
class_docstr_tok: ["CLTK","'s","wrapper","for","the","Stanza","project","."]
docstr: Interface with the `stanza` model downloader.
docstr_tok: ["Interface","with","the","`","stanza","`","model","downloader","."]
code: def _download_model(self) -> None:
      """Interface with the `stanza` model downloader."""
      if not self.interactive:
          if not self.silent:
              print(
                  f"CLTK message: Going to download required Stanza models to ``{self.model_path}`` ..."
              )  # pragma: no cover
          stanza.download(lang=self.stanza_code, package=self.treebank)
      else:
          print(  # pragma: no cover
              "CLTK message: This part of the CLTK depends upon the Stanza NLP library."
          )  # pragma: no cover
          dl_is_allowed = query_yes_no(
              f"CLTK message: Allow download of Stanza models to ``{self.model_path}``?"
          )  # type: bool
          if dl_is_allowed:
              stanza.download(
                  lang=self.stanza_code, package=self.treebank
              )
          else:
              raise CLTKException(
                  f"Download of necessary Stanza model declined for '{self.language}'. Unable to continue with Stanza's processing."
              )
      # if file model still not available after attempted DL, then raise error
      if not file_exists(self.model_path):
          raise FileNotFoundError(
              "Missing required models for ``stanza`` at ``{0}``.".format(
                  self.model_path
              )
          )
  
file_path: cltk/src/cltk/dependency/stanza_wrapper.py
imports: import logging
  import os
  from typing import Dict, Optional
  import stanza
  from stanza.models.common.constant import lang2lcode
  from stanza.resources.prepare_resources import default_treebanks
  from cltk.core.exceptions import CLTKException, UnimplementedAlgorithmError, UnknownLanguageError
  from cltk.utils import file_exists, query_yes_no, suppress_stdout
label_desc: Use image node_id 5 for calling the StanzaWrapper obj's underlying member method code with example usage: obj._download_model() without return types