@Override
	public void updategram(Ngram ngram) {

		Connection conn = JDBC.createConnection();

		String sql = "update  ngram set frequence = " + ngram.getFrequence()
				+ " where " + "wordGroup = '" + ngram.getWordGroup() + "';";

		PreparedStatement stat = JDBC.getSatement(conn, sql);
		try {
			stat.executeUpdate();
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		JDBC.close(stat);
		JDBC.close(conn);

	}