示例#1
0
 def __init__(self, subeventid):
     """初始化特征词类
        input
            subeventid: 子事件ID
     """
     self.subeventid = subeventid
     self.mongo = _default_mongo(usedb=MONGO_DB_NAME)
示例#2
0
文件: Database.py 项目: yuyuqi/turkey
 def __init__(self,
              topicid,
              col_collection_prefix=EVENTS_COMMENTS_COLLECTION_PREFIX):
     self.id = topicid
     self.comments_cluster_collection = COMMENTS_CLUSTER_COLLECTION
     self.comments_collection = col_collection_prefix + str(self.id)
     self.mongo = _default_mongo(usedb=MONGO_DB_NAME)
示例#3
0
文件: Database.py 项目: yuyuqi/turkey
 def __init__(self, subeventid):
     """初始化特征词类
        input
            subeventid: 子事件ID
     """
     self.subeventid = subeventid
     self.mongo = _default_mongo(usedb=MONGO_DB_NAME)
示例#4
0
 def __init__(self, id):
     """初始化话题实例,输入为话题ID,ObjectID
     """
     self.id = id
     self.other_subeventid = self.getOtherSubEventID()
     self.news_collection = EVENTS_NEWS_COLLECTION_PREFIX + str(id)
     self.sub_events_collection = SUB_EVENTS_COLLECTION
     self.events_collection = EVENTS_COLLECTION
     self.mongo = _default_mongo(usedb=MONGO_DB_NAME)
示例#5
0
文件: Database.py 项目: yuyuqi/turkey
 def __init__(self, id):
     """初始化话题实例,输入为话题ID,ObjectID
     """
     self.id = id
     self.other_subeventid = self.getOtherSubEventID()
     self.news_collection = EVENTS_NEWS_COLLECTION_PREFIX + str(id)
     self.sub_events_collection = SUB_EVENTS_COLLECTION
     self.events_collection = EVENTS_COLLECTION
     self.mongo = _default_mongo(usedb=MONGO_DB_NAME)
示例#6
0
 def __init__(self, id, topicid):
     self.id = id
     self.topicid = topicid
     self.news_collection = EVENTS_NEWS_COLLECTION_PREFIX + str(topicid)
     self.mongo = _default_mongo(usedb=MONGO_DB_NAME)
     self.otherClusterId = self.getOtherClusterId()
示例#7
0
 def __init__(self, topicid):
     self.id = topicid
     self.comments_cluster_collection = COMMENTS_CLUSTER_COLLECTION
     self.comments_collection = EVENTS_COMMENTS_COLLECTION_PREFIX + str(self.id)
     self.mongo = _default_mongo(usedb=MONGO_DB_NAME)
示例#8
0
 def __init__(self):
     self.mongo = _default_mongo(usedb=MONGO_DB_NAME)
示例#9
0
文件: Database.py 项目: yuyuqi/turkey
 def __init__(self, id, topicid):
     self.id = id
     self.topicid = topicid
     self.news_collection = EVENTS_NEWS_COLLECTION_PREFIX + str(topicid)
     self.mongo = _default_mongo(usedb=MONGO_DB_NAME)
     self.otherClusterId = self.getOtherClusterId()
示例#10
0
文件: Database.py 项目: yuyuqi/turkey
 def __init__(self):
     self.mongo = _default_mongo(usedb=MONGO_DB_NAME)
示例#11
0
 def __init__(self):
     self.mongo = _default_mongo(usedb=OPINION_MONGODB_NAME)
示例#12
0
 def __init__(self):
     self.mongo = _default_mongo(usedb=OPINION_MONGODB_NAME)