Vocabulary Creation

this part is responsible for creating the vocab to be used for training the classifier 
what is your problem with the normal array access operator just use [] it works I swear