textnets.load_corpus

textnets.load_corpus(source: PathLike[Any] | str) Corpus

Load a corpus from file.

Parameters:

source (str or path) – File to read the corpus from. This should be a file created by Corpus.save.

Raises:

FileNotFoundError – If the specified path does not exist.

Return type:

Corpus