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)
Set the namespace at the given index
dataset/ETHPy150Open yuhaozhang/nnjm-global/code/io_vocab.py/add_word_to_vocab--crossover with--dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.5/extras/completion/py/pymel/util/nameparse.py/Namespace.setSpace