amazonka-comprehend-2.0: Amazon Comprehend SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Comprehend.DetectSyntax

Description

Inspects text for syntax and the part of speech of words in the document. For more information, see Syntax in the Comprehend Developer Guide.

Synopsis

Creating a Request

data DetectSyntax Source #

See: newDetectSyntax smart constructor.

Constructors

DetectSyntax' 

Fields

  • text :: Sensitive Text

    A UTF-8 string. The maximum string size is 5 KB.

  • languageCode :: SyntaxLanguageCode

    The language code of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").

Instances

Instances details
ToJSON DetectSyntax Source # 
Instance details

Defined in Amazonka.Comprehend.DetectSyntax

ToHeaders DetectSyntax Source # 
Instance details

Defined in Amazonka.Comprehend.DetectSyntax

ToPath DetectSyntax Source # 
Instance details

Defined in Amazonka.Comprehend.DetectSyntax

ToQuery DetectSyntax Source # 
Instance details

Defined in Amazonka.Comprehend.DetectSyntax

AWSRequest DetectSyntax Source # 
Instance details

Defined in Amazonka.Comprehend.DetectSyntax

Associated Types

type AWSResponse DetectSyntax #

Generic DetectSyntax Source # 
Instance details

Defined in Amazonka.Comprehend.DetectSyntax

Associated Types

type Rep DetectSyntax :: Type -> Type #

Show DetectSyntax Source # 
Instance details

Defined in Amazonka.Comprehend.DetectSyntax

NFData DetectSyntax Source # 
Instance details

Defined in Amazonka.Comprehend.DetectSyntax

Methods

rnf :: DetectSyntax -> () #

Eq DetectSyntax Source # 
Instance details

Defined in Amazonka.Comprehend.DetectSyntax

Hashable DetectSyntax Source # 
Instance details

Defined in Amazonka.Comprehend.DetectSyntax

type AWSResponse DetectSyntax Source # 
Instance details

Defined in Amazonka.Comprehend.DetectSyntax

type Rep DetectSyntax Source # 
Instance details

Defined in Amazonka.Comprehend.DetectSyntax

type Rep DetectSyntax = D1 ('MetaData "DetectSyntax" "Amazonka.Comprehend.DetectSyntax" "amazonka-comprehend-2.0-Ko6GCjAQF2RARapSdPn69F" 'False) (C1 ('MetaCons "DetectSyntax'" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)) :*: S1 ('MetaSel ('Just "languageCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SyntaxLanguageCode)))

newDetectSyntax Source #

Create a value of DetectSyntax with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

DetectSyntax, detectSyntax_text - A UTF-8 string. The maximum string size is 5 KB.

DetectSyntax, detectSyntax_languageCode - The language code of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").

Request Lenses

detectSyntax_text :: Lens' DetectSyntax Text Source #

A UTF-8 string. The maximum string size is 5 KB.

detectSyntax_languageCode :: Lens' DetectSyntax SyntaxLanguageCode Source #

The language code of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").

Destructuring the Response

data DetectSyntaxResponse Source #

See: newDetectSyntaxResponse smart constructor.

Constructors

DetectSyntaxResponse' 

Fields

  • syntaxTokens :: Maybe [SyntaxToken]

    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.

  • httpStatus :: Int

    The response's http status code.

newDetectSyntaxResponse Source #

Create a value of DetectSyntaxResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

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

$sel:httpStatus:DetectSyntaxResponse', detectSyntaxResponse_httpStatus - The response's http status code.

Response Lenses

detectSyntaxResponse_syntaxTokens :: Lens' DetectSyntaxResponse (Maybe [SyntaxToken]) Source #

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.