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