Package cc.twittertools.search.configuration

Examples of cc.twittertools.search.configuration.IndriRunParams


    if (!paramFile.exists()) {
      System.err.println("QueryEnvironment: pathToRunParamFile does not exist!");
      throw new IOException();
    }

    IndriRunParams runParams = new IndriRunParams();
    runParams.ParseXMLQueryFile(pathToRunParamFile);

    similarity = runParams.getSimilarity();
    if (similarity == null) {
      similarity = "lm";
    }

    pathToIndex = runParams.getIndexName();
    if (pathToIndex == null) {
      System.err.println("IndexEnvironment: null value for index name!");
      throw new IllegalArgumentException();
    }
    count = runParams.getCount();
    if (count < 1) {
      System.err.println("cannot retrieve " + count + " docs!");
      System.exit(-1);
    }
    fbDocs = runParams.getFBDocs();
    fbTerms = runParams.getFBTerms();

    System.err.println("index:  " + pathToIndex);

    // now the queries
    if (pathToQueryFile == null) {
View Full Code Here

TOP

Related Classes of cc.twittertools.search.configuration.IndriRunParams

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.