Package | Description |
---|---|
org.apache.lucene.search.similarities |
This package contains the various ranking models that can be used in Lucene.
|
Modifier and Type | Class and Description |
---|---|
static class |
IndriDirichletSimilarity.IndriCollectionModel
Models
p(w|C) as the number of occurrences of the term in the collection, divided by
the total number of tokens + 1 . |
static class |
LMSimilarity.DefaultCollectionModel
Models
p(w|C) as the number of occurrences of the term in the
collection, divided by the total number of tokens + 1 . |
Modifier and Type | Field and Description |
---|---|
protected LMSimilarity.CollectionModel |
LMSimilarity.collectionModel
The collection model.
|
Constructor and Description |
---|
IndriDirichletSimilarity(LMSimilarity.CollectionModel collectionModel)
Instantiates the similarity with the default μ value of 2000.
|
IndriDirichletSimilarity(LMSimilarity.CollectionModel collectionModel,
float mu)
Instantiates the similarity with the provided μ parameter.
|
LMDirichletSimilarity(LMSimilarity.CollectionModel collectionModel)
Instantiates the similarity with the default μ value of 2000.
|
LMDirichletSimilarity(LMSimilarity.CollectionModel collectionModel,
float mu)
Instantiates the similarity with the provided μ parameter.
|
LMJelinekMercerSimilarity(LMSimilarity.CollectionModel collectionModel,
float lambda)
Instantiates with the specified collectionModel and λ parameter.
|
LMSimilarity(LMSimilarity.CollectionModel collectionModel)
Creates a new instance with the specified collection language model.
|
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.