def _flip_example(self, example: GAPExample) -> GAPExample:
    new_label = example.label
    if (example.label == GAPLabel.A):
        new_label = GAPLabel.B
    elif (example.label == GAPLabel.B):
        new_label = GAPLabel.A
    new_example = GAPExample(id=example.id, url=example.url, tokens=example.tokens, pronoun_index=example.pronoun_index, a_start=example.b_start, a_end=example.b_end, b_start=example.a_start, b_end=example.a_end, label=new_label)
    return new_example
def _flip_example(self, example: GAPExample) -> GAPExample:
    new_label = example.label
    if (example.label == GAPLabel.A):
        new_label = GAPLabel.B
    elif (example.label == GAPLabel.B):
        new_label = GAPLabel.A
    new_example = GAPExample(id=example.id, url=example.url, tokens=example.tokens, pronoun_index=example.pronoun_index, a_start=example.b_start, a_end=example.b_end, b_start=example.a_start, b_end=example.a_end, label=new_label)
    return new_example