mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Auto-format [ci skip]
This commit is contained in:
parent
f1d77eb140
commit
1d4ba7678f
|
@ -14,16 +14,16 @@ examples of a label to have the value `1.0`, and negative examples of a label to
|
|||
have the value `0.0`. Labels not in the dictionary are treated as missing – the
|
||||
gradient for those labels will be zero.
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `doc` | `Doc` | The document the annotations refer to. |
|
||||
| `words` | iterable | A sequence of unicode word strings. |
|
||||
| `tags` | iterable | A sequence of strings, representing tag annotations. |
|
||||
| `heads` | iterable | A sequence of integers, representing syntactic head offsets. |
|
||||
| `deps` | iterable | A sequence of strings, representing the syntactic relation types. |
|
||||
| Name | Type | Description |
|
||||
| ----------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `doc` | `Doc` | The document the annotations refer to. |
|
||||
| `words` | iterable | A sequence of unicode word strings. |
|
||||
| `tags` | iterable | A sequence of strings, representing tag annotations. |
|
||||
| `heads` | iterable | A sequence of integers, representing syntactic head offsets. |
|
||||
| `deps` | iterable | A sequence of strings, representing the syntactic relation types. |
|
||||
| `entities` | iterable | A sequence of named entity annotations, either as BILUO tag strings, or as `(start_char, end_char, label)` tuples, representing the entity positions. If BILUO tag strings, you can specify missing values by setting the tag to None. |
|
||||
| `cats` | dict | Labels for text classification. Each key in the dictionary may be a string or an int, or a `(start_char, end_char, label)` tuple, indicating that the label is applied to only part of the document (usually a sentence). |
|
||||
| **RETURNS** | `GoldParse` | The newly constructed object. |
|
||||
| `cats` | dict | Labels for text classification. Each key in the dictionary may be a string or an int, or a `(start_char, end_char, label)` tuple, indicating that the label is applied to only part of the document (usually a sentence). |
|
||||
| **RETURNS** | `GoldParse` | The newly constructed object. |
|
||||
|
||||
## GoldParse.\_\_len\_\_ {#len tag="method"}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user