Package uk.ac.ucl.panda.retrieval

Examples of uk.ac.ucl.panda.retrieval.TrecRetrieval


      // System.out.println(index);
      // System.out.println(topics);
      // System.out.println(qrels);

      TrecRetrieval trecsearch = new TrecRetrieval();
      trecsearch.batch(index, topics, qrels, appProp
          .getProperty("panda.var"));

    }

    else if (evaluation) {
      buf = FileReader.openFileReader(appProp.getProperty("panda.etc")
          + fileseparator + "IndexDir.config");
      String index = buf.readLine();

      buf = FileReader.openFileReader(appProp.getProperty("panda.etc")
          + fileseparator + "Topics.config");
      String topics = buf.readLine();

      buf = FileReader.openFileReader(appProp.getProperty("panda.etc")
          + fileseparator + "Qrels.config");
      String qrels = buf.readLine();

      // System.out.println(index);
      // System.out.println(topics);
      // System.out.println(qrels);

      TrecRetrieval trecsearch = new TrecRetrieval();
      trecsearch.process(index, topics, qrels, appProp
          .getProperty("panda.var"),algorithm);

    } else if (variance) {
      buf = FileReader.openFileReader(appProp.getProperty("panda.etc")
          + fileseparator + "IndexDir.config");
      String index = buf.readLine();

      buf = FileReader.openFileReader(appProp.getProperty("panda.etc")
          + fileseparator + "Topics.config");
      String topics = buf.readLine();

      buf = FileReader.openFileReader(appProp.getProperty("panda.etc")
          + fileseparator + "Qrels.config");
      String qrels = buf.readLine();

      // System.out.println(index);
      // System.out.println(topics);
      // System.out.println(qrels);

      TrecRetrieval trecsearch = new TrecRetrieval();
      trecsearch.process_var(index, topics, qrels, appProp
          .getProperty("panda.var"));

    } else if (variance) {
      buf = FileReader.openFileReader(appProp.getProperty("panda.etc")
          + fileseparator + "IndexDir.config");
      String index = buf.readLine();

      buf = FileReader.openFileReader(appProp.getProperty("panda.etc")
          + fileseparator + "Topics.config");
      String topics = buf.readLine();

      buf = FileReader.openFileReader(appProp.getProperty("panda.etc")
          + fileseparator + "Qrels.config");
      String qrels = buf.readLine();

      // System.out.println(index);
      // System.out.println(topics);
      // System.out.println(qrels);

      TrecRetrieval trecsearch = new TrecRetrieval();
      trecsearch.process_var(index, topics, qrels, appProp
          .getProperty("panda.var"));

    } else if (plot) {
      buf = FileReader.openFileReader(appProp.getProperty("panda.etc")
          + fileseparator + "IndexDir.config");
      String index = buf.readLine();

      buf = FileReader.openFileReader(appProp.getProperty("panda.etc")
          + fileseparator + "Topics.config");
      String topics = buf.readLine();

      buf = FileReader.openFileReader(appProp.getProperty("panda.etc")
          + fileseparator + "Qrels.config");
      String qrels = buf.readLine();

      // System.out.println(index);
      // System.out.println(topics);
      // System.out.println(qrels);

      TrecRetrieval trecsearch = new TrecRetrieval();
      trecsearch.process_plot(index, topics, qrels, appProp
          .getProperty("panda.var"));

    } else if (indexing) {

      buf = FileReader.openFileReader(appProp.getProperty("panda.etc")
View Full Code Here

TOP

Related Classes of uk.ac.ucl.panda.retrieval.TrecRetrieval

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.