mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +03:00
Clarify Span.ents documentation (#10154)
* Clarify Span.ents documentation Ref: #10135 Retain current behaviour. Span.ents will only include entities within said span. You can't get tokens outside of the original span. * Reword docstrings Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com> * Update API docs in the website Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>
This commit is contained in:
parent
f09c799a96
commit
345e7f6bc4
|
@ -471,8 +471,8 @@ cdef class Span:
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def ents(self):
|
def ents(self):
|
||||||
"""The named entities in the span. Returns a tuple of named entity
|
"""The named entities that fall completely within the span. Returns
|
||||||
`Span` objects, if the entity recognizer has been applied.
|
a tuple of `Span` objects.
|
||||||
|
|
||||||
RETURNS (tuple): Entities in the span, one `Span` per entity.
|
RETURNS (tuple): Entities in the span, one `Span` per entity.
|
||||||
|
|
||||||
|
|
|
@ -257,8 +257,8 @@ shape `(N, M)`, where `N` is the length of the document. The values will be
|
||||||
|
|
||||||
## Span.ents {#ents tag="property" new="2.0.13" model="ner"}
|
## Span.ents {#ents tag="property" new="2.0.13" model="ner"}
|
||||||
|
|
||||||
The named entities in the span. Returns a tuple of named entity `Span` objects,
|
The named entities that fall completely within the span. Returns a tuple of
|
||||||
if the entity recognizer has been applied.
|
`Span` objects.
|
||||||
|
|
||||||
> #### Example
|
> #### Example
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user