transformer_vocab function

Returns the vocabulary of a model