|
|||||||||||
| 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
An abstract class for IR datatypes.
| Constructor Summary | |
AbstractDT()
|
|
| Method Summary | |
void |
addProbRules(Index index,
java.lang.String queryID,
java.lang.String subqueryID,
java.lang.String operator,
java.util.List addList)
Computes probabilities of relevance based on the RSVs (probabilities of inference). |
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. |
void |
addToIndex(Index index,
java.lang.String docID,
java.lang.String operator,
java.lang.Object value)
Add the document content of the specified index. |
void |
computeIndex(Index index,
java.lang.String operator)
Computes the indexing weights for the specified index and the operator. |
java.lang.String |
convertOperator(java.lang.String operator)
Converts the operator name into an identifier. |
protected abstract 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. |
protected 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 abstract Filter |
getQueryFilter(java.lang.String operator)
Returns a filter for converting a condition comparison value into tokens/token frequency tuples. |
void |
removeIndex(Index index,
java.lang.String operator)
Removes the index. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractDT()
| Method Detail |
protected abstract Filter getFilter(java.lang.String operator)
operator - operator name
protected abstract Filter getQueryFilter(java.lang.String operator)
operator - 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 DToperator - operator name
public void addToIndex(Index index,
java.lang.String docID,
java.lang.String operator,
java.lang.Object value)
The specified value is applied to the filter corresponding to the
operator filter, and the resulting tokens are added to the
tf relation (together with the document id and the
frequency of the token).
addToIndex in interface DTindex - underlying indexdocID - document idoperator - operator namevalue - attribute value
public void computeIndex(Index index,
java.lang.String operator)
This implementation uses a binary weighting scheme. Subclasses can use another weighting scheme by overriding this method.
computeIndex in interface DTindex - underlying indexoperator - operator name
public java.util.Iterator getIndexTokens(Index index,
java.lang.String operator)
The 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 DTindex - underlying indexoperator - operator name
public void removeIndex(Index index,
java.lang.String operator)
removeIndex in interface DTindex - underlying indexoperator - search operator namepublic boolean storedRSVs(java.lang.String operator)
weight
table, or if they are computed from outside.
The default implemenation returns true.
TODO: really useful?
storedRSVs in interface DToperator - 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)
This implementation adds a rule for using the indexing weight directly for the RSV.
addRSVRules in interface DTindex - underlying indexqueryID - query idsubqueryID - subquery idoperator - search operator nameweight - condition weightvalue - comparison valueaddList - list to where the condition has to be added
protected 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.
index - underlying indexqueryID - query idsubqueryID - subquery idoperator - operator name
public void addProbRules(Index index,
java.lang.String queryID,
java.lang.String subqueryID,
java.lang.String operator,
java.util.List addList)
addProbRules in interface DTindex - underlying indexqueryID - query idsubqueryID - subquery idoperator - search operatoraddList - list to which rules can be appended
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||