ibm-cloud-docs / natural-language-understanding

natural-language-understanding
22 stars 36 forks source link

Error Code 422 #68

Closed gracelegrand closed 4 years ago

gracelegrand commented 4 years ago

Receiving Error Code 422 stating there is not enough text for language id. I am unable to detect which part of the API feature this refers to due to this error and I cannot find documentation on the minimum amount of words allowed for the NLU API.

Screen Shot 2020-04-27 at 8 57 00 AM
SirSpidey commented 4 years ago

@gracelegrand See the troubleshooting topic

The automatic language detection might not be accurate for text that contains fewer than 100 characters. If the service doesn't detect the correct language of your text, you can override automatic language detection.

So try specifying the language in your request. You can see information for various programming languages at https://cloud.ibm.com/apidocs/natural-language-understanding#analyze-text