Catalog.from_dataset
Catalog.from_dataset
classmethod
¶
Creates a Catalog from a WordLevel pre-made dataset.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
Dataset
|
A WordLevel dataset |
required |
|
Collection[str] | None
|
The names of the corpora to include from the dataset |
None
|
Returns:
| Type | Description |
|---|---|
Catalog
|
A |
Raises:
| Type | Description |
|---|---|
KeyError
|
If any corpus in |
ValueError
|
If fewer than two |