@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ClassifyDocumentResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
| Constructor and Description |
|---|
ClassifyDocumentResult() |
| Modifier and Type | Method and Description |
|---|---|
ClassifyDocumentResult |
clone() |
boolean |
equals(Object obj) |
List<DocumentClass> |
getClasses()
The classes used by the document being analyzed.
|
List<DocumentLabel> |
getLabels()
The labels used the document being analyzed.
|
int |
hashCode() |
void |
setClasses(Collection<DocumentClass> classes)
The classes used by the document being analyzed.
|
void |
setLabels(Collection<DocumentLabel> labels)
The labels used the document being analyzed.
|
String |
toString()
Returns a string representation of this object.
|
ClassifyDocumentResult |
withClasses(Collection<DocumentClass> classes)
The classes used by the document being analyzed.
|
ClassifyDocumentResult |
withClasses(DocumentClass... classes)
The classes used by the document being analyzed.
|
ClassifyDocumentResult |
withLabels(Collection<DocumentLabel> labels)
The labels used the document being analyzed.
|
ClassifyDocumentResult |
withLabels(DocumentLabel... labels)
The labels used the document being analyzed.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic List<DocumentClass> getClasses()
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.
public void setClasses(Collection<DocumentClass> 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.
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.public ClassifyDocumentResult withClasses(DocumentClass... 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.
NOTE: This method appends the values to the existing list (if any). Use
setClasses(java.util.Collection) or withClasses(java.util.Collection) if you want to override
the existing values.
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.public ClassifyDocumentResult withClasses(Collection<DocumentClass> 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.
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.public List<DocumentLabel> getLabels()
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.
public void setLabels(Collection<DocumentLabel> 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.
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.public ClassifyDocumentResult withLabels(DocumentLabel... 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.
NOTE: This method appends the values to the existing list (if any). Use
setLabels(java.util.Collection) or withLabels(java.util.Collection) if you want to override the
existing values.
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.public ClassifyDocumentResult withLabels(Collection<DocumentLabel> 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.
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.public String toString()
toString in class ObjectObject.toString()public ClassifyDocumentResult clone()
Copyright © 2022. All rights reserved.