Example #1
0
    def ShowConf(cls):
        cxBaseC.ShowConf()
        IndriSearchCenterC.ShowConf()
        FbObjCacheCenterC.ShowConf()
        AdhocEvaC.ShowConf()

        print 'qdocnodedatadir\norigqweight 0.5\nqobjonly 1'
 def ShowConf():
     cxBaseC.ShowConf()
     QueryPreFetchedNodeCollectorC.ShowConf()
     DocNodeFaccAnaCollectorC.ShowConf()
     IndriSearchCenterC.ShowConf()
     print 'querynodegroup ana'
     print 'docnodegroup facc'
 def ShowConf():
     cxBaseC.ShowConf()
     print 'word2vecin\nfeaturegroup givenfeature|termpairemb\nqrel\nemblm'
     LeToRGivenFeatureExtractorC.ShowConf()
     EmbeddingTermPairFeatureExtractorC.ShowConf()
     EmbeddingLmFeatureExtractorC.ShowConf()
     IndriSearchCenterC.ShowConf()
Example #4
0
    def ShowConf(cls):
        cxBaseC.ShowConf()
        print cls.__name__
        print 'nodedir'

        IndriSearchCenterC.ShowConf()
        FbObjCacheCenterC.ShowConf()

        LeToRFeatureExtractCenterC.ShowConf()
        FbQObjFeatureExtractCenterC.ShowConf()
        FbObjDocFeatureExtractCenterC.ShowConf()
        ObjObjFeatureExtractCenterC.ShowConf()
Example #5
0
    def ShowConf():
        cxBaseC.ShowConf()
        IndriSearchCenterC.ShowConf()
        FbObjCacheCenterC.ShowConf()

        print 'nodedir\nqobjfeaturegroup\ndocobjfeaturegroup\nobjobjfeaturegroup'

        QueryObjEdgeFeatureAnaExtractorC.ShowConf()
        DocObjEdgeFeatureFaccExtractorC.ShowConf()
        ObjObjEdgeFeatureKGExtractorC.ShowConf()
        ObjObjEdgeFeaturePreCalcSimExtractorC.ShowConf()
        ObjObjEdgeFeatureTextSimExtractorC.ShowConf()
 def ShowConf():
     cxBaseC.ShowConf()
     print 'docanain\noutdir\nin\ndoctextin'
     IndriSearchCenterC.ShowConf()
 def ShowConf(cls):
     cxBaseC.ShowConf()
     print cls.__name__
     print 'word2vecin\nkernel\nlmname\nbandwidth\nin\nout'
     IndriSearchCenterC.ShowConf()
     AdhocEvaC.ShowConf()
Example #8
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 ShowConf():
     DocGraphConstructorC.ShowConf()
     IndriSearchCenterC.ShowConf()
 def ShowConf(cls):
     cxBaseC.ShowConf()
     print cls.__name__
     print 'word2vecin'
     IndriSearchCenterC.ShowConf()
     AdhocEvaC.ShowConf()
Example #11
0
 def ShowConf():
     cxBaseC.ShowConf()
     IndriSearchCenterC.ShowConf()
     FbObjCacheCenterC.ShowConf()
     print 'neighbornum'
Example #12
0
 def ShowConf():
     cxBaseC.ShowConf()
     print 'word2vecin\nin\noutdir\nbinnumber'
     IndriSearchCenterC.ShowConf()