Struct aws_sdk_comprehend::output::classify_document_output::Builder
source · [−]pub struct Builder { /* private fields */ }Expand description
A builder for ClassifyDocumentOutput.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn classes(self, input: DocumentClass) -> Self
pub fn classes(self, input: DocumentClass) -> Self
Appends an item to classes.
To override the contents of this collection use set_classes.
The classes used by the document being analyzed. These are used for multi-class trained models. Individual classes are mutually exclusive and each document is expected to have only a single class assigned to it. For example, an animal can be a dog or a cat, but not both at the same time.
sourcepub fn set_classes(self, input: Option<Vec<DocumentClass>>) -> Self
pub fn set_classes(self, input: Option<Vec<DocumentClass>>) -> Self
The classes used by the document being analyzed. These are used for multi-class trained models. Individual classes are mutually exclusive and each document is expected to have only a single class assigned to it. For example, an animal can be a dog or a cat, but not both at the same time.
sourcepub fn labels(self, input: DocumentLabel) -> Self
pub fn labels(self, input: DocumentLabel) -> Self
Appends an item to labels.
To override the contents of this collection use set_labels.
The labels used the document being analyzed. These are used for multi-label trained models. Individual labels represent different categories that are related in some manner and are not mutually exclusive. For example, a movie can be just an action movie, or it can be an action movie, a science fiction movie, and a comedy, all at the same time.
sourcepub fn set_labels(self, input: Option<Vec<DocumentLabel>>) -> Self
pub fn set_labels(self, input: Option<Vec<DocumentLabel>>) -> Self
The labels used the document being analyzed. These are used for multi-label trained models. Individual labels represent different categories that are related in some manner and are not mutually exclusive. For example, a movie can be just an action movie, or it can be an action movie, a science fiction movie, and a comedy, all at the same time.
sourcepub fn build(self) -> ClassifyDocumentOutput
pub fn build(self) -> ClassifyDocumentOutput
Consumes the builder and constructs a ClassifyDocumentOutput.