Struct aws_sdk_sagemaker::model::clarify_text_config::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ClarifyTextConfig
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn language(self, input: ClarifyTextLanguage) -> Self
pub fn language(self, input: ClarifyTextLanguage) -> Self
sourcepub fn set_language(self, input: Option<ClarifyTextLanguage>) -> Self
pub fn set_language(self, input: Option<ClarifyTextLanguage>) -> Self
sourcepub fn granularity(self, input: ClarifyTextGranularity) -> Self
pub fn granularity(self, input: ClarifyTextGranularity) -> Self
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.
sourcepub fn set_granularity(self, input: Option<ClarifyTextGranularity>) -> Self
pub fn set_granularity(self, input: Option<ClarifyTextGranularity>) -> Self
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.
sourcepub fn build(self) -> ClarifyTextConfig
pub fn build(self) -> ClarifyTextConfig
Consumes the builder and constructs a ClarifyTextConfig
.