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

已提问 2 个月前78 查看次数
1 回答
0
已接受的回答

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
已回答 2 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则