public class DetectSyntaxResult
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
DetectSyntaxResult() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<SyntaxToken> |
getSyntaxTokens()
A collection of syntax tokens describing the text.
|
int |
hashCode() |
void |
setSyntaxTokens(java.util.Collection<SyntaxToken> syntaxTokens)
A collection of syntax tokens describing the text.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DetectSyntaxResult |
withSyntaxTokens(java.util.Collection<SyntaxToken> syntaxTokens)
A collection of syntax tokens describing the text.
|
DetectSyntaxResult |
withSyntaxTokens(SyntaxToken... syntaxTokens)
A collection of syntax tokens describing the text.
|
public java.util.List<SyntaxToken> getSyntaxTokens()
A collection of syntax tokens describing the text. For each token, the response provides the text, the token type, where the text begins and ends, and the level of confidence that Amazon Comprehend has that the token is correct. For a list of token types, see how-syntax.
A collection of syntax tokens describing the text. For each token, the response provides the text, the token type, where the text begins and ends, and the level of confidence that Amazon Comprehend has that the token is correct. For a list of token types, see how-syntax.
public void setSyntaxTokens(java.util.Collection<SyntaxToken> syntaxTokens)
A collection of syntax tokens describing the text. For each token, the response provides the text, the token type, where the text begins and ends, and the level of confidence that Amazon Comprehend has that the token is correct. For a list of token types, see how-syntax.
syntaxTokens - A collection of syntax tokens describing the text. For each token, the response provides the text, the token type, where the text begins and ends, and the level of confidence that Amazon Comprehend has that the token is correct. For a list of token types, see how-syntax.
public DetectSyntaxResult withSyntaxTokens(SyntaxToken... syntaxTokens)
A collection of syntax tokens describing the text. For each token, the response provides the text, the token type, where the text begins and ends, and the level of confidence that Amazon Comprehend has that the token is correct. For a list of token types, see how-syntax.
Returns a reference to this object so that method calls can be chained together.
syntaxTokens - A collection of syntax tokens describing the text. For each token, the response provides the text, the token type, where the text begins and ends, and the level of confidence that Amazon Comprehend has that the token is correct. For a list of token types, see how-syntax.
public DetectSyntaxResult withSyntaxTokens(java.util.Collection<SyntaxToken> syntaxTokens)
A collection of syntax tokens describing the text. For each token, the response provides the text, the token type, where the text begins and ends, and the level of confidence that Amazon Comprehend has that the token is correct. For a list of token types, see how-syntax.
Returns a reference to this object so that method calls can be chained together.
syntaxTokens - A collection of syntax tokens describing the text. For each token, the response provides the text, the token type, where the text begins and ends, and the level of confidence that Amazon Comprehend has that the token is correct. For a list of token types, see how-syntax.
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.