def Init(self):
     cxBaseC.Init(self)
     self.Searcher = IndriSearchCenterC()
     self.hDocAnaData = {}
     self.hDocText = {}
     self.OutDir = ''
     self.QInName = ""
Esempio n. 2
0
 def Init(self):
     cxBaseC.Init(self)
     self.QIn = ""
     self.OutDir = ""
     self.Word2VecInName = ""
     self.Word2VecModel = None
     self.Searcher = IndriSearchCenterC()
     self.BinNumber = 100
    def Init(self):
        cxBaseC.Init(self)
        self.Searcher = IndriSearchCenterC()
        self.QueryNodePreFetchedCollector = QueryPreFetchedNodeCollectorC()
        self.DocNodeFaccAnaCollector = DocNodeFaccAnaCollectorC()

        self.lQueryNodeGroup = []
        self.lDocNodeGroup = []
 def Init(self):
     cxBaseC.Init(self)
     self.Evaluator = AdhocEvaC()
     self.Searcher = IndriSearchCenterC()
     self.Word2VecInName = ""
     self.Word2VecModel = None
     self.lLmName = []
     self.LmClass = None
     self.lOutName = []
     self.QueryInName = ""
    def Init(self):
        cxBaseC.Init(self)
        self.Evaluator = AdhocEvaC()
        self.Searcher = IndriSearchCenterC()
        self.Word2VecInName = ""
        self.Word2VecModel = None
        self.cLmName = "kde"
        self.LmClass = KernelDensityLmC

        #lm conf input
        self.ParaConf = cxConfC()
Esempio n. 6
0
    def Init(self):
        cxBaseC.Init(self)

        self.Searcher = IndriSearchCenterC()
        self.ObjCenter = FbObjCacheCenterC()
        self.Evaluator = AdhocEvaC()

        self.Inferener = LESInferencerC()

        self.QDocNodeDataDir = ""
        self.OrigQWeight = 0.5
        self.UseQObjOnly = True
Esempio n. 7
0
    def Init(self):
        cxBaseC.Init(self)

        self.NodeDir = ""

        self.Searcher = IndriSearchCenterC()
        self.ObjCenter = FbObjCacheCenterC()

        self.QDocFeatureExtractor = LeToRFeatureExtractCenterC()
        self.QObjFeatureExtractor = FbQObjFeatureExtractCenterC()
        self.DocObjFeatureExtractor = FbObjDocFeatureExtractCenterC()
        self.ObjObjFeatureExtractor = ObjObjFeatureExtractCenterC()
 def Init(self):
     cxBaseC.Init(self)
     self.Prepared = False
     
     self.Word2VecInName = ""
     self.Word2VecModel = None
     
     self.lFeatureGroup = []
     self.Searcher = IndriSearchCenterC()
     self.GivenFeatureExtractor = LeToRGivenFeatureExtractorC()
     self.EmbTermPairFeatureExtractor = EmbeddingTermPairFeatureExtractorC()
     self.EmbLmFeatureExtractor = EmbeddingLmFeatureExtractorC()
     self.QRelCenter = AdhocQRelC()
     self.QRelIn = ""
Esempio n. 9
0
    def Init(self):
        cxBaseC.Init(self)

        self.lQObjFeatureGroup = []
        self.lObjObjFeatureGroup = []
        self.lDocObjFeatureGroup = []

        self.QObjAnaExtractor = QueryObjEdgeFeatureAnaExtractorC()
        self.DocObjFaccExtractor = DocObjEdgeFeatureFaccExtractorC()
        self.ObjObjKGExtractor = ObjObjEdgeFeatureKGExtractorC()
        self.ObjObjPreCalcExtractor = ObjObjEdgeFeaturePreCalcSimExtractorC()
        self.ObjObjTextSimExtractor = ObjObjEdgeFeatureTextSimExtractorC()

        self.Searcher = IndriSearchCenterC()
        self.ObjCenter = FbObjCacheCenterC()
        self.NodeDir = ""
Esempio n. 10
0
        LineCnt += 1
        if 0 == (LineCnt % 1000):
            print 'second round [%s] line' % (LineCnt)
        if 1 == LineCnt:
            Dim = line.strip().split()[-1]
            print >> out, '%d\t%s' % (cnt, Dim)
            continue

        word = line.split()[0]
        if word in sVoc:
            print >> out, line.strip()
    print 'finished'
    out.close()


import sys

if 2 != len(sys.argv):
    print 'conf:\nqin\nword2vecin\nout'
    IndriSearchCenterC.ShowConf()
    sys.exit()

Searcher = IndriSearchCenterC(sys.argv[1])
conf = cxConfC(sys.argv[1])
QInName = conf.GetConf('qin')
OutName = conf.GetConf('out')
Word2VecIn = conf.GetConf('word2vecin')

sVoc = MakeVocabulary(QInName, Searcher)
FilterWord2VecModel(Word2VecIn, OutName, sVoc)
 def Init(self):
     DocGraphConstructorC.Init(self)
     self.Searcher = IndriSearchCenterC()
Esempio n. 12
0
 def Init(self):
     cxBaseC.Init(self)
     self.Searcher = IndriSearchCenterC()
     self.ObjCenter = FbObjCacheCenterC()
     self.NeighborNum = 50