Examples of DelimitedValuesFileReader


Examples of ivory.core.util.DelimitedValuesFileReader

    //mQrels = new TreeMap<String, Map<String, Boolean>>();

    mQrels = new TreeMap<String, Map<String, String>>();

    DelimitedValuesFileReader iter = null;
    try {
       iter = new DelimitedValuesFileReader(file, " ");
    } catch (RuntimeException e) {
      // probably means file not found, simply propagate
      throw e;
    }

    String[] arr;
    while ((arr = iter.nextValues()) != null) {
      String qno = arr[0];
      String docno = arr[2];
      //boolean rel = arr[3].equals("0") ? false : true;

      if (mQrels.containsKey(qno)) {
View Full Code Here

Examples of ivory.core.util.DelimitedValuesFileReader

   * Creates a {@code Qrels} object from a file
   *
   * @param file file containing qrels
   */
  public Qrels(String file) {
    DelimitedValuesFileReader iter = new DelimitedValuesFileReader(file, " ");

    String[] arr;
    while ((arr = iter.nextValues()) != null) {
      String qno = arr[0];
      String docno = arr[2];
      boolean rel = arr[3].equals("0") ? false : true;

      if (data.containsKey(qno)) {
View Full Code Here

Examples of ivory.core.util.DelimitedValuesFileReader

  public GradedQrels(String file) {
    super(file);

    qrels = new TreeMap<String, Map<String, String>>();

    DelimitedValuesFileReader iter = null;
    try {
      iter = new DelimitedValuesFileReader(file, " ");
    } catch (RuntimeException e) {
      throw e;
    }

    String[] arr;
    while ((arr = iter.nextValues()) != null) {
      String qno = arr[0];
      String docno = arr[2];

      if (qrels.containsKey(qno)) {
        qrels.get(qno).put(docno, arr[3]);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.