def _parse_sentence(sentence_line):
  """Parses a single `sentence` string from the FEVER WikipediaDump."""
  columns: List[Text] = sentence_line.split('\t')

  if len(columns) % 2 != 1:
    raise ValueError('Invalid sentence line, expected (\tmention\tentity)*, '
                     'got: %s' % (sentence_line))

  sentence = fever_pb2.WikipediaDump.Sentence()
  sentence.text = columns[0]

  for i in range(1, len(columns), 2):
    sentence.entities.append(
        fever_pb2.WikipediaDump.Entity(
            mention=columns[i], entity=columns[i + 1]))

  return sentence
Parses a single `sentence` string from the FEVER WikipediaDump.
language/serene/wikipedia_processing.py