def parse_discofuse_line(line):
  """Parses a DiscoFuse example from a line from a TSV file.

  The documentation for this format:
  https://github.com/google-research-datasets/discofuse#data-format

  Args:
    line: A line from a TSV file.

  Returns:
    A pair (<source texts list>, <target text>).
  """
  coherent_1, coherent_2, incoherent_1, incoherent_2, _, _, _, _ = (
      line.rstrip("\n").split("\t"))
  # Strip because the second coherent sentence might be empty.
  fusion = (coherent_1 + " " + coherent_2).strip()
  return [incoherent_1, incoherent_2], fusion