Catalog.from_list_of_freqs
Catalog.from_list_of_freqs
classmethod
¶
Creates a Catalog of corpora from a sequence of token-to-frequency mappings, each
representing the frequencies of tokens in a particular corpus.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
ListOfFreqs
|
A sequence of token-to-frequency mappings, one per corpus. Each mapping is
|
required |
|
Sequence[str] | None
|
The names of the corpora, listed in the same order as |
None
|
Returns:
| Type | Description |
|---|---|
Catalog
|
A |
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
ValueError
|
If fewer than two corpora are provided in |
ValueError
|
If any corpus in |