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())
def __init__(self, collection, rootpath=ROOT_PATH): DataEngine.__init__(self, collection) self.name = '%s.%s' % (self.__class__.__name__, collection)