mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
parent
f8b769e7bf
commit
f7507c2327
|
@ -31,7 +31,7 @@ cdef class Pipe:
|
|||
and returned. This usually happens under the hood when the nlp object
|
||||
is called on a text and all components are applied to the Doc.
|
||||
|
||||
docs (Doc): The Doc to process.
|
||||
doc (Doc): The Doc to process.
|
||||
RETURNS (Doc): The processed Doc.
|
||||
|
||||
DOCS: https://spacy.io/api/pipe#call
|
||||
|
|
|
@ -198,7 +198,7 @@ cdef class Example:
|
|||
|
||||
def get_aligned_sent_starts(self):
|
||||
"""Get list of SENT_START attributes aligned to the predicted tokenization.
|
||||
If the reference has not sentence starts, return a list of None values.
|
||||
If the reference does not have sentence starts, return a list of None values.
|
||||
"""
|
||||
if self.y.has_annotation("SENT_START"):
|
||||
align = self.alignment.y2x
|
||||
|
|
Loading…
Reference in New Issue
Block a user