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.