Documentation ¶
Overview ¶
Package preqpp implements pre-retrieval query performance predictors, reproducing the Java API from https://github.com/lucene4ir/lucene4ir (where applicable)
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SummedCollectionQuerySimilarity (CQS) combines the collection term frequencies (cf (w)) and inverse document // frequency (idf (w)). The summed collection query similarity (SCQS) is a QPP in a family of predictors, much like how // idf can be summarised and used as a predictor SummedCollectionQuerySimilarity = summedCollectionQuerySimilarity{} // MaxCollectionQuerySimilarity is similar to SummedCollectionQuerySimilarity except, as the name implies, it computes // the maximum value rather than the sum. MaxCollectionQuerySimilarity = maxCollectionQuerySimilarity{} //AverageCollectionQuerySimilarity NOT IMPLEMENTED. AverageCollectionQuerySimilarity = averageCollectionQuerySimilarity{} )
var ( // AvgIDF is the average IDF. AvgIDF = avgIDF{} // SumIDF is the sum IDF. SumIDF = sumIDF{} // MaxIDF is the maximum IDF. MaxIDF = maxIDF{} // StdDevIDF is the standard deviation of the IDF. StdDevIDF = stdDevIDF{} )
var AvgICTF = avgICTF{}
AvgICTF is similar to idf, however it attempts to take into account the term frequencies. Inverse collection term frequency is defined as the ratio of unique terms in the collection to the term frequency of a term in a document, logarithmically smoothed.
var QueryScope = queryScope{}
QueryScope aims to measure the specificity of a query. e.g. "Olympic Games" versus a specific query "Olympics Sydney". Query scope is defined as the ratio of the number of documents that contain at least one of the query terms (N_Q) to the number of documents in the collection (N).
var RetrievalSize = retrievalSize{}
RetrievalSize is the total number of results retrieved for a query.
var SimplifiedClarityScore = simplifiedClarityScore{}
SimplifiedClarityScore (SCS) aims to measure the intrinsic clarity or ambiguity of a query. SCS does this by computing the maximum likelihood of a query language model of the term w in query Q:
Functions ¶
This section is empty.