Struct aws_sdk_comprehend::output::ClassifyDocumentOutput
source · #[non_exhaustive]pub struct ClassifyDocumentOutput { /* private fields */ }Implementations§
source§impl ClassifyDocumentOutput
impl ClassifyDocumentOutput
sourcepub fn classes(&self) -> Option<&[DocumentClass]>
pub fn classes(&self) -> Option<&[DocumentClass]>
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) -> Option<&[DocumentLabel]>
pub fn labels(&self) -> Option<&[DocumentLabel]>
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.
source§impl ClassifyDocumentOutput
impl ClassifyDocumentOutput
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ClassifyDocumentOutput.
Trait Implementations§
source§impl Clone for ClassifyDocumentOutput
impl Clone for ClassifyDocumentOutput
source§fn clone(&self) -> ClassifyDocumentOutput
fn clone(&self) -> ClassifyDocumentOutput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more