mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 09:14:32 +03:00
Update Language docs [ci skip]
This commit is contained in:
parent
cb41a33d14
commit
625ce2db8e
|
@ -257,7 +257,8 @@ class Language(object):
|
|||
|
||||
@property
|
||||
def pipe_labels(self):
|
||||
"""Get the labels set by the pipeline components, if available.
|
||||
"""Get the labels set by the pipeline components, if available (if
|
||||
the component exposes a labels property).
|
||||
|
||||
RETURNS (dict): Labels keyed by component name.
|
||||
"""
|
||||
|
|
|
@ -447,9 +447,10 @@ per component.
|
|||
| --------------------------------------- | ------------------ | ----------------------------------------------------------------------------------------------- |
|
||||
| `vocab` | `Vocab` | A container for the lexical types. |
|
||||
| `tokenizer` | `Tokenizer` | The tokenizer. |
|
||||
| `make_doc` | `lambda text: Doc` | Create a `Doc` object from unicode text. |
|
||||
| `make_doc` | `callable` | Callable that takes a unicode text and returns a `Doc`. |
|
||||
| `pipeline` | list | List of `(name, component)` tuples describing the current processing pipeline, in order. |
|
||||
| `pipe_names` <Tag variant="new">2</Tag> | list | List of pipeline component names, in order. |
|
||||
| `pipe_labels` <Tag variant="new">2.2</Tag> | dict | List of labels set by the pipeline components, if available, keyed by component name. |
|
||||
| `meta` | dict | Custom meta data for the Language class. If a model is loaded, contains meta data of the model. |
|
||||
| `path` <Tag variant="new">2</Tag> | `Path` | Path to the model data directory, if a model is loaded. Otherwise `None`. |
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user