fix typo + CI slow testing (#10835)

* fix typo

* one more typo
This commit is contained in:
Sofie Van Landeghem 2022-06-02 00:10:16 +02:00 committed by GitHub
parent f8b769e7bf
commit f7507c2327
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ cdef class Pipe:
and returned. This usually happens under the hood when the nlp object 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. 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. RETURNS (Doc): The processed Doc.
DOCS: https://spacy.io/api/pipe#call DOCS: https://spacy.io/api/pipe#call

View File

@ -198,7 +198,7 @@ cdef class Example:
def get_aligned_sent_starts(self): def get_aligned_sent_starts(self):
"""Get list of SENT_START attributes aligned to the predicted tokenization. """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"): if self.y.has_annotation("SENT_START"):
align = self.alignment.y2x align = self.alignment.y2x