Module org.elasticsearch.xcore
Class XLMRobertaTokenizationUpdate
java.lang.Object
org.elasticsearch.xpack.core.ml.inference.trainedmodel.AbstractTokenizationUpdate
org.elasticsearch.xpack.core.ml.inference.trainedmodel.XLMRobertaTokenizationUpdate
- All Implemented Interfaces:
NamedWriteable,Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject,TokenizationUpdate,NamedXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ConstructingObjectParser<XLMRobertaTokenizationUpdate, Void> Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(Tokenization originalConfig) static XLMRobertaTokenizationUpdatefromXContent(org.elasticsearch.xcontent.XContentParser parser) getName()Methods inherited from class org.elasticsearch.xpack.core.ml.inference.trainedmodel.AbstractTokenizationUpdate
declareCommonParserFields, equals, getSpan, getTruncate, hashCode, isNoop, toXContent, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
NAME
public static final org.elasticsearch.xcontent.ParseField NAME -
PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<XLMRobertaTokenizationUpdate,Void> PARSER
-
-
Constructor Details
-
XLMRobertaTokenizationUpdate
public XLMRobertaTokenizationUpdate(@Nullable Tokenization.Truncate truncate, @Nullable Integer span) -
XLMRobertaTokenizationUpdate
- Throws:
IOException
-
-
Method Details
-
fromXContent
public static XLMRobertaTokenizationUpdate fromXContent(org.elasticsearch.xcontent.XContentParser parser) -
apply
-
getWriteableName
-
getName
- Returns:
- The name of the XContentObject that is to be serialized
-