Struct aws_sdk_sagemaker::model::clarify_text_config::Builder
source · [−]pub struct Builder { /* private fields */ }Expand description
A builder for ClarifyTextConfig.
Implementations
sourceimpl 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.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more