Class ClarifyTextConfig
- java.lang.Object
-
- software.amazon.awssdk.services.sagemaker.model.ClarifyTextConfig
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ClarifyTextConfig.Builder,ClarifyTextConfig>
@Generated("software.amazon.awssdk:codegen") public final class ClarifyTextConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ClarifyTextConfig.Builder,ClarifyTextConfig>
A parameter used to configure the SageMaker Clarify explainer to treat text features as text so that explanations are provided for individual units of text. Required only for natural language processing (NLP) explainability.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceClarifyTextConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClarifyTextConfig.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)ClarifyTextGranularitygranularity()The unit of granularity for the analysis of text features.StringgranularityAsString()The unit of granularity for the analysis of text features.inthashCode()ClarifyTextLanguagelanguage()StringlanguageAsString()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ClarifyTextConfig.Builder>serializableBuilderClass()ClarifyTextConfig.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
language
public final ClarifyTextLanguage language()
Specifies the language of the text features in ISO 639-1 or ISO 639-3 code of a supported language.
For a mix of multiple languages, use code
'xx'.If the service returns an enum value that is not available in the current SDK version,
languagewill returnClarifyTextLanguage.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlanguageAsString().- Returns:
- Specifies the language of the text features in ISO 639-1 or ISO 639-3 code of a supported language.
For a mix of multiple languages, use code
'xx'. - See Also:
ClarifyTextLanguage
-
languageAsString
public final String languageAsString()
Specifies the language of the text features in ISO 639-1 or ISO 639-3 code of a supported language.
For a mix of multiple languages, use code
'xx'.If the service returns an enum value that is not available in the current SDK version,
languagewill returnClarifyTextLanguage.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlanguageAsString().- Returns:
- Specifies the language of the text features in ISO 639-1 or ISO 639-3 code of a supported language.
For a mix of multiple languages, use code
'xx'. - See Also:
ClarifyTextLanguage
-
granularity
public final ClarifyTextGranularity granularity()
The unit of granularity for the analysis of text features. For example, if the unit is
'token', then each token (like a word in English) of the text is treated as a feature. SHAP values are computed for each unit/feature.If the service returns an enum value that is not available in the current SDK version,
granularitywill returnClarifyTextGranularity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromgranularityAsString().- Returns:
- The unit of granularity for the analysis of text features. For example, if the unit is
'token', then each token (like a word in English) of the text is treated as a feature. SHAP values are computed for each unit/feature. - See Also:
ClarifyTextGranularity
-
granularityAsString
public final String granularityAsString()
The unit of granularity for the analysis of text features. For example, if the unit is
'token', then each token (like a word in English) of the text is treated as a feature. SHAP values are computed for each unit/feature.If the service returns an enum value that is not available in the current SDK version,
granularitywill returnClarifyTextGranularity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromgranularityAsString().- Returns:
- The unit of granularity for the analysis of text features. For example, if the unit is
'token', then each token (like a word in English) of the text is treated as a feature. SHAP values are computed for each unit/feature. - See Also:
ClarifyTextGranularity
-
toBuilder
public ClarifyTextConfig.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ClarifyTextConfig.Builder,ClarifyTextConfig>
-
builder
public static ClarifyTextConfig.Builder builder()
-
serializableBuilderClass
public static Class<? extends ClarifyTextConfig.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-