public class DominantLanguage
extends java.lang.Object
implements java.io.Serializable
Returns the code for the dominant language in the input text and the level of confidence that Amazon Comprehend has in the accuracy of the detection.
| Constructor and Description |
|---|
DominantLanguage() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getLanguageCode()
The RFC 5646 language code for the dominant language.
|
java.lang.Float |
getScore()
The level of confidence that Amazon Comprehend has in the accuracy of the
detection.
|
int |
hashCode() |
void |
setLanguageCode(java.lang.String languageCode)
The RFC 5646 language code for the dominant language.
|
void |
setScore(java.lang.Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the
detection.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DominantLanguage |
withLanguageCode(java.lang.String languageCode)
The RFC 5646 language code for the dominant language.
|
DominantLanguage |
withScore(java.lang.Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the
detection.
|
public java.lang.String getLanguageCode()
The RFC 5646 language code for the dominant language. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
Constraints:
Length: 1 -
The RFC 5646 language code for the dominant language. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
public void setLanguageCode(java.lang.String languageCode)
The RFC 5646 language code for the dominant language. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
Constraints:
Length: 1 -
languageCode - The RFC 5646 language code for the dominant language. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
public DominantLanguage withLanguageCode(java.lang.String languageCode)
The RFC 5646 language code for the dominant language. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
languageCode - The RFC 5646 language code for the dominant language. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
public java.lang.Float getScore()
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
public void setScore(java.lang.Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
score - The level of confidence that Amazon Comprehend has in the accuracy of the detection.
public DominantLanguage withScore(java.lang.Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
Returns a reference to this object so that method calls can be chained together.
score - The level of confidence that Amazon Comprehend has in the accuracy of the detection.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.