|
|||||||||||
| 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.TextGermanDT
A class for the IR datatype "text", containing the operators:
By default, the RSVs are divided by the maximum RSV, and no logistic mapping function is applied. Both can be changed.
| Field Summary | |
static java.lang.String |
CONTAINS_EXP
Operator name "contains" for experiments. |
static java.lang.String |
NAME
The name of this datatype. |
static java.lang.String |
NOSTEM
Operator name "nostem" (no stemming, stopword removal, BM25). |
static java.lang.String |
NOSTEM_TF
Operator name "nostem_tf" (no stemming, stopword removal, normalised TF). |
static java.lang.String |
NOSTEM_TFIDF
Operator name "nostem_tfidf" (no stemming, stopword removal, normalised TF.IDF). |
static java.lang.String |
PLAIN_EXP
Operator name "contains" for experiments. |
static java.lang.String |
STEMEN
Operator name "stemen" (English stemming, stopword removal, BM25). |
static java.lang.String |
STEMEN_TF
Operator name "stemen_tf" (English stemming, stopword removal, normalised TF). |
static java.lang.String |
STEMEN_TFIDF
Operator name "stemen_tfidf" (English stemming, stopword removal, normalised TF.IDF). |
| Constructor Summary | |
TextGermanDT()
|
|
| Method Summary | |
void |
computeIndex(Index index,
java.lang.String operator)
Computes the indexing weights for the specified index and the operator. |
protected Filter |
getFilter(java.lang.String operator)
Returns a filter for converting a document value into tokens/token frequency tuples. |
java.lang.String |
getProbsTemplate(Index index,
java.lang.String queryID,
java.lang.String suffix,
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. |
static WordSplitterFilter |
getWordSplitterFilter()
Returns the word splitter filter. |
void |
removeIndex(Index index,
java.lang.String operator)
Removes the index. |
static void |
setDoMapForBM25(boolean flag)
Sets the flag for enabling or disabling the RSV scaling. |
static void |
setDoScaleForBM25(boolean flag)
Sets the flag for enabling or disabling the logistic mapping function. |
static void |
setMap(boolean map)
Deprecated. |
static void |
setScale(boolean scale)
Deprecated. |
| Methods inherited from class de.unidu.is.retrieval.pire.dt.AbstractDT |
addProbRules, addRSVRules, addToIndex, convertOperator, getIndexTokens, storedRSVs |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String NAME
public static final java.lang.String CONTAINS_EXP
public static final java.lang.String PLAIN_EXP
public static final java.lang.String STEMEN
public static final java.lang.String NOSTEM
public static final java.lang.String STEMEN_TF
public static final java.lang.String NOSTEM_TF
public static final java.lang.String STEMEN_TFIDF
public static final java.lang.String NOSTEM_TFIDF
| Constructor Detail |
public TextGermanDT()
| 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 void computeIndex(Index index,
java.lang.String operator)
The indexing weights are computed using a BM25 weighting scheme.
computeIndex in interface DTcomputeIndex in class AbstractDTindex - underlying indexoperator - operator name
public void removeIndex(Index index,
java.lang.String operator)
removeIndex in interface DTremoveIndex in class AbstractDT
public java.lang.String getProbsTemplate(Index index,
java.lang.String queryID,
java.lang.String suffix,
java.lang.String operator)
The template string is an expression which contains the key
${PROB}.
getProbsTemplate in class AbstractDTindex - underlying indexqueryID - query idoperator - operator namesuffix - relation suffix
public static void setScale(boolean scale)
scale - scaling flagpublic static void setMap(boolean map)
map - mapping function flagpublic static void setDoMapForBM25(boolean flag)
flag - flag for enabling or disabling the RSV scalingpublic static void setDoScaleForBM25(boolean flag)
flag - flag for enabling or disabling the logistic mapping functionpublic static WordSplitterFilter getWordSplitterFilter()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||