(self, model)
gets the vocab that was used in the nlp queries
    :param modeL; the key in the models dictionary.
gets the vocab that was used in the nlp queries
    :param modeL; the key in the models dictionary.
gets the vocab that was used in the nlp queries : param modeL ; the key in the models dictionary .
def get_vocab(self, model):
    '''
    gets the vocab that was used in the nlp queries
    :param modeL; the key in the models dictionary.
    '''
    if model in self.models:
        if 'vocabulary' in self.models[model].keys():
            return self.models[model]['vocabulary']
        else:
            raise Exception("Vocabulary is not defined for {}".format(model))
    else:
        raise Exception(
            "The requested model has not been applied to the client.")
def get_vocab ( self , model ) : if model in self . models : if 'vocabulary' in self . models [ model ] . keys ( ) : return self . models [ model ] [ 'vocabulary' ] else : raise Exception ( "Vocabulary is not defined for {}" . format ( model ) ) else : raise Exception ( "The requested model has not been applied to the client." )