public class Querier extends Abstracter
COLLECTION_FILE, docCollection, INCLUDE_BOW, INCLUDE_CNG, INCLUDE_COG, INCLUDE_WNG, index, INDEX_FILE, indexPath, locale, repType| Constructor and Description |
|---|
Querier(java.io.File indexDir,
RepresentationType repr)
Default invocation; files are in English
|
Querier(java.util.Locale lan,
java.io.File indexDir,
RepresentationType repr)
Invocation where the documents' language is given and the directory
for the index is provided.
|
| Modifier and Type | Method and Description |
|---|---|
Ranking |
computeRanking(java.io.File queryFile)
Queries a text file to the index.
|
Ranking |
computeRanking(java.lang.String queryText)
Queries a text to the index.
|
static void |
main(java.lang.String[] args) |
loadIndexpublic Querier(java.util.Locale lan,
java.io.File indexDir,
RepresentationType repr)
lan - indexDir - public Querier(java.io.File indexDir,
RepresentationType repr)
indexDir - public Ranking computeRanking(java.io.File queryFile) throws java.io.IOException
queryFile - File to query to the index.java.io.IOExceptionpublic Ranking computeRanking(java.lang.String queryText)
queryText - Text to be queried to the indexpublic static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException