Represents a work in the input text that was recognized and assigned a part of speech. There is one syntax token record for each word in the source text.
Type: objectProperties: 5
Machine-LearningNatural Language ProcessingNLPText Analysis
SyntaxToken is a JSON Structure definition published by Amazon Comprehend, describing 5 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.
{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/amazon-comprehend/refs/heads/main/json-structure/openapi.yml-syntax-token-structure.json",
"name": "SyntaxToken",
"description": "Represents a work in the input text that was recognized and assigned a part of speech. There is one syntax token record for each word in the source text.",
"type": "object",
"properties": {
"TokenId": {
"allOf": [
{
"$ref": "#/components/schemas/Integer"
},
{
"description": "A unique identifier for a token."
}
]
},
"Text": {
"allOf": [
{
"$ref": "#/components/schemas/String"
},
{
"description": "The word that was recognized in the source text."
}
]
},
"BeginOffset": {
"allOf": [
{
"$ref": "#/components/schemas/Integer"
},
{
"description": "The zero-based offset from the beginning of the source text to the first character in the word."
}
]
},
"EndOffset": {
"allOf": [
{
"$ref": "#/components/schemas/Integer"
},
{
"description": "The zero-based offset from the beginning of the source text to the last character in the word."
}
]
},
"PartOfSpeech": {
"allOf": [
{
"$ref": "#/components/schemas/PartOfSpeechTag"
},
{
"description": "Provides the part of speech label and the confidence level that Amazon Comprehend has that the part of speech was correctly identified. For more information, see <a href=\"https://docs.aws.amazon.com/comprehend/latest/dg/how-syntax.html\">Syntax</a> in the Comprehend Developer Guide. "
}
]
}
}
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.