(e2k_dicts, wv, idx_w2i, n_total, w2i, wemb)
return idx_w2i, n_total
Generate subset of TAPI from english-to-korean dict of table headers etc..
        update_w2i_wemb. It uses wv, w2i, wemb, idx_w2i as global variables.

        To do
        1. What should we do with the numeric?
           Current version do not treat them specially. But this would be modified later so that we can use tags.
Generate subset of TAPI from english-to-korean dict of table headers etc..
        update_w2i_wemb. It uses wv, w2i, wemb, idx_w2i as global variables.
Generate subset of TAPI from english - to - korean dict of table headers etc .. update_w2i_wemb . It uses wv w2i wemb idx_w2i as global variables .
def generate_w2i_wemb_e2k_headers(e2k_dicts, wv, idx_w2i, n_total, w2i, wemb):
    """ Generate subset of TAPI from english-to-korean dict of table headers etc..
        update_w2i_wemb. It uses wv, w2i, wemb, idx_w2i as global variables.

        To do
        1. What should we do with the numeric?
           Current version do not treat them specially. But this would be modified later so that we can use tags.
    """
    # word_set from NL query
    for table_name, e2k_dict in e2k_dicts.items():
        word_tokens_list = list(e2k_dict.values())
        # Currently, TAPI does not use "?". So, it is removed.
        for word_tokens in word_tokens_list:
            for word in word_tokens:
                idx_w2i, n_total = update_w2i_wemb(word, wv, idx_w2i, n_total, w2i, wemb)
                n_total += 1

    return idx_w2i, n_total
def generate_w2i_wemb_e2k_headers ( e2k_dicts , wv , idx_w2i , n_total , w2i , wemb ) : # word_set from NL query for table_name , e2k_dict in e2k_dicts . items ( ) : word_tokens_list = list ( e2k_dict . values ( ) ) # Currently, TAPI does not use "?". So, it is removed. for word_tokens in word_tokens_list : for word in word_tokens : idx_w2i , n_total = update_w2i_wemb ( word , wv , idx_w2i , n_total , w2i , wemb ) n_total += 1 return idx_w2i , n_total