|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.unidu.is.retrieval.pire.dt.AbstractDT
de.unidu.is.retrieval.pire.dt.NumberDT
A class for the IR datatype "number", containing the deterministic operators "<", "<=", ">", ">=" and the vague operators "~<", "~>" and "~=". The identity mapping function is used for the deterministic operators, a logistic function for the vague ones.
| Constructor Summary | |
NumberDT()
|
|
| Method Summary | |
void |
addRSVRules(Index index,
java.lang.String queryID,
java.lang.String subqueryID,
java.lang.String operator,
double weight,
java.lang.Object value,
java.util.List addList)
Adds and evaluates a query condition. |
java.lang.String |
convertOperator(java.lang.String operator)
Converts the operator name into an identifier. |
protected Filter |
getFilter(java.lang.String operator)
Returns a filter for converting a document value into tokens/token frequency tuples. |
java.util.Iterator |
getIndexTokens(Index index,
java.lang.String operator)
Returns an iterator over all tokens for whom the indexing weight moments have to be computed. |
java.lang.String |
getProbsTemplate(Index index,
java.lang.String queryID,
java.lang.String subqueryID,
java.lang.String operator)
Returns a template for computing probabilities of relevance. |
protected Filter |
getQueryFilter(java.lang.String operator)
Returns a filter for converting a condition comparison value into tokens/token frequency tuples. |
protected boolean |
includesEqual(java.lang.String operator)
Tests whether the specified operator contains a "equals" component. |
protected boolean |
includesGreater(java.lang.String operator)
Tests whether the specified operator contains a "greater than" component. |
protected boolean |
includesLess(java.lang.String operator)
Tests whether the specified operator contains a "less than" component. |
protected boolean |
isVague(java.lang.String operator)
Tests whether the specified operator is a vague operator. |
boolean |
storedRSVs(java.lang.String operator)
Tests whether the RSVs are already stored in the weight
table, or if they are computed from outside. |
| Methods inherited from class de.unidu.is.retrieval.pire.dt.AbstractDT |
addProbRules, addToIndex, computeIndex, removeIndex |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NumberDT()
| Method Detail |
protected Filter getFilter(java.lang.String operator)
getFilter in class AbstractDToperator - operator name
protected Filter getQueryFilter(java.lang.String operator)
getQueryFilter in class AbstractDToperator - operator name
public java.lang.String convertOperator(java.lang.String operator)
This implementation returns the operator name. Subclasses can override this behaviour.
convertOperator in interface DTconvertOperator in class AbstractDToperator - operator name
public java.util.Iterator getIndexTokens(Index index,
java.lang.String operator)
AbstractDTThe default implementation returns null, specifying that all tokens which stored in the index should be used. Other implementations can override this behaviour. TODO: really useful?
getIndexTokens in interface DTgetIndexTokens in class AbstractDTindex - underlying indexoperator - operator name
protected boolean includesLess(java.lang.String operator)
operator - search operator
protected boolean includesGreater(java.lang.String operator)
operator - search operator
protected boolean includesEqual(java.lang.String operator)
operator - search operator
protected boolean isVague(java.lang.String operator)
operator - search operator
public boolean storedRSVs(java.lang.String operator)
weight
table, or if they are computed from outside.
storedRSVs in interface DTstoredRSVs in class AbstractDToperator - search operator
public void addRSVRules(Index index,
java.lang.String queryID,
java.lang.String subqueryID,
java.lang.String operator,
double weight,
java.lang.Object value,
java.util.List addList)
addRSVRules in interface DTaddRSVRules in class AbstractDTindex - underlying indexqueryID - query idsubqueryID - subquery idoperator - search operatorweight - condition weightvalue - comparison valueaddList - list to where the condition has to be added
public java.lang.String getProbsTemplate(Index index,
java.lang.String queryID,
java.lang.String subqueryID,
java.lang.String operator)
The template string is an expression which contains the key
${PROB}.
getProbsTemplate in class AbstractDTindex - underlying indexqueryID - query idoperator - operator namesubqueryID - subquery id
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||