Class CategorizationAnalyzerDefinition
java.lang.Object
co.elastic.clients.elasticsearch.ml.CategorizationAnalyzerDefinition
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class CategorizationAnalyzerDefinition extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CategorizationAnalyzerDefinition.Builder
Builder forCategorizationAnalyzerDefinition
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<CategorizationAnalyzerDefinition>
_DESERIALIZER
Json deserializer forCategorizationAnalyzerDefinition
-
Method Summary
Modifier and Type Method Description java.util.List<CharFilter>
charFilter()
One or more character filters.java.util.List<TokenFilter>
filter()
One or more token filters.static CategorizationAnalyzerDefinition
of(java.util.function.Function<CategorizationAnalyzerDefinition.Builder,ObjectBuilder<CategorizationAnalyzerDefinition>> fn)
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupCategorizationAnalyzerDefinitionDeserializer(ObjectDeserializer<CategorizationAnalyzerDefinition.Builder> op)
Tokenizer
tokenizer()
The name or definition of the tokenizer to use after character filters are applied.java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forCategorizationAnalyzerDefinition
-
-
Method Details
-
of
public static CategorizationAnalyzerDefinition of(java.util.function.Function<CategorizationAnalyzerDefinition.Builder,ObjectBuilder<CategorizationAnalyzerDefinition>> fn) -
charFilter
One or more character filters. In addition to the built-in character filters, other plugins can provide more character filters. If this property is not specified, no character filters are applied prior to categorization. If you are customizing some other aspect of the analyzer and you need to achieve the equivalent ofcategorization_filters
(which are not permitted when some other aspect of the analyzer is customized), add them here as pattern replace character filters.API name:
char_filter
-
filter
One or more token filters. In addition to the built-in token filters, other plugins can provide more token filters. If this property is not specified, no token filters are applied prior to categorization.API name:
filter
-
tokenizer
The name or definition of the tokenizer to use after character filters are applied. This property is compulsory ifcategorization_analyzer
is specified as an object. Machine learning provides a tokenizer calledml_standard
that tokenizes in a way that has been determined to produce good categorization results on a variety of log file formats for logs in English. If you want to use that tokenizer but change the character or token filters, specify "tokenizer": "ml_standard" in yourcategorization_analyzer
. Additionally, theml_classic
tokenizer is available, which tokenizes in the same way as the non-customizable tokenizer in old versions of the product (before 6.2).ml_classic
was the default categorization tokenizer in versions 6.2 to 7.13, so if you need categorization identical to the default for jobs created in these versions, specify "tokenizer": "ml_classic" in yourcategorization_analyzer
.API name:
tokenizer
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupCategorizationAnalyzerDefinitionDeserializer
protected static void setupCategorizationAnalyzerDefinitionDeserializer(ObjectDeserializer<CategorizationAnalyzerDefinition.Builder> op)
-