@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ClarifyTextConfig.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ClarifyTextConfig.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
ClarifyTextGranularity |
granularity()
The unit of granularity for the analysis of text features.
|
String |
granularityAsString()
The unit of granularity for the analysis of text features.
|
int |
hashCode() |
ClarifyTextLanguage |
language()
|
String |
languageAsString()
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ClarifyTextConfig.Builder> |
serializableBuilderClass() |
ClarifyTextConfig.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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, language will
return ClarifyTextLanguage.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from languageAsString().
For a mix of multiple languages, use code 'xx'.
ClarifyTextLanguagepublic 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, language will
return ClarifyTextLanguage.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from languageAsString().
For a mix of multiple languages, use code 'xx'.
ClarifyTextLanguagepublic 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, granularity will
return ClarifyTextGranularity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from granularityAsString().
'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.ClarifyTextGranularitypublic 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, granularity will
return ClarifyTextGranularity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from granularityAsString().
'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.ClarifyTextGranularitypublic ClarifyTextConfig.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ClarifyTextConfig.Builder,ClarifyTextConfig>public static ClarifyTextConfig.Builder builder()
public static Class<? extends ClarifyTextConfig.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.