diff --git a/spacy/training/corpus.py b/spacy/training/corpus.py index aab2eae94..cf643feec 100644 --- a/spacy/training/corpus.py +++ b/spacy/training/corpus.py @@ -221,7 +221,7 @@ class JsonlCorpus: def __init__( self, - path: Union[str, Path], + path: Optional[Union[str, Path]], *, limit: int = 0, min_length: int = 0,