class_docstr: Iterate Example objects from a file or directory of plain text
  UTF-8 files with one line per doc.
  
  path (Path): The directory or filename to read from.
  min_length (int): Minimum document length (in tokens). Shorter documents
      will be skipped. Defaults to 0, which indicates no limit.
  max_length (int): Maximum document length (in tokens). Longer documents will
      be skipped. Defaults to 0, which indicates no limit.
  
  DOCS: https://spacy.io/api/corpus#plaintextcorpus
docstr: Yield examples from the data.
  
  nlp (Language): The current nlp object.
  YIELDS (Example): The example objects.
  
  DOCS: https://spacy.io/api/corpus#plaintextcorpus-call
docstr_tok: ["Yield","examples","from","the","data",".","nlp","(","Language",")",":","The","current","nlp","object",".","YIELDS","(","Example",")",":","The","example","objects",".","DOCS",":","https",":","\/\/spacy.io\/api\/corpus","#","plaintextcorpus-call"]
code: 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())
  
imports: import random
  import warnings
  from pathlib import Path
  from typing import TYPE_CHECKING, Callable, Iterable, Iterator, List, Optional, Union
  import srsly
  from ..None import util
  from ..errors import Errors, Warnings
  from ..tokens import Doc, DocBin
  from ..vocab import Vocab
  from .augment import dont_augment
  from .example import Example
label_desc: Use image node_id 2 for calling the PlainTextCorpus obj's underlying member method code with example usage: obj.__call__(nlp) without return types