mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 17:24:41 +03:00
Update GoldParse attributes in API docs (#4023)
* add `words` * update name of entity list to `ner` I think it might be a bit more consistent to have `ner` named `entities` or `ents` (and `ents` is actually set somewhere to `None`, which is a bit confusing), but it looks like renaming it would be a non-trivial decision.
This commit is contained in:
parent
73e095923f
commit
784a5f4284
|
@ -45,10 +45,11 @@ Whether the provided syntactic annotations form a projective dependency tree.
|
|||
|
||||
| Name | Type | Description |
|
||||
| --------------------------------- | ---- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `words` | list | The words. |
|
||||
| `tags` | list | The part-of-speech tag annotations. |
|
||||
| `heads` | list | The syntactic head annotations. |
|
||||
| `labels` | list | The syntactic relation-type annotations. |
|
||||
| `ents` | list | The named entity annotations. |
|
||||
| `ner` | list | The named entity annotations as BILUO tags. |
|
||||
| `cand_to_gold` | list | The alignment from candidate tokenization to gold tokenization. |
|
||||
| `gold_to_cand` | list | The alignment from gold tokenization to candidate tokenization. |
|
||||
| `cats` <Tag variant="new">2</Tag> | list | Entries in the list should be either a label, or a `(start, end, label)` triple. The tuple form is used for categories applied to spans of the document. |
|
||||
|
|
Loading…
Reference in New Issue
Block a user