def ShowConf(cls): cxBaseC.ShowConf() IndriSearchCenterC.ShowConf() FbObjCacheCenterC.ShowConf() AdhocEvaC.ShowConf() print 'qdocnodedatadir\norigqweight 0.5\nqobjonly 1'
def ShowConf(cls): print cls.__name__ FbObjCacheCenterC.ShowConf() print 'objobjfeaturegroup' ObjObjEdgeFeatureKGExtractorC.ShowConf() ObjObjEdgeFeaturePreCalcSimExtractorC.ShowConf() ObjObjEdgeFeatureTextSimExtractorC.ShowConf() ObjObjEdgeFeatureTypeExtractorC.ShowConf() ObjObjEdgeFeatureEmbSimExtractorC.ShowConf()
def ShowConf(cls): cxBaseC.ShowConf() print cls.__name__ print 'nodedir' IndriSearchCenterC.ShowConf() FbObjCacheCenterC.ShowConf() LeToRFeatureExtractCenterC.ShowConf() FbQObjFeatureExtractCenterC.ShowConf() FbObjDocFeatureExtractCenterC.ShowConf() ObjObjFeatureExtractCenterC.ShowConf()
def ShowConf(): cxBaseC.ShowConf() IndriSearchCenterC.ShowConf() FbObjCacheCenterC.ShowConf() print 'nodedir\nqobjfeaturegroup\ndocobjfeaturegroup\nobjobjfeaturegroup' QueryObjEdgeFeatureAnaExtractorC.ShowConf() DocObjEdgeFeatureFaccExtractorC.ShowConf() ObjObjEdgeFeatureKGExtractorC.ShowConf() ObjObjEdgeFeaturePreCalcSimExtractorC.ShowConf() ObjObjEdgeFeatureTextSimExtractorC.ShowConf()
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]]
def ShowConf(cls): cxBaseC.ShowConf() FbObjCacheCenterC.ShowConf() print 'origqweight 0.5'
def ShowConf(): SearchResDocGraphConstructorC.ShowConf() ObjObjFeatureExtractCenterC.ShowConf() FbObjCacheCenterC.ShowConf()
def ShowConf(): print 'doctextdir\nobjctf' FbObjCacheCenterC.ShowConf()
def ShowConf(): cxBaseC.ShowConf() IndriSearchCenterC.ShowConf() FbObjCacheCenterC.ShowConf() print 'neighbornum'