com.hrstc.trec
Class MatlabToTREC
java.lang.Object
com.hrstc.trec.MatlabToTREC
public class MatlabToTREC
- extends java.lang.Object
MatlabToTREC.java
Created on November 3, 2004, 11:16 AM
Merges output from matlab with the lucenes output and creates a file that
could be evaluated by trec_eval
TREC: qid iter docno rank sim run_id
- Author:
- Neil Rouben
Constructor Summary |
MatlabToTREC()
Creates a new instance of MatlabToTREC |
Method Summary |
private void |
addRankings(java.lang.Object[] array)
|
static void |
main(java.lang.String[] args)
|
void |
process(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MatlabToTREC
public MatlabToTREC()
- Creates a new instance of MatlabToTREC
process
public void process(java.lang.String[] args)
throws java.io.IOException
- Parameters:
args
- 0 - Matlab Out File
1 - Lucene Result File
- Throws:
java.io.IOException
addRankings
private void addRankings(java.lang.Object[] array)
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Parameters:
args
- matlabFile, luceneFile
- Throws:
java.io.IOException