Update docstrings

This commit is contained in:
ines 2017-10-07 01:04:50 +02:00
parent 61a503a611
commit e43530269c

View File

@ -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: {}"