#NEWLINE# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# super ( to_dossier_store , self ) . __init__ ( * args , ** kwargs ) #NEWLINE# kvl = kvlayer . client ( ) #NEWLINE# feature_indexes = None #NEWLINE# try : #NEWLINE# #INDENT# conf = yakonfig . get_global_config ( 'dossier.store' ) #NEWLINE# feature_indexes = conf [ 'feature_indexes' ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# self . store = Store ( kvl , feature_indexes = feature_indexes ) #NEWLINE# tfidf_path = self . config . get ( 'tfidf_path' ) #NEWLINE# self . tfidf = gensim . models . TfidfModel . load ( kvl )