def _initialize_models(obj, tokenizer, pos_tagger, np_extractor, analyzer, parser, classifier):
 obj.tokenizer = _validated_param(tokenizer, u'tokenizer', base_class=(BaseTokenizer, nltk.tokenize.api.TokenizerI), default=BaseBlob.tokenizer, base_class_name=u'BaseTokenizer')
 obj.np_extractor = _validated_param(np_extractor, u'np_extractor', base_class=BaseNPExtractor, default=BaseBlob.np_extractor)
 obj.pos_tagger = _validated_param(pos_tagger, u'pos_tagger', BaseTagger, BaseBlob.pos_tagger)
 obj.analyzer = _validated_param(analyzer, u'analyzer', BaseSentimentAnalyzer, BaseBlob.analyzer)
 obj.parser = _validated_param(parser, u'parser', BaseParser, BaseBlob.parser)
 obj.classifier = classifier

def _initialize_models ( obj , tokenizer , pos_tagger , np_extractor , analyzer , parser , classifier ) : obj . tokenizer = _validated_param ( tokenizer , u'tokenizer' , base_class = ( BaseTokenizer , nltk . tokenize . api . TokenizerI ) , default = BaseBlob . tokenizer , base_class_name = u'BaseTokenizer' ) obj . np_extractor = _validated_param ( np_extractor , u'np_extractor' , base_class = BaseNPExtractor , default = BaseBlob . np_extractor ) obj . pos_tagger = _validated_param ( pos_tagger , u'pos_tagger' , BaseTagger , BaseBlob . pos_tagger ) obj . analyzer = _validated_param ( analyzer , u'analyzer' , BaseSentimentAnalyzer , BaseBlob . analyzer ) obj . parser = _validated_param ( parser , u'parser' , BaseParser , BaseBlob . parser ) obj . classifier = classifier
common initialization between baseblob and blobber classes .