def load_train_val_examples(random_seed, train_size=0.9) -> Tuple[(List[GAPExample], List[GAPExample])]:
    examples = []
    for tsv_file in ('gap-development.tsv', 'gap-validation.tsv', 'gap-test.tsv'):
        examples.extend(_load_gap((DATA_DIR / tsv_file)))
    examples_gender = [PRONOUNS_GENDER[e.tokens[e.pronoun_index].lower()] for e in examples]
    (train_examples, val_examples) = train_test_split(examples, random_state=random_seed, train_size=train_size, shuffle=True, stratify=examples_gender)
    return (train_examples, val_examples)
def load_train_val_examples(random_seed, train_size=0.9) -> Tuple[(List[GAPExample], List[GAPExample])]:
    examples = []
    for tsv_file in ('gap-development.tsv', 'gap-validation.tsv', 'gap-test.tsv'):
        examples.extend(_load_gap((DATA_DIR / tsv_file)))
    examples_gender = [PRONOUNS_GENDER[e.tokens[e.pronoun_index].lower()] for e in examples]
    (train_examples, val_examples) = train_test_split(examples, random_state=random_seed, train_size=train_size, shuffle=True, stratify=examples_gender)
    return (train_examples, val_examples)