Beispiel #1
0
 def __init__(self, subeventid):
     """初始化特征词类
        input
            subeventid: 子事件ID
     """
     self.subeventid = subeventid
     self.mongo = _default_mongo(usedb=MONGO_DB_NAME)
Beispiel #2
0
 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)
Beispiel #3
0
 def __init__(self, subeventid):
     """初始化特征词类
        input
            subeventid: 子事件ID
     """
     self.subeventid = subeventid
     self.mongo = _default_mongo(usedb=MONGO_DB_NAME)
Beispiel #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)
Beispiel #5
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)
Beispiel #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()
Beispiel #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)
Beispiel #8
0
 def __init__(self):
     self.mongo = _default_mongo(usedb=MONGO_DB_NAME)
Beispiel #9
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()
Beispiel #10
0
 def __init__(self):
     self.mongo = _default_mongo(usedb=MONGO_DB_NAME)
Beispiel #11
0
 def __init__(self):
     self.mongo = _default_mongo(usedb=OPINION_MONGODB_NAME)
Beispiel #12
0
 def __init__(self):
     self.mongo = _default_mongo(usedb=OPINION_MONGODB_NAME)