preqpp

package
v0.0.0-...-b7c488f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2021 License: MIT Imports: 12 Imported by: 1

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

View Source
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{}
)
View Source
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{}
)
View Source
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.

View Source
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).

View Source
var RetrievalSize = retrievalSize{}

RetrievalSize is the total number of results retrieved for a query.

View Source
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.

Types

type SCQ

type SCQ struct{}

func (SCQ) Execute

func (scq SCQ) Execute(q pipeline.Query, s stats.StatisticsSource) (float64, error)

func (SCQ) Name

func (scq SCQ) Name() string

type TF

type TF struct{}

func (TF) Execute

func (tf TF) Execute(q pipeline.Query, s stats.StatisticsSource) (float64, error)

func (TF) Name

func (tf TF) Name() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL