def get_target_indice(targets, answers, sent):
    """
    Find the indice of the target words in the sentence,
    given the sequence of fragments and answers to the blanks.
    """
    prefix = ''
    b0 = ''.join(answers[0].split())
    b1 = b0 + targets[0] + ''.join(answers[1].split())
    index0 = -1
    index1 = -1
    for k, w in enumerate(sent):
        prefix += w
        if prefix == b0:
            index0 = k + 1
        elif prefix == b1:
            index1 = k + 1

    assert index0 != -1 
    assert index1 != -1 
    return index0, index1