mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
Update docstring for Doc.__getitem__
This commit is contained in:
parent
5b68579eb8
commit
8455cb1327
|
@ -150,6 +150,10 @@ cdef class Doc:
|
|||
def __getitem__(self, object i):
|
||||
"""Get a `Token` or `Span` object.
|
||||
|
||||
i (int or tuple) The index of the token, or the slice of the document to get.
|
||||
RETURNS (Token or Span): The token at `doc[i]]`, or the span at
|
||||
`doc[start : end]`.
|
||||
|
||||
EXAMPLE:
|
||||
>>> doc[i]
|
||||
Get the `Token` object at position `i`, where `i` is an integer.
|
||||
|
|
Loading…
Reference in New Issue
Block a user