SyntaxToken

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.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The zero-based offset from the beginning of the source text to the first character in the word.

Link copied to clipboard

The zero-based offset from the beginning of the source text to the last character in the word.

Link copied to clipboard

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 Syntax in the Comprehend Developer Guide.

Link copied to clipboard
val text: String?

The word that was recognized in the source text.

Link copied to clipboard
val tokenId: Int?

A unique identifier for a token.

Functions

Link copied to clipboard
inline fun copy(block: SyntaxToken.Builder.() -> Unit = {}): SyntaxToken
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String