Comprehend Entities language

0

Hello,

In Java AWS SDK is there mandatory the language parameter when Comprehend.getEntities is invoked ?
If language is not specified, will Comprehend.Entities detect the language, or which will be the behaviour ?

Thank you,
Mihai ADAM

asked 2 months ago68 views
1 Answer
0
Accepted Answer

Language must be specified when using the pretrained model.

aws comprehend detect-entities --text "hello"

An error occurred (ValidationException) when calling the DetectEntities operation: Value 'null' at 'languageCode'failed to satisfy constraint: Member must satisfy enum value set: [ar, hi, ko, zh-TW, zh, ja, en, de, it, fr, pt, es]

If using your own custom model, the language will be detected from the custom model.

AWS
answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions