def LoadEntityMapping(filename):

  mapping = []

  with open(filename) as f:
    line = f.readline().strip()

    for entity_mapping in line.split(';'):
      if not entity_mapping:
        continue

      entity_index, start, end = entity_mapping.split(',')

      mapping.append((int(entity_index), int(start), int(end)))

    mapping.sort(key=lambda x: x[2])  # Sort by start.

  return mapping
Override in a subclass to cause the reactor to monitor this selectable
dataset/ETHPy150Open deepmind/rc-data/generate_questions.py/LoadEntityMapping--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/internet/abstract.py/_ConsumerMixin.startWriting