def frames(self, filter_english=True):
    """Iterate over all frames, or maybe just english-language ones."""

    for n, f in enumerate(self.kb):
      is_english = 'lang' in f and f['lang'].id == '/lang/en'
      if filter_english is None or is_english == filter_english:
        yield f
      if n > 0 and not n % 500000:
        logging.info('processed %d frames', n)
        if FLAGS.quick_test:
          logging.info('stopping since this is a quick_test')
          return
Iterate over all frames, or maybe just english-language ones.
language/templama/sling2facts.py