Catalog.from_dict_of_freqs
Catalog.from_dict_of_freqs
classmethod
¶
Creates a Catalog of corpora from named token-to-frequency mappings.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
DictOfFreqs
|
A mapping of corpus names to token-to-frequency mappings, one per corpus. Each
mapping is |
required |
Returns:
| Type | Description |
|---|---|
Catalog
|
A |
Raises:
| Type | Description |
|---|---|
ValueError
|
If fewer than two corpora are provided in |
ValueError
|
If any corpus in |