Make user_data keyword-only

This commit is contained in:
Adriane Boyd 2020-09-21 16:00:06 +02:00
parent ce455f30ca
commit 6aa91c7ca0
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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]]~~ |