mirror of
https://github.com/explosion/spaCy.git
synced 2024-09-21 19:39:13 +03:00
Update doc.md
This commit is contained in:
parent
44790c1c32
commit
44da24ddd0
|
@ -30,13 +30,12 @@ Construct a `Doc` object. The most common way to get a `Doc` object is via the
|
||||||
> doc = Doc(nlp.vocab, words=words, spaces=spaces)
|
> doc = Doc(nlp.vocab, words=words, spaces=spaces)
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
| Name | Type | Description |
|
| Name | Type | Description |
|
||||||
| -------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ----------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `vocab` | `Vocab` | A storage container for lexical types. |
|
| `vocab` | `Vocab` | A storage container for lexical types. |
|
||||||
| _keyword-only_ | | |
|
| `words` | iterable | A list of strings to add to the container. |
|
||||||
| `words` | iterable | A list of strings to add to the container. |
|
| `spaces` | iterable | A list of boolean values indicating whether each word has a subsequent space. Must have the same length as `words`, if specified. Defaults to a sequence of `True`. |
|
||||||
| `spaces` | iterable | A list of boolean values indicating whether each word has a subsequent space. Must have the same length as `words`, if specified. Defaults to a sequence of `True`. |
|
| **RETURNS** | `Doc` | The newly constructed object. |
|
||||||
| **RETURNS** | `Doc` | The newly constructed object. |
|
|
||||||
|
|
||||||
## Doc.\_\_getitem\_\_ {#getitem tag="method"}
|
## Doc.\_\_getitem\_\_ {#getitem tag="method"}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user