class_docstr: FLoRes machine translation dataset.
class_docstr_tok: ["FLoRes","machine","translation","dataset","."]
docstr: This function returns the examples in the raw (text) form.
docstr_tok: ["This","function","returns","the","examples","in","the","raw","(","text",")","form","."]
code: def _generate_examples(self, source_file, target_file):
      """This function returns the examples in the raw (text) form."""
      with epath.Path(source_file).open() as f:
          source_sentences = f.read().split("\n")
      with epath.Path(target_file).open() as f:
          target_sentences = f.read().split("\n")
  
      assert len(target_sentences) == len(
          source_sentences
      ), "Sizes do not match: %d vs %d for %s vs %s." % (
          len(source_sentences),
          len(target_sentences),
          source_file,
          target_file,
      )
  
      source, target = self.builder_config.language_pair
      for idx, (l1, l2) in enumerate(
          zip(source_sentences, target_sentences)
      ):
          result = {source: l1, target: l2}
          # Make sure that both translations are non-empty.
          if all(result.values()):
              yield idx, result
  
file_path: datasets/tensorflow_datasets/translate/flores.py
imports: import collections
  from etils import epath
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling the Flores obj's underlying member method code with example usage: obj._generate_examples(source_file, target_file) without return types