class_docstr: Simple implementation of MLM task
  - Reads from a single file per phase
  - One example per line (examples that are too long will be truncated)
  - Empty lines are skipped.
class_docstr_tok: ["Simple","implementation","of","MLM","task","-","Reads","from","a","single","file","per","phase","-","One","example","per","line","(","examples","that","are","too","long","will","be","truncated",")","-","Empty","lines","are","skipped","."]
code: def _get_examples_generator(cls, path, set_type):
      with open(path, "r") as f:
          for i, line in enumerate(f):
              line = line.strip()
              if not line:
                  continue
              yield Example(
                  guid="%s-%s" % (set_type, i),
                  text=line,
              )
  
imports: from dataclasses import dataclass
  from jiant.utils.python.datastructures import ReusableGenerator
  from jiant.tasks.lib.templates import mlm
label_desc: Use image node_id 5 for calling the MLMSimpleTask obj's underlying member method code with example usage: obj._get_examples_generator(cls, path, set_type) without return types