build_vocab support