textnets.load_textnet

textnets.load_textnet(source: PathLike[Any] | str) Self

Load a textnet from file.

Parameters:

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

Return type:

Textnet

Raises:

FileNotFoundError – If the provided path does not exist.