Added a getVocab function to DefinData class