def SetConf(self, ConfIn): ObjObjEdgeFeatureExtractorC.SetConf(self, ConfIn) Word2VecIn = self.conf.GetConf('word2vecin') logging.info('start load word2vec from [%s]', Word2VecIn) self.Word2VecModel = gensim.models.Word2Vec.load_word2vec_format( Word2VecIn) logging.info('loaded')
def SetConf(self, ConfIn): ObjObjEdgeFeatureExtractorC.SetConf(self, ConfIn) self.PreCalcFileInName = self.conf.GetConf('precalcsimfile') self.SetPreCalcSim()
def SetConf(self, ConfIn): ObjObjEdgeFeatureExtractorC.SetConf(self, ConfIn) self.TermCtfIn = self.conf.GetConf('termctf') self.CtfCenter = TermCtfC(self.TermCtfIn)