def __init__(self, fontPath):
self.client = MongoClient()
self.coll = self.client[dbName][collName]
self.fontPath = fontPath
self.wordCloud = WordCloud(font_path=self.fontPath, width=400, height=400, max_words=100)
if not os.path.exists(self.imgDir):
os.mkdir(self.imgDir)
logging.info('GroupTagCloud connected to MongoDB.')
评论列表
文章目录