def __init__(self, subeventid): """初始化特征词类 input subeventid: 子事件ID """ self.subeventid = subeventid self.mongo = _default_mongo(usedb=MONGO_DB_NAME)
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)
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)
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()
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)
def __init__(self): self.mongo = _default_mongo(usedb=MONGO_DB_NAME)
def __init__(self): self.mongo = _default_mongo(usedb=OPINION_MONGODB_NAME)