Class IBSimilarity
Provides a framework for the family of information-based models, as described in StÉphane Clinchant and Eric Gaussier. 2010. Information-based models for ad hoc IR. In Proceeding of the 33rd international ACM SIGIR conference on Research and development in information retrieval (SIGIR '10). ACM, New York, NY, USA, 234-241.
The retrieval function is of the form RSV(q, d) = ∑ -xqw log Prob(Xw >= tdw | λw), where
- xqw is the query boost;
- Xw is a random variable that counts the occurrences of word w;
- tdw is the normalized term frequency;
- λw is a parameter.
The framework described in the paper has many similarities to the DFR framework (see DFRSimilarity). It is possible that the two Similarities will be merged at one point.
To construct an IBSimilarity, you must specify the implementations for all three components of the Information-Based model.
ComponentImplementations | |
---|---|
Distribution: Probabilistic distribution used to
model term occurrence
| |
Lambda: λw parameter of the probability distribution | |
Normalization: Term frequency normalizationAny supported DFR normalization (listed in DFRSimilarity) |
Inherited Members
Namespace: Lucene.Net.Search.Similarities
Assembly: Lucene.Net.dll
Syntax
public class IBSimilarity : SimilarityBase
Constructors
| Improve this Doc View SourceIBSimilarity(Distribution, Lambda, Normalization)
Creates IBSimilarity from the three components.
Note that null
values are not allowed:
if you want no normalization, instead pass
Normalization.NoNormalization.
Declaration
public IBSimilarity(Distribution distribution, Lambda lambda, Normalization normalization)
Parameters
Type | Name | Description |
---|---|---|
Distribution | distribution | probabilistic distribution modeling term occurrence |
Lambda | lambda | distribution's λw parameter |
Normalization | normalization | term frequency normalization |
Fields
| Improve this Doc View Sourcem_distribution
The probabilistic distribution used to model term occurrence.
Declaration
protected readonly Distribution m_distribution
Field Value
Type | Description |
---|---|
Distribution |
m_lambda
The lambda (λw) parameter.
Declaration
protected readonly Lambda m_lambda
Field Value
Type | Description |
---|---|
Lambda |
m_normalization
The term frequency normalization.
Declaration
protected readonly Normalization m_normalization
Field Value
Type | Description |
---|---|
Normalization |
Properties
| Improve this Doc View SourceDistribution
Returns the distribution
Declaration
public virtual Distribution Distribution { get; }
Property Value
Type | Description |
---|---|
Distribution |
Lambda
Returns the distribution's lambda parameter
Declaration
public virtual Lambda Lambda { get; }
Property Value
Type | Description |
---|---|
Lambda |
Normalization
Returns the term frequency normalization
Declaration
public virtual Normalization Normalization { get; }
Property Value
Type | Description |
---|---|
Normalization |
Methods
| Improve this Doc View SourceExplain(Explanation, BasicStats, Int32, Single, Single)
Declaration
protected override void Explain(Explanation expl, BasicStats stats, int doc, float freq, float docLen)
Parameters
Type | Name | Description |
---|---|---|
Explanation | expl | |
BasicStats | stats | |
System.Int32 | doc | |
System.Single | freq | |
System.Single | docLen |
Overrides
| Improve this Doc View SourceScore(BasicStats, Single, Single)
Declaration
public override float Score(BasicStats stats, float freq, float docLen)
Parameters
Type | Name | Description |
---|---|---|
BasicStats | stats | |
System.Single | freq | |
System.Single | docLen |
Returns
Type | Description |
---|---|
System.Single |
Overrides
| Improve this Doc View SourceToString()
The name of IB methods follow the pattern
IB <distribution> <lambda><normalization>
. The name of the
distribution is the same as in the original paper; for the names of lambda
parameters, refer to the doc of the Lambda classes.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |