@Override
	public Ngram findNgram(String wordGroup) {

		Connection conn = JDBC.createConnection();
		Ngram ngram = new Ngram();

		String sql = "select wordAttribute, frequence from ngram where wordGroup='"
				+ wordGroup + "';";
		PreparedStatement stat = JDBC.getSatement(conn, sql);
		try {
			ResultSet rs = stat.executeQuery();
			if (rs.first()) {
				ngram.setWordGroup(wordGroup);
				ngram.setWordAttribute((String) rs.getObject(1));
				if (rs.getObject(2) != null) {
					ngram.setFrequence((Double) rs.getObject(2));
				}
				return ngram;
			} else {
				return null;
			}
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

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

		return null;
	}