5
answers
1
watching
170
views

You make a Language service API call.

You call the following URL.

 

You send the following request body.

{ "documents": [ { "id": "1", "countryHint":"US", "text": "We analyzed text to see what would happen" }, { "id": "2", "countryHint":"UK", "text": "We analysed text to see what would happen" }, ] }

You receive the following response.

{ "statistics": { "documentsCount": 2, "validDocumentsCount": 1, "erroneousDocumentsCount": 1, "transactionsCount": 1 }, "documents": [{ "id": "1", "detectedLanguages": [{ "name": "English", "iso6391Name": "en", "score": 1.0 }], "statistics": { "charactersCount": 41, "transactionsCount": 1 } }], "errors": [{ "id": "2", "message": "Country hint is not valid. Please specify an ISO 3166-1 alpha-2 two letter country code." }] }

Which three of the following statements correctly describe the code?

Select all answers that apply.

The text fragment that has ID 1 is identified as English. US is a valid value for countryHint. The document that has countryHint=UK does not generate a billable transaction. UK is a valid value for name. The document that has countryHint=US does not generate a billable transaction.

For unlimited access to Homework Help, a Homework+ subscription is required.

Unlock all answers

Get 1 free homework help answer.
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Avatar image
Read by 1 person
Already have an account? Log in

Related Documents

Weekly leaderboard

Start filling in the gaps now
Log in