@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ClarifyTextConfig extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
ClarifyTextConfig() |
Modifier and Type | Method and Description |
---|---|
ClarifyTextConfig |
clone() |
boolean |
equals(Object obj) |
String |
getGranularity()
The unit of granularity for the analysis of text features.
|
String |
getLanguage()
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setGranularity(String granularity)
The unit of granularity for the analysis of text features.
|
void |
setLanguage(String language)
|
String |
toString()
Returns a string representation of this object.
|
ClarifyTextConfig |
withGranularity(ClarifyTextGranularity granularity)
The unit of granularity for the analysis of text features.
|
ClarifyTextConfig |
withGranularity(String granularity)
The unit of granularity for the analysis of text features.
|
ClarifyTextConfig |
withLanguage(ClarifyTextLanguage language)
|
ClarifyTextConfig |
withLanguage(String language)
|
public void setLanguage(String 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'
.
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'
.
ClarifyTextLanguage
public String getLanguage()
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'
.
For a mix of multiple languages, use code 'xx'
.
ClarifyTextLanguage
public ClarifyTextConfig withLanguage(String 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'
.
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'
.
ClarifyTextLanguage
public ClarifyTextConfig withLanguage(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'
.
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'
.
ClarifyTextLanguage
public void setGranularity(String 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.
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.ClarifyTextGranularity
public String getGranularity()
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.
'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.ClarifyTextGranularity
public ClarifyTextConfig withGranularity(String 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.
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.ClarifyTextGranularity
public ClarifyTextConfig withGranularity(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.
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.ClarifyTextGranularity
public String toString()
toString
in class Object
Object.toString()
public ClarifyTextConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.