Skip to content

Construct

Method Description
Catalog.from_catalog Creates a new catalog from an existing one.
Catalog.from_dataframe Creates a Catalog of corpora from any dataframe supported by Narwhals.
Catalog.from_dataset Creates a Catalog from a WordLevel pre-made dataset.
Catalog.from_dict_of_freqs Creates a Catalog of corpora from named token-to-frequency mappings.
Catalog.from_list_of_freqs Creates a Catalog of corpora from a sequence of token-to-frequency mappings, each representing the frequencies of tokens in a particular corpus.
Catalog.from_polars Creates a Catalog of corpora from a Polars dataframe.