Skip to content

DetectSyntaxResponse

Source code in docs_src/capo_comprehend/types/detect_syntax_response.py
class DetectSyntaxResponse(TypedDict, closed=True):
    syntax_tokens: NotRequired[
        "capo_comprehend.types.list_of_syntax_tokens.ListOfSyntaxTokens"
    ]
    """<p>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 <a href="https://docs.aws.amazon.com/comprehend/latest/dg/how-syntax.html">Syntax</a> in the Comprehend Developer Guide. </p>"""

syntax_tokens instance-attribute

syntax_tokens: NotRequired[ListOfSyntaxTokens]

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