コード例 #1
0
ファイル: negativeengine.py プロジェクト: Peratham/jingwei
 def __init__(self, collection, rootpath=ROOT_PATH):
     DataEngine.__init__(self, collection, rootpath)
     tagfile = os.path.join(rootpath, collection, 'TextData', 'id.userid.lemmtags.txt')
     self.data = map(str.strip, open(tagfile).readlines())
コード例 #2
0
ファイル: positiveengine.py プロジェクト: Peratham/jingwei
 def __init__(self, collection, rootpath=ROOT_PATH):
     DataEngine.__init__(self, collection)
     self.name = '%s.%s' % (self.__class__.__name__, collection)
コード例 #3
0
 def __init__(self, collection, rootpath=ROOT_PATH):
     DataEngine.__init__(self, collection, rootpath)
     tagfile = os.path.join(rootpath, collection, 'TextData',
                            'id.userid.lemmtags.txt')
     self.data = map(str.strip, open(tagfile).readlines())
コード例 #4
0
ファイル: positiveengine.py プロジェクト: xiaojiew1/KDGAN
 def __init__(self, collection, rootpath=ROOT_PATH):
     DataEngine.__init__(self, collection)
     self.name = '%s.%s' % (self.__class__.__name__, collection)