|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.unidu.is.retrieval.lemur.Lemur
A wrapper class for the Lemur (distributed) retrieval system.
| Field Summary | |
static int |
inquery
The ID for the INQUERY ranking method. |
static int |
kl
The ID for the KL-Divergance ranking method. |
static int |
okapi
The ID for the OKAPI ranking method. |
static int |
tfidf
The ID for the tf.idf ranking method. |
| Constructor Summary | |
Lemur(java.io.File dir,
boolean useSample)
Creates a new instance and initis the directories. |
|
| Method Summary | |
java.io.File |
createTextFile(java.lang.String coll,
java.util.Map termMap)
Creates a text file (with the terms in it) in TREC format for the specified collection from the database. |
void |
createTopicFile(java.io.File topicFile,
Query query,
boolean append)
Creates a topic file (with the terms in it) in TREC format for the specified node. |
void |
createTopicFile(java.lang.String topicsName,
Query query,
boolean append)
Creates a topic file (with the terms in it) in TREC format for the specified node. |
void |
evaluate(java.lang.String coll,
java.io.File topicsFile,
java.io.File resultFile,
int mode,
int numDocs,
boolean doLog)
Evaluates the given topics on the specified collection. |
void |
evaluate(java.lang.String coll,
java.lang.String topicsName,
int mode,
int numDocs,
boolean doLog)
Evaluates the given topics on the specified collection. |
void |
evaluateCORI(java.lang.String[] colls,
java.io.File topicsFile,
java.io.File ranksFile,
java.io.File resultFile,
int numDocs,
int numDLs,
boolean doLog)
Evaluates the given topics on the specified collections, employing resource selection with CORI. |
void |
evaluateCORI(java.lang.String[] colls,
java.lang.String topicsName,
int numDocs,
int numDLs,
boolean doLog)
Evaluates the given topics on the specified collections, employing resource selection with CORI. |
void |
generateSmooth(java.lang.String coll,
boolean doLog)
Generates a smoothing file for the collection. |
java.util.List[] |
getCORIResult(java.lang.String[] colls,
Query query,
int numDocs,
int numDLs,
boolean doLog)
Returns the result for the specified query after resource selection with CORI. |
java.io.File |
getDir()
Returns the base directory. |
java.io.File |
getIndexCORIDir()
Returns the CORI index directory. |
java.io.File |
getIndexDir()
Returns the index directory. |
java.io.File |
getRanksCORIFile(java.lang.String topicsName)
Returns the file name for the ranks of the CORI evaluation. |
java.util.List |
getResult(java.lang.String coll,
Query query,
int mode,
int numDocs,
boolean doLog)
Returns the result for the specified query. |
java.io.File |
getResultCORIFile(java.lang.String topicsName)
Returns the file name for the results of the CORI evaluation. |
java.io.File |
getResultDir()
Returns the result directory. |
java.io.File |
getResultFile(java.lang.String topicsName,
java.lang.String coll)
Returns the file name for the evaluation results. |
java.io.File |
getSampleDir()
Returns the sample directory. |
java.io.File |
getTextDir()
Returns the text directory. |
java.io.File |
getTopicDir()
Returns the topics directory. |
void |
index(java.lang.String coll,
boolean doLog)
Indexes the collection. |
void |
indexCORI(java.lang.String[] colls,
boolean doLog)
Computes a CORI index and creates for each collection a parameter file which will be used for retrieval if the collection will be selected. |
void |
setDir(java.io.File file)
Sets the base directory. |
void |
setDir(java.io.File file,
boolean useSample)
Sets the base directory. |
void |
setIndexCORIDir(java.io.File file)
Sets the CORI index directory |
void |
setIndexDir(java.io.File file)
Sets the index directory |
void |
setResultDir(java.io.File file)
Sets the result directory |
void |
setSampleDir(java.io.File file)
Sets the sample directory |
void |
setTextDir(java.io.File file)
Sets the text directory |
void |
setTopicDir(java.io.File file)
Sets the topic directory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int tfidf
public static final int okapi
public static final int kl
public static final int inquery
| Constructor Detail |
public Lemur(java.io.File dir,
boolean useSample)
dir - base directoryuseSample - if true, the sample will be used for the CORI index| Method Detail |
public java.io.File createTextFile(java.lang.String coll,
java.util.Map termMap)
coll - collection nametermMap - document-termlist map
public void index(java.lang.String coll,
boolean doLog)
coll - collection namedoLog - if true, the output of the Lemur program is logged
public void generateSmooth(java.lang.String coll,
boolean doLog)
coll - collection namedoLog - if true, the output of the Lemur program is logged
public void createTopicFile(java.lang.String topicsName,
Query query,
boolean append)
topicsName - name for the topicquery - queryappend - if true, appends to that file
public void createTopicFile(java.io.File topicFile,
Query query,
boolean append)
topicFile - filequery - queryappend - if true, appends to that file
public java.util.List getResult(java.lang.String coll,
Query query,
int mode,
int numDocs,
boolean doLog)
coll - collection namequery - querymode - Lemur modenumDocs - number of documentsdoLog - if true, the output of the Lemur program is logged
public void evaluate(java.lang.String coll,
java.lang.String topicsName,
int mode,
int numDocs,
boolean doLog)
coll - collection nametopicsName - name of the topics (for the topic and the result file)mode - Lemur modenumDocs - number of documentsdoLog - if true, the output of the Lemur program is logged
public void evaluate(java.lang.String coll,
java.io.File topicsFile,
java.io.File resultFile,
int mode,
int numDocs,
boolean doLog)
coll - collection nametopicsFile - topics fileresultFile - file for the resultsmode - Lemur modenumDocs - number of documentsdoLog - if true, the output of the Lemur program is logged
public void indexCORI(java.lang.String[] colls,
boolean doLog)
colls - collections to be used for the indexdoLog - if true, the output of the Lemur program is logged
public java.util.List[] getCORIResult(java.lang.String[] colls,
Query query,
int numDocs,
int numDLs,
boolean doLog)
colls - collection namesquery - querynumDocs - number of documentsnumDLs - number of DLs to be selecteddoLog - if true, the output of the Lemur program is logged
public void evaluateCORI(java.lang.String[] colls,
java.lang.String topicsName,
int numDocs,
int numDLs,
boolean doLog)
colls - collection namestopicsName - name of the topics (for the topic and the result file)numDocs - number of documentsnumDLs - number of DLs to be selecteddoLog - if true, the output of the Lemur program is logged
public void evaluateCORI(java.lang.String[] colls,
java.io.File topicsFile,
java.io.File ranksFile,
java.io.File resultFile,
int numDocs,
int numDLs,
boolean doLog)
colls - collection namestopicsFile - topics fileranksFile - file for the ranksresultFile - file for the resultsnumDocs - number of documentsnumDLs - number of DLs to be selecteddoLog - if true, the output of the Lemur program is logged
public java.io.File getResultFile(java.lang.String topicsName,
java.lang.String coll)
topicsName - name of the topics (for the topic and the result file)coll - colection name
public java.io.File getRanksCORIFile(java.lang.String topicsName)
topicsName - name of the topics (for the topic and the result file)
public java.io.File getResultCORIFile(java.lang.String topicsName)
topicsName - name of the topics (for the topic and the result file)
public java.io.File getDir()
public java.io.File getIndexCORIDir()
public java.io.File getIndexDir()
public java.io.File getResultDir()
public java.io.File getSampleDir()
public java.io.File getTextDir()
public java.io.File getTopicDir()
public void setDir(java.io.File file)
file - base directory
public void setDir(java.io.File file,
boolean useSample)
file - base directoryuseSample - if true, uses samples instead of full textpublic void setIndexCORIDir(java.io.File file)
file - directorypublic void setIndexDir(java.io.File file)
file - directorypublic void setResultDir(java.io.File file)
file - directorypublic void setSampleDir(java.io.File file)
file - directorypublic void setTextDir(java.io.File file)
file - directorypublic void setTopicDir(java.io.File file)
file - directory
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||