uk.ac.gla.dcs.renaissance.iqir.models
Class MG4JScorer
java.lang.Object
bpiwowar.experiments.AbstractTask
uk.ac.gla.dcs.renaissance.iqir.models.MG4JScorer
- All Implemented Interfaces:
- bpiwowar.experiments.Task, RetrievalModel
public class MG4JScorer
- extends bpiwowar.experiments.AbstractTask
- implements RetrievalModel
Nested classes/interfaces inherited from class bpiwowar.experiments.AbstractTask |
bpiwowar.experiments.AbstractTask.Information |
Method Summary |
void |
close()
|
void |
init(it.unimi.dsi.mg4j.document.DocumentCollection collection,
IndexConfiguration index)
|
void |
process(bpiwowar.ir.query.Topic topic,
it.unimi.dsi.fastutil.objects.ObjectArrayList<it.unimi.dsi.mg4j.search.score.DocumentScoreInfo<it.unimi.dsi.fastutil.objects.Reference2ObjectMap<it.unimi.dsi.mg4j.index.Index,it.unimi.dsi.mg4j.query.SelectedInterval[]>>> results,
int capacity,
bpiwowar.log.TaskTimer timer)
Process a topic and return a set of results |
static void |
update(Map<String,org.apache.commons.lang.mutable.MutableInt> terms,
String word)
|
Methods inherited from class bpiwowar.experiments.AbstractTask |
execute, getName, getParent, init, processTrailingArguments, run |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mg4jTopic
public String mg4jTopic
- The MG4J topic. Made public to be reusable later. Invoke process()
before using this!
weightedWordFormatter
public static bpiwowar.utils.Formatter<Map.Entry<String,org.apache.commons.lang.mutable.MutableInt>> weightedWordFormatter
- A formatter that adds a MG4J weight to each word
MG4JScorer
public MG4JScorer()
init
public void init(it.unimi.dsi.mg4j.document.DocumentCollection collection,
IndexConfiguration index)
- Specified by:
init
in interface RetrievalModel
close
public void close()
- Specified by:
close
in interface RetrievalModel
process
public void process(bpiwowar.ir.query.Topic topic,
it.unimi.dsi.fastutil.objects.ObjectArrayList<it.unimi.dsi.mg4j.search.score.DocumentScoreInfo<it.unimi.dsi.fastutil.objects.Reference2ObjectMap<it.unimi.dsi.mg4j.index.Index,it.unimi.dsi.mg4j.query.SelectedInterval[]>>> results,
int capacity,
bpiwowar.log.TaskTimer timer)
throws it.unimi.dsi.mg4j.query.parser.QueryParserException,
it.unimi.dsi.mg4j.query.nodes.QueryBuilderVisitorException,
IOException
- Description copied from interface:
RetrievalModel
- Process a topic and return a set of results
- Specified by:
process
in interface RetrievalModel
timer
- A timer
- Throws:
it.unimi.dsi.mg4j.query.parser.QueryParserException
it.unimi.dsi.mg4j.query.nodes.QueryBuilderVisitorException
IOException
update
public static void update(Map<String,org.apache.commons.lang.mutable.MutableInt> terms,
String word)
Copyright © 2011. All Rights Reserved.