You make a Text Analytics API call.
You call the following URL.
You send the following 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.
1. The text fragment that has ID 1 is identified as English.
2. US is a valid value for countryHint.
3. The document that has countryHint=UK does not generate a billable transaction.
4. UK is a valid value for name.
5. The document that has countryHint=US does not generate a billable transaction.
You make a Text Analytics API call.
You call the following URL.
You send the following 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.
1. The text fragment that has ID 1 is identified as English.
2. US is a valid value for countryHint.
3. The document that has countryHint=UK does not generate a billable transaction.
4. UK is a valid value for name.
5. The document that has countryHint=US does not generate a billable transaction.