Package cz.zcu.fav.liks.ml.featuresel.data

Examples of cz.zcu.fav.liks.ml.featuresel.data.Statement


      r.setLemma(line[8]);
    return r;
  }

  private Statement parseStatement(String[] line) {
    Statement s = new Statement();
    s.setId(Integer.parseInt(line[1]));
    s.setText(line[2]);
    s.setPositive(Boolean.parseBoolean(line[3]));
    if (line.length > 4)
      s.setLemma(line[4]);
    return s;
  }
View Full Code Here


    st.setInt(1, reviewId);
    ResultSet rs = st.executeQuery();

    while (rs.next()) {
      Statement statement = new Statement();
      statement.setId(rs.getInt("id"));
      statement.setLemma(rs.getString("lemma"));
      statement.setText(rs.getString("text"));
      statement.setPositive(rs.getBoolean("positive"));
      statement.setReviewId(rs.getInt("reviewId"));

      statements.add(statement);
    }

    rs.close();
View Full Code Here

TOP

Related Classes of cz.zcu.fav.liks.ml.featuresel.data.Statement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.