huspacy
download #
Downloads a HuSpaCy model.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
model_name
|
str
|
model name, if not provided it defaults to |
__DEFAULT_MODEL
|
model_version
|
str
|
model version, if not provided it defaults to the latest version |
None
|
Returns:
Type | Description |
---|---|
None
|
None |
get_valid_models #
Returns valid model names and versions for the given spacy version
Parameters:
Name | Type | Description | Default |
---|---|---|---|
spacy_version
|
Optional[str]
|
spaCy version to compare with |
None
|
Returns:
Type | Description |
---|---|
Dict[str, List[str]]
|
Dict[str, List[str]]: Valid model names and associated versions |
load #
Loads a HuSpaCy model.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
model name, if not provided it defaults to |
__DEFAULT_MODEL
|
vocab
|
Vocab
|
A Vocab object. If True, a vocab is created. |
True
|
disable
|
Iterable[str]
|
Names of pipeline components to disable. Disabled pipes will be loaded, but they won't be run unless you explicitly enable them by calling nlp.enable_pipe. |
None
|
exclude
|
Iterable[str]
|
Names of pipeline components to exclude. Excluded components won't be loaded. |
None
|
config
|
Union[Dict[str, Any], Config]
|
Config overrides as nested dict or dict |
None
|
Returns:
Name | Type | Description |
---|---|---|
Language |
Language
|
The loaded nlp object |