private double[] analysisSingleWeibo(String weibo, String keyword) throws UnsupportedEncodingException {
		Sentence[] sen = null;
/*		if (weibo.lastIndexOf("但") != -1)
			weibo = weibo.substring(weibo.lastIndexOf("但") + 1);
		else if (weibo.lastIndexOf("不过") != -1)
			weibo = weibo.substring(weibo.lastIndexOf("不过") + 2);
		else if (weibo.lastIndexOf("，可是") != -1)
			weibo = weibo.substring(weibo.lastIndexOf("，可是") + 3);*/
		if (keyword != null && !keyword.isEmpty()) {
			weibo = weibo.replaceAll(keyword, "[|keyword|]");
			sen = filterSentence(Sentence.extractSentence(weibo), "[|keyword|]");
		} else {
			sen = Sentence.extractSentence(weibo);
		}

		double [][] score = new double[sen.length][EMOTION_NUM * 6];
		for (int i = 0; i < sen.length; ++i) {
			score[i] = analysisSentence(sen[i]);
		}
		
		double[] result = new double[EMOTION_NUM * 6];
		for (int i = 0; i < 6 * EMOTION_NUM; ++i) {
			if ((i / EMOTION_NUM) % 2 == 0)
				result[i] = 1.0;
			else
				result[i] = 0;
		}

		for (int i = 0; i < score.length; ++i) {
			for (int j = 0; j < score[i].length; ++j) {
				if ((j / EMOTION_NUM) % 2 == 0) {
					result[j] *= Math.pow(score[i][j], (1 + (0 + 1)/3));
				} else {
					result[j] = Math.max(result[j], score[i][j]);
				}
			}
		}
		normalize(result, 0, EMOTION_NUM);
		normalize(result, 2 * EMOTION_NUM, 3 * EMOTION_NUM);
		normalize(result, 4 * EMOTION_NUM, 5 * EMOTION_NUM);
		return result;
	}