def __call__(self, nlp: "Language") -> Iterator[Example]:
        """Yield examples from the data.

        nlp (Language): The current nlp object.
        YIELDS (Example): The example objects.

        DOCS: https://spacy.io/api/corpus#plaintextcorpus-call
        """
        for loc in walk_corpus(self.path, ".txt"):
            with open(loc, encoding="utf-8") as f:
                for text in f:
                    text = text.rstrip("\r\n")
                    if len(text):
                        doc = nlp.make_doc(text)
                        if self.min_length >= 1 and len(doc) < self.min_length:
                            continue
                        elif self.max_length >= 1 and len(doc) > self.max_length:
                            continue
                        # We don't *need* an example here, but it seems nice to
                        # make it match the Corpus signature.
                        yield Example(doc, doc.copy())
Yield examples from the data.

        nlp (Language): The current nlp object.
        YIELDS (Example): The example objects.

        DOCS: https://spacy.io/api/corpus#plaintextcorpus-call
        
spacy/training/corpus.py