def _parse_sentences(
    lines_text):
  """Parses the `lines` values from the FEVER Wikipedia dump."""
  sentences: Dict[int, fever_pb2.WikipediaDump.Sentence] = {}

  if not lines_text:
    return sentences

  # Prepend "\n" so we do not need to special case the first line by having
  # it also match the split pattern.
  lines: List[Text] = _LINE_SPLIT_REGEX.split('\n' + lines_text)
  # Drop the initial empty string.
  lines = lines[1:]

  for sentence_number, sentence_line in enumerate(lines):
    sentence = _parse_sentence(sentence_line)
    if sentence.text:
      sentences[sentence_number] = sentence

  return sentences
Parses the `lines` values from the FEVER Wikipedia dump.
language/serene/wikipedia_processing.py