calculate_pr.py [76:86]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        curr = slot['start']
        prev_sent = context[prev:curr]
        labels.extend(['O'] * len(prev_sent.split()))
        curr_slot_split = slot['ans'].split()
        labels.append('B-' + slot['slot'])
        if len(curr_slot_split) > 1:
            for _ in curr_slot_split[1:]:
                labels.append('I-' + slot['slot'])
        prev = slot['start'] + len(slot['ans']) + 1

    labels.extend(['O'] * len(context[prev:].split()))
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



calculate_pr.py [92:104]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        curr = slot['start']
        prev_sent = context[prev:curr]
        labels.extend(['O'] * len(prev_sent.split()))
        curr_slot_split = slot['ans'].split()
        labels.append('B-' + slot['slot'])

        if len(curr_slot_split) > 1:
            for _ in curr_slot_split[1:]:
                labels.append('I-' + slot['slot'])

        prev = slot['start'] + len(slot['ans']) + 1

    labels.extend(['O'] * len(context[prev:].split()))
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



