コード例 #1
0
    def ShowConf(cls):
        cxBaseC.ShowConf()
        IndriSearchCenterC.ShowConf()
        FbObjCacheCenterC.ShowConf()
        AdhocEvaC.ShowConf()

        print 'qdocnodedatadir\norigqweight 0.5\nqobjonly 1'
コード例 #2
0
 def ShowConf(cls):
     print cls.__name__
     FbObjCacheCenterC.ShowConf()
     
     print 'objobjfeaturegroup'
     
     ObjObjEdgeFeatureKGExtractorC.ShowConf()
     ObjObjEdgeFeaturePreCalcSimExtractorC.ShowConf()
     ObjObjEdgeFeatureTextSimExtractorC.ShowConf()
     ObjObjEdgeFeatureTypeExtractorC.ShowConf()
     ObjObjEdgeFeatureEmbSimExtractorC.ShowConf()
コード例 #3
0
    def ShowConf(cls):
        cxBaseC.ShowConf()
        print cls.__name__
        print 'nodedir'

        IndriSearchCenterC.ShowConf()
        FbObjCacheCenterC.ShowConf()

        LeToRFeatureExtractCenterC.ShowConf()
        FbQObjFeatureExtractCenterC.ShowConf()
        FbObjDocFeatureExtractCenterC.ShowConf()
        ObjObjFeatureExtractCenterC.ShowConf()
コード例 #4
0
    def ShowConf():
        cxBaseC.ShowConf()
        IndriSearchCenterC.ShowConf()
        FbObjCacheCenterC.ShowConf()

        print 'nodedir\nqobjfeaturegroup\ndocobjfeaturegroup\nobjobjfeaturegroup'

        QueryObjEdgeFeatureAnaExtractorC.ShowConf()
        DocObjEdgeFeatureFaccExtractorC.ShowConf()
        ObjObjEdgeFeatureKGExtractorC.ShowConf()
        ObjObjEdgeFeaturePreCalcSimExtractorC.ShowConf()
        ObjObjEdgeFeatureTextSimExtractorC.ShowConf()
コード例 #5
0
what's my output:
    add "\t name a \t name b" in the end of each line

'''

import site

site.addsitedir('/bos/usr0/cx/PyCode/cxPyLib')
site.addsitedir('/bos/usr0/cx/PyCode/GoogleAPI')

from ObjCenter.FbObjCacheCenter import FbObjCacheCenterC
from cxBase.Conf import cxConfC
import sys

if 2 != len(sys.argv):
    FbObjCacheCenterC.ShowConf()
    print "in\nout"
    sys.exit()

ObjCenter = FbObjCacheCenterC(sys.argv[1])
conf = cxConfC(sys.argv[1])
InName = conf.GetConf('in')
OutName = conf.GetConf('out')

out = open(OutName, 'w')

cnt = 0
for line in open(InName):
    line = line.strip()
    vCol = line.split('\t')
    lName = [ObjCenter.FetchObjName(ObjId) for ObjId in vCol[:2]]
コード例 #6
0
 def ShowConf(cls):
     cxBaseC.ShowConf()
     FbObjCacheCenterC.ShowConf()
     print 'origqweight 0.5'
 def ShowConf():
     SearchResDocGraphConstructorC.ShowConf()
     ObjObjFeatureExtractCenterC.ShowConf()
     FbObjCacheCenterC.ShowConf()
コード例 #8
0
 def ShowConf():
     print 'doctextdir\nobjctf'
     FbObjCacheCenterC.ShowConf()
コード例 #9
0
 def ShowConf():
     cxBaseC.ShowConf()
     IndriSearchCenterC.ShowConf()
     FbObjCacheCenterC.ShowConf()
     print 'neighbornum'