def split_ents_no_mix(ents, targets):
  """Split ents into target and non-target
  targets: list of target entity in text
  returns: qids of target and nontarget ent
  """
  target_qids = []
  non_target_qids = []
  for i, ent in enumerate(ents, 0):
    ent_start = ent[1]
    ent_end = ent[2]
    qid = ent[0]
    is_target = False
    for target in targets:
      target_start = target[1]
      target_end = target[2]
      if ent_start == target_start and ent_end == target_end:
        is_target = True

    if is_target:
      target_qids.append(qid)
    else:
      non_target_qids.append(qid)

  return target_qids, non_target_qids