com.hrstc.trec
Class QueryRelevance

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

public class QueryRelevance
extends java.lang.Object

QueryRelevance.java Used for storing QueryRelevance Judgments Created on October 17, 2004, 2:22 PM

Author:
Neil O. Rouben

Field Summary
static java.lang.String docNoFld
           
(package private)  java.io.File file
           
(package private)  java.util.Hashtable hash
           
static java.lang.String NOT_RELEVANT
           
static java.lang.String queryIdFld
          Field Definitions
static java.lang.String relevanceFld
           
static java.lang.String scoreFld
           
 
Constructor Summary
QueryRelevance(java.io.File file)
          Creates a new instance of QueryRelevance
 
Method Summary
 java.util.Hashtable get(java.util.Hashtable qHash)
           
 java.lang.String getKey(java.util.Hashtable h)
           
 void load()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

java.io.File file

hash

java.util.Hashtable hash

queryIdFld

public static final java.lang.String queryIdFld
Field Definitions

See Also:
Constant Field Values

docNoFld

public static final java.lang.String docNoFld
See Also:
Constant Field Values

relevanceFld

public static final java.lang.String relevanceFld
See Also:
Constant Field Values

scoreFld

public static final java.lang.String scoreFld
See Also:
Constant Field Values

NOT_RELEVANT

public static final java.lang.String NOT_RELEVANT
See Also:
Constant Field Values
Constructor Detail

QueryRelevance

public QueryRelevance(java.io.File file)
Creates a new instance of QueryRelevance

Method Detail

load

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

getKey

public java.lang.String getKey(java.util.Hashtable h)

get

public java.util.Hashtable get(java.util.Hashtable qHash)
Parameters:
qHash -
Returns:
if does not exist -> null

main

public static void main(java.lang.String[] args)
Parameters:
args - the command line arguments