code: def _raw_sentences(paracrawl_file):
      """Generates Unicode strings, one for each <seg> in a ParaCrawl data file.
  
      Also decodes some of the most common HTML entities found in ParaCrawl data.
  
      Args:
        paracrawl_file: A ParaCrawl V3.0 en-.. data file.
      Yields:
        One Unicode string for each <seg> element in the ParaCrawl data file.
      """
      for line_utf8 in paracrawl_file:
          line_uni = line_utf8.decode("UTF-8")
          text_match = re.match(r" +<seg>(.*)</seg>$", line_uni)
          if text_match:
              txt = text_match.group(1)
              txt = re.sub(r"&amp;", r"&", txt)
              txt = re.sub(r"& ?amp;", r"&", txt)
              txt = re.sub(r"& ?apos;", r"'", txt)
              txt = re.sub(r"& ?quot;", r'"', txt)
              txt = re.sub(r"& ?lt;", r"<", txt)
              txt = re.sub(r"& ?gt;", r">", txt)
              yield txt
  
file_path: tensor2tensor/tensor2tensor/data_generators/cleaner_en_xx.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import itertools
  import re
  from tensor2tensor.data_generators import text_encoder
  import tensorflow.compat.v1
label_desc: Use image node_id 2 for calling a global function with example usage: _raw_sentences(paracrawl_file) without return types