(self, force: bool = False)
Download version-specific model data as a binary file and save it to disk
        at :attr:`LangIdentifier.model_fpath`.

        Args:
            force: If True, download the model data, even if it already exists on disk
                under :attr:`self.data_dir`; otherwise, don't.
Download version-specific model data as a binary file and save it to disk
        at :attr:`LangIdentifier.model_fpath`.
Download version - specific model data as a binary file and save it to disk at : attr : LangIdentifier . model_fpath .
def download(self, force: bool = False):
        """
        Download version-specific model data as a binary file and save it to disk
        at :attr:`LangIdentifier.model_fpath`.

        Args:
            force: If True, download the model data, even if it already exists on disk
                under :attr:`self.data_dir`; otherwise, don't.
        """
        # hide this import, since we'll only ever need it _once_ (per model version)
        from .. import io as tio

        model_fname = self.model_fpath.name
        url = urllib.parse.urljoin(
            "https://github.com/bdewilde/textacy-data/releases/download/",
            self.model_id + "/" + model_fname,
        )
        tio.utils.download_file(
            url, filename=model_fname, dirpath=self.data_dir, force=force,
        )
def download ( self , force : bool = False ) : # hide this import, since we'll only ever need it _once_ (per model version) from . . import io as tio model_fname = self . model_fpath . name url = urllib . parse . urljoin ( "https://github.com/bdewilde/textacy-data/releases/download/" , self . model_id + "/" + model_fname , ) tio . utils . download_file ( url , filename = model_fname , dirpath = self . data_dir , force = force , )