Class TokenPruningConfig
java.lang.Object
co.elastic.clients.elasticsearch._types.TokenPruningConfig
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TokenPruningConfig>Json deserializer forTokenPruningConfig -
Method Summary
Modifier and TypeMethodDescriptionstatic TokenPruningConfigfinal BooleanWhether to only score pruned tokens, vs only scoring kept tokens.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal IntegerTokens whose frequency is more than this threshold times the average frequency of all tokens in the specified field are considered outliers and pruned.final FloatTokens whose weight is less than this threshold are considered nonsignificant and pruned.toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forTokenPruningConfig
-
-
Method Details
-
of
public static TokenPruningConfig of(Function<TokenPruningConfig.Builder, ObjectBuilder<TokenPruningConfig>> fn) -
tokensFreqRatioThreshold
Tokens whose frequency is more than this threshold times the average frequency of all tokens in the specified field are considered outliers and pruned.API name:
tokens_freq_ratio_threshold -
tokensWeightThreshold
Tokens whose weight is less than this threshold are considered nonsignificant and pruned.API name:
tokens_weight_threshold -
onlyScorePrunedTokens
Whether to only score pruned tokens, vs only scoring kept tokens.API name:
only_score_pruned_tokens -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupTokenPruningConfigDeserializer
protected static void setupTokenPruningConfigDeserializer(ObjectDeserializer<TokenPruningConfig.Builder> op)
-