def inverse_vocab(vocab):
    inv_vocab = {}
    for k,v in vocab.iteritems():
        inv_vocab[v] = k
    return inv_vocab
Get inverse vocab, namely a word list from a vocab.
dataset/ETHPy150Open yuhaozhang/nnjm-global/code/io_vocab.py/inverse_vocab