def __init__(self, use_redis=False, debug=True, file_name_head=''):
    QQZoneAnalysis.__init__(self, use_redis=use_redis, debug=debug, username=file_name_head, analysis_friend=False)
    TRAIN_BASE_DIR = ((BASE_DIR + file_name_head) + '/data/train/')
    self.MOOD_DATA_SCORE_FILE_NAME = (TRAIN_BASE_DIR + 'score_mood_data.csv')
    self.RE_DO_SENTIMENT_FILE_NAME = (TRAIN_BASE_DIR + 're_do_mood_data.csv')
    self.TEXT_LABEL_TRAIN_DATA = (TRAIN_BASE_DIR + 'mood_text.csv')
    self.TRAIN_DATA_AFTER_CLASSIFIC = (TRAIN_BASE_DIR + 'mood_classific.csv')
    self.TEXT_LABEL_RESULT_TRAIN_DATA = (('../data/train3/text_' + file_name_head) + '_label.csv')
    self.TEXT_CLASSIFICATION_DATA_SET = '../data/train/'
    self.FINAL_RESULT_TRAIN_DATA = (('../data/train/' + file_name_head) + '_final_train.csv')
    self.mood_data_df = pd.read_csv(self.MOOD_DATA_FILE_NAME)
    self.IMAGE_OBJECT_FILE_NAME = (('../data/train3/' + file_name_head) + '_image_object.csv')
    self.MOOD_DATA_AFTER_OBJECT = (('../data/train/' + file_name_head) + '_after_object.csv')
    self.sc = SentimentClassify()
    self.mood_data_df['score'] = '-1'
    self.label_dict = {'1': '旅游与运动', '2': '爱情与家庭', '3': '学习与工作', '4': '广告', '5': '生活日常', '6': '其他', '7': '人生感悟'}
    self.label_dict_reverse = {v: k for (k, v) in self.label_dict.items()}
def __init__(self, use_redis=False, debug=True, file_name_head=):
    QQZoneAnalysis.__init__(self, use_redis=use_redis, debug=debug, username=file_name_head, analysis_friend=False)
    TRAIN_BASE_DIR = ((BASE_DIR + file_name_head) + '/data/train/')
    self.MOOD_DATA_SCORE_FILE_NAME = (TRAIN_BASE_DIR + 'score_mood_data.csv')
    self.RE_DO_SENTIMENT_FILE_NAME = (TRAIN_BASE_DIR + 're_do_mood_data.csv')
    self.TEXT_LABEL_TRAIN_DATA = (TRAIN_BASE_DIR + 'mood_text.csv')
    self.TRAIN_DATA_AFTER_CLASSIFIC = (TRAIN_BASE_DIR + 'mood_classific.csv')
    self.TEXT_LABEL_RESULT_TRAIN_DATA = (('../data/train3/text_' + file_name_head) + '_label.csv')
    self.TEXT_CLASSIFICATION_DATA_SET = '../data/train/'
    self.FINAL_RESULT_TRAIN_DATA = (('../data/train/' + file_name_head) + '_final_train.csv')
    self.mood_data_df = pd.read_csv(self.MOOD_DATA_FILE_NAME)
    self.IMAGE_OBJECT_FILE_NAME = (('../data/train3/' + file_name_head) + '_image_object.csv')
    self.MOOD_DATA_AFTER_OBJECT = (('../data/train/' + file_name_head) + '_after_object.csv')
    self.sc = SentimentClassify()
    self.mood_data_df['score'] = '-1'
    self.label_dict = {'1': '旅游与运动', '2': '爱情与家庭', '3': '学习与工作', '4': '广告', '5': '生活日常', '6': '其他', '7': '人生感悟'}
    self.label_dict_reverse = {v: k for (k, v) in self.label_dict.items()}