com.hrstc.trec
Class QueryRelevance
java.lang.Object
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
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 |
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
QueryRelevance
public QueryRelevance(java.io.File file)
- Creates a new instance of QueryRelevance
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