uk.ac.gla.dcs.renaissance.iqir.models
Class RelevanceLMModel

java.lang.Object
  extended by bpiwowar.experiments.AbstractTask
      extended by uk.ac.gla.dcs.renaissance.iqir.models.RelevanceLMModel
All Implemented Interfaces:
bpiwowar.experiments.Task, RetrievalModel

public class RelevanceLMModel
extends bpiwowar.experiments.AbstractTask
implements RetrievalModel

A retrieval model for the Lavrenko/Croft relevance language modelling approach

Author:
Ingo Frommholz

Nested Class Summary
 
Nested classes/interfaces inherited from class bpiwowar.experiments.AbstractTask
bpiwowar.experiments.AbstractTask.Information
 
Constructor Summary
RelevanceLMModel()
           
 
Method Summary
 void close()
           
 void init(it.unimi.dsi.mg4j.document.DocumentCollection collection, IndexConfiguration index)
          the query engine
 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
 
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
 

Constructor Detail

RelevanceLMModel

public RelevanceLMModel()
Method Detail

init

public void init(it.unimi.dsi.mg4j.document.DocumentCollection collection,
                 IndexConfiguration index)
          throws Exception
the query engine

Specified by:
init in interface RetrievalModel
Throws:
Exception

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 Exception
Description copied from interface: RetrievalModel
Process a topic and return a set of results

Specified by:
process in interface RetrievalModel
timer - A timer
Throws:
Exception

close

public void close()
Specified by:
close in interface RetrievalModel


Copyright © 2011. All Rights Reserved.