mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Update docstrings
This commit is contained in:
parent
61a503a611
commit
e43530269c
|
@ -195,6 +195,7 @@ class Language(object):
|
||||||
"""Create a pipeline component from a factory.
|
"""Create a pipeline component from a factory.
|
||||||
|
|
||||||
name (unicode): Factory name to look up in `Language.factories`.
|
name (unicode): Factory name to look up in `Language.factories`.
|
||||||
|
config (dict): Configuration parameters to initialise component.
|
||||||
RETURNS (callable): Pipeline component.
|
RETURNS (callable): Pipeline component.
|
||||||
"""
|
"""
|
||||||
if name not in self.factories:
|
if name not in self.factories:
|
||||||
|
@ -274,7 +275,7 @@ class Language(object):
|
||||||
"""Remove a component from the pipeline.
|
"""Remove a component from the pipeline.
|
||||||
|
|
||||||
name (unicode): Name of the component to remove.
|
name (unicode): Name of the component to remove.
|
||||||
RETURNS (tuple): A (name, component) tuple of the removed component.
|
RETURNS (tuple): A `(name, component)` tuple of the removed component.
|
||||||
"""
|
"""
|
||||||
if name not in self.pipe_names:
|
if name not in self.pipe_names:
|
||||||
msg = "Can't find '{}' in pipeline. Available names: {}"
|
msg = "Can't find '{}' in pipeline. Available names: {}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user