public void addNgrambyup(Connection conn,Ngram ngram) throws Exception{
		String wordAfterHandle = "";
		for(int i=0;i<ngram.getWordGroup().length();i++)
		{
			char c = ngram.getWordGroup().charAt(i);
			if(c == '\'')
			{
				wordAfterHandle += "\\\'";
			}
			else
			{
				wordAfterHandle += c;
			}
		}
		String sql = "insert into " + tableName +"(wordGroup,wordAttribute,frequence,count) values('"
				+ wordAfterHandle + "','" + ngram.getWordAttribute() + "','0','1')" +
				"on duplicate key update count=count+1";
		
		//System.out.println("sql is : " + sql);
		
		PreparedStatement stat = JDBC.getSatement(conn, sql);
		stat.executeUpdate();
		JDBC.close(stat);
		
	}