(
        cls,
        lang: types.LangLike,
        filepath: types.PathLike,
    )
return cls(spacy_lang, data=docs)
Load previously saved :class:`Corpus` binary data, reproduce the original
        `:class:`spacy.tokens.Doc`s tokens and annotations, and instantiate
        a new :class:`Corpus` from them.

        Args:
            lang
            filepath: Full path to file on disk where :class:`Corpus` data
                was previously saved as a binary file.

        Returns:
            Initialized corpus.

        See Also:
            - :meth:`Corpus.save()`
            - :func:`textacy.io.read_spacy_docs()`
            - :class:`spacy.tokens.DocBin`
Load previously saved :class:`Corpus` binary data, reproduce the original
        `:class:`spacy.tokens.Doc`s tokens and annotations, and instantiate
        a new :class:`Corpus` from them.
Load previously saved : class : Corpus binary data reproduce the original : class : spacy . tokens . Doc s tokens and annotations and instantiate a new : class : Corpus from them .
def load(
        cls,
        lang: types.LangLike,
        filepath: types.PathLike,
    ) -> "Corpus":
        """
        Load previously saved :class:`Corpus` binary data, reproduce the original
        `:class:`spacy.tokens.Doc`s tokens and annotations, and instantiate
        a new :class:`Corpus` from them.

        Args:
            lang
            filepath: Full path to file on disk where :class:`Corpus` data
                was previously saved as a binary file.

        Returns:
            Initialized corpus.

        See Also:
            - :meth:`Corpus.save()`
            - :func:`textacy.io.read_spacy_docs()`
            - :class:`spacy.tokens.DocBin`
        """
        spacy_lang = spacier.utils.resolve_langlike(lang)
        docs = tio.read_spacy_docs(filepath, format="binary", lang=spacy_lang)
        return cls(spacy_lang, data=docs)
def load ( cls , lang : types . LangLike , filepath : types . PathLike , ) -> "Corpus" : spacy_lang = spacier . utils . resolve_langlike ( lang ) docs = tio . read_spacy_docs ( filepath , format = "binary" , lang = spacy_lang ) return cls ( spacy_lang , data = docs )