com.hrstc.trec
Class RobustEvalFix

java.lang.Object
  extended by com.hrstc.trec.RobustEvalFix

public class RobustEvalFix
extends java.lang.Object

RobustEvalFix.java Used for fixing robust_eval script so that the queries match with the script Created on November 15, 2004, 10:21 AM


Field Summary
private  java.lang.String queryResultFileName
           
private  java.lang.String robustEvalFileName
           
 
Constructor Summary
RobustEvalFix(java.lang.String scriptName, java.lang.String queryFileName)
          Creates a new instance of RobustEvalFix
 
Method Summary
protected  java.lang.String correctStr(java.lang.String str, java.util.Vector ids)
           
private  java.util.Vector extractQueryIds(java.lang.String fileName)
           
static void main(java.lang.String[] args)
           
 void process()
           
protected  java.lang.String processStr(java.lang.String scriptStr, java.util.Vector ids)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

robustEvalFileName

private java.lang.String robustEvalFileName

queryResultFileName

private java.lang.String queryResultFileName
Constructor Detail

RobustEvalFix

public RobustEvalFix(java.lang.String scriptName,
                     java.lang.String queryFileName)
Creates a new instance of RobustEvalFix

Method Detail

process

public void process()
             throws java.io.IOException
Throws:
java.io.IOException

processStr

protected java.lang.String processStr(java.lang.String scriptStr,
                                      java.util.Vector ids)

correctStr

protected java.lang.String correctStr(java.lang.String str,
                                      java.util.Vector ids)

extractQueryIds

private java.util.Vector extractQueryIds(java.lang.String fileName)
                                  throws java.io.IOException
Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Parameters:
args - robust_eval file query_result file
Throws:
java.io.IOException