Reputation: 448
Tried to narrow down the problem with Postman. I tried subscriptions in SouthCentralUS and also BrazilSouth, but it's always the same.
POST https://southcentralus.api.cognitive.microsoft.com/text/analytics/v2.0
Header: Ocp-Apim-Subscription-Key: xxx Content-Type: application/json
Body {"url":"https://www.ciclosoftware.com/wp-content/uploads/2017/02/ciclo-software.png"}
Actually I get the same result if I just put the url into the browser as a GET without headers and body. But i don't see what I'm possibly doing wrong. I even thought it could be a internal problem of Azure... ??
Upvotes: 1
Views: 2098
Reputation: 14609
What are you trying to achieve?
There are 4 methods in Text Analytics API
family:
Detect language
, for language detection. Endpoint is https://southcentralus.api.cognitive.microsoft.com/text/analytics/v2.0/languagesEntities
: the API returns a list of recognized entities in a given document. Endpoint is https://southcentralus.api.cognitive.microsoft.com/text/analytics/v2.0/entitiesKey Phrases
: The API returns a list of strings denoting the key talking points in the input text. Endpoint is https://southcentralus.api.cognitive.microsoft.com/text/analytics/v2.0/keyPhrasesSentiment
: The API returns a numeric score between 0 and 1. Endpoint is https://southcentralus.api.cognitive.microsoft.com/text/analytics/v2.0/sentimentAs you can see, none of these endpoints match the one you are trying, hence the 404 you got. Moreover, they are all waiting for Text input in a JSON, not a link like you are trying to provide.
Are you looking for an OCR capability? In that case, you should have a look to Computer Vision API
, and then you have 2 possibilities:
OCR
method, see hereRecognize Text
method, see here, currently in preview and only for English textUpvotes: 2