def add_word_to_vocab(word, words, vocab_map, vocab_size):
    if word not in vocab_map:
        words.append(word)
        vocab_map[word] = vocab_size
        vocab_size += 1
        #sys.stderr.write('  add %s\n' % word)
    return (words, vocab_map, vocab_size)
Add a word to a existing vocab. If word already exists, do nothing.
dataset/ETHPy150Open yuhaozhang/nnjm-global/code/io_vocab.py/add_word_to_vocab