Exemple #1
0
def load_character_vocabulary(n_gram):
    from read_data import character_embedding
    word_set = load_word_set()
    character_vocabulary = character_embedding.load_character_vocabulary(n_gram=n_gram, token_list=word_set)
    return character_vocabulary
Exemple #2
0
def load_snli_character_vocabulary(n_gram):
    word_set = get_snli_token_vocabulary_set()
    character_vocabulary = character_embedding.load_character_vocabulary(
        n_gram=n_gram, token_list=word_set)
    return character_vocabulary
def load_de_character_vocabulary(n_gram):
    word_set = load_de_word_set()
    character_vocabulary = character_embedding.load_character_vocabulary(
        n_gram=n_gram, token_list=word_set)
    return character_vocabulary