public enum ScoringFunction extends Enum<ScoringFunction>
TF_IDF.| Enum Constant and Description |
|---|
BM25
A variation on the basic TFIDF scorer.
|
DIS_MAX
A simple scorer that sums up the frequencies of matched terms.
|
DOCUMENT_SCORE
A scoring function that just returns the presumptive score of the document without applying any calculations to it.
|
HAMMING_DISTANCE
Scoring by the inverse Hamming distance between the document's payload and the query payload is performed.
|
TF_IDF
Term Frequency - Inverse Document Frequency.
|
TF_IDF_NORMALIZED
Term Frequency - Inverse Document Frequency with document normalization.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
static ScoringFunction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScoringFunction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScoringFunction TF_IDF
public static final ScoringFunction TF_IDF_NORMALIZED
public static final ScoringFunction BM25
public static final ScoringFunction DIS_MAX
public static final ScoringFunction DOCUMENT_SCORE
public static final ScoringFunction HAMMING_DISTANCE
public static ScoringFunction[] values()
for (ScoringFunction c : ScoringFunction.values()) System.out.println(c);
public static ScoringFunction valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String toString()
toString in class Enum<ScoringFunction>Copyright © 2025 lettuce.io. All rights reserved.