public class ClassifyDocumentResult
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ClassifyDocumentResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<DocumentClass> |
getClasses()
The classes used by the document being analyzed.
|
java.util.List<DocumentLabel> |
getLabels()
The labels used the document being analyzed.
|
int |
hashCode() |
void |
setClasses(java.util.Collection<DocumentClass> classes)
The classes used by the document being analyzed.
|
void |
setLabels(java.util.Collection<DocumentLabel> labels)
The labels used the document being analyzed.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ClassifyDocumentResult |
withClasses(java.util.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(java.util.Collection<DocumentLabel> labels)
The labels used the document being analyzed.
|
ClassifyDocumentResult |
withLabels(DocumentLabel... labels)
The labels used the document being analyzed.
|
public java.util.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.
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(java.util.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.
Returns a reference to this object so that method calls can be chained together.
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(java.util.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.
Returns a reference to this object so that method calls can be chained together.
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 java.util.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.
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(java.util.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.
Returns a reference to this object so that method calls can be chained together.
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(java.util.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.
Returns a reference to this object so that method calls can be chained together.
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.