From 506508ac1c430f181ce5921f637e7b76f9881ff3 Mon Sep 17 00:00:00 2001 From: kadarakos Date: Wed, 23 Nov 2022 10:00:14 +0100 Subject: [PATCH] Update spacy/cli/apply.py Co-authored-by: Sofie Van Landeghem --- spacy/cli/apply.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/cli/apply.py b/spacy/cli/apply.py index 918b47252..442b53c32 100644 --- a/spacy/cli/apply.py +++ b/spacy/cli/apply.py @@ -44,7 +44,7 @@ def _stream_docbin(path: Path, vocab: Vocab) -> Iterable[Doc]: yield doc -def _stream_jsonl(path: Path, field) -> Iterable[str]: +def _stream_jsonl(path: Path, field: str) -> Iterable[str]: """ Stream "text" field from JSONL. If the field "text" is not found it raises error.