mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Make user_data keyword-only
This commit is contained in:
parent
ce455f30ca
commit
6aa91c7ca0
|
@ -163,8 +163,8 @@ cdef class Doc:
|
|||
Vocab vocab,
|
||||
words=None,
|
||||
spaces=None,
|
||||
user_data=None,
|
||||
*,
|
||||
user_data=None,
|
||||
tags=None,
|
||||
pos=None,
|
||||
morphs=None,
|
||||
|
|
|
@ -35,8 +35,8 @@ Construct a `Doc` object. The most common way to get a `Doc` object is via the
|
|||
| `vocab` | A storage container for lexical types. ~~Vocab~~ |
|
||||
| `words` | A list of strings to add to the container. ~~Optional[List[str]]~~ |
|
||||
| `spaces` | 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`. ~~Optional[List[bool]]~~ |
|
||||
| `user_data` | Optional extra data to attach to the Doc. ~~Dict~~ |
|
||||
| _keyword-only_ | |
|
||||
| `user\_data` | Optional extra data to attach to the Doc. ~~Dict~~ |
|
||||
| tags | A list of strings, of the same length as words, to assign as `token.tag` for each word. Defaults to `None`. ~~Optional[List[str]]~~ |
|
||||
| pos | A list of strings, of the same length as words, to assign as `token.pos` for each word. Defaults to `None`. ~~Optional[List[str]]~~ |
|
||||
| morphs | A list of strings, of the same length as words, to assign as `token.morph` for each word. Defaults to `None`. ~~Optional[List[str]]~~ |
|
||||
|
|
Loading…
Reference in New Issue
Block a user