public class DocumentLabel
extends java.lang.Object
implements java.io.Serializable
Specifies one of the label or labels that categorize the document being analyzed.
Constructor and Description |
---|
DocumentLabel() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
The name of the label.
|
java.lang.Float |
getScore()
The confidence score that Amazon Comprehend has this label correctly
attributed.
|
int |
hashCode() |
void |
setName(java.lang.String name)
The name of the label.
|
void |
setScore(java.lang.Float score)
The confidence score that Amazon Comprehend has this label correctly
attributed.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DocumentLabel |
withName(java.lang.String name)
The name of the label.
|
DocumentLabel |
withScore(java.lang.Float score)
The confidence score that Amazon Comprehend has this label correctly
attributed.
|
public java.lang.String getName()
The name of the label.
Constraints:
Length: 1 -
The name of the label.
public void setName(java.lang.String name)
The name of the label.
Constraints:
Length: 1 -
name
- The name of the label.
public DocumentLabel withName(java.lang.String name)
The name of the label.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
name
- The name of the label.
public java.lang.Float getScore()
The confidence score that Amazon Comprehend has this label correctly attributed.
The confidence score that Amazon Comprehend has this label correctly attributed.
public void setScore(java.lang.Float score)
The confidence score that Amazon Comprehend has this label correctly attributed.
score
- The confidence score that Amazon Comprehend has this label correctly attributed.
public DocumentLabel withScore(java.lang.Float score)
The confidence score that Amazon Comprehend has this label correctly attributed.
Returns a reference to this object so that method calls can be chained together.
score
- The confidence score that Amazon Comprehend has this label correctly attributed.
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.