public class QueryFirstTransSmoother extends AbstractSmoother
A Smoother using relation-term translations
Copyright: Copyright (c) 2005
Company: IST, Drexel University
docFirstOptimal, querytermFirstOptimal, queryWeight, useLog| Constructor and Description |
|---|
QueryFirstTransSmoother(IndexReader reader,
DoubleSparseMatrix transposedTransMatrix,
boolean relationTrans,
double transCoefficient,
Smoother basicSmoother) |
QueryFirstTransSmoother(IndexReader srcIndexReader,
IndexReader destIndexReader,
DoubleSparseMatrix transposedTransMatrix,
double transCoefficient,
Smoother basicSmoother) |
| Modifier and Type | Method and Description |
|---|---|
protected double |
computeSmoothedProb(int termFrequency) |
Smoother |
getBasicSmoother() |
double |
getTranslationCoefficient() |
DoubleSparseMatrix |
getTranslationMatrix() |
double |
getTranslationProb(int docIndex) |
void |
setDoc(IRDoc doc)
Set the current document for processing
|
boolean |
setParameters(double[] params) |
void |
setQueryTerm(SimpleTermPredicate queryTerm)
Set the current query term for processing
|
void |
setTranslationMatrix(DoubleSparseMatrix transposedTransMatrix) |
getLogLikelihoodOption, getProb, getSmoothedProb, getSmoothedProb, getSmoothedProb, getSmoothedProb, getSmoothedProb, getSmoothedProb, getSmoothedProb, isDocFirstOptimal, isQueryTermFirstOptimal, setLogLikelihoodOptionpublic QueryFirstTransSmoother(IndexReader reader, DoubleSparseMatrix transposedTransMatrix, boolean relationTrans, double transCoefficient, Smoother basicSmoother)
public QueryFirstTransSmoother(IndexReader srcIndexReader, IndexReader destIndexReader, DoubleSparseMatrix transposedTransMatrix, double transCoefficient, Smoother basicSmoother)
public void setTranslationMatrix(DoubleSparseMatrix transposedTransMatrix)
public DoubleSparseMatrix getTranslationMatrix()
public boolean setParameters(double[] params)
params - paramteres for the current smootherpublic Smoother getBasicSmoother()
public double getTranslationCoefficient()
public void setQueryTerm(SimpleTermPredicate queryTerm)
SmootherqueryTerm - the query termpublic void setDoc(IRDoc doc)
Smootherdoc - the documentpublic double getTranslationProb(int docIndex)
protected double computeSmoothedProb(int termFrequency)
computeSmoothedProb in class AbstractSmootherCopyright © 2018 JULIE Lab, Germany. All rights reserved.