[ / / / / / / / / / / / / / ] [ dir / animu / ausneets / cafechan / kc / leftpol / sw / vg / webmcams ][Options][ watchlist ]

/prog/ - Programming

Programming board
You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Name
Email
Subject
Comment *
File
Select/drop/paste files here
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

[–]

000000 (1) No.5019[Watch Thread][Show All Posts]

Would appreciate some help stress testing our service with MS Azure language analytics.

API Key and example code below for any tinkerers out there.

In B4 not your personal army


payload = {}
payload_sublevel = [{'id': id, 'text': text}]
payload['documents'] = payload_sublevel

url = "https://westeurope.api.cognitive.microsoft.com/text/analytics/v2.0/languages"

headers = {
'ocp-apim-subscription-key': "830fba7b90da4d9dafc90ee8f6791cab",
'content-type': "application/json",
'accept': "application/json",
}

response = requests.request("POST", url, data=json.dumps(payload), headers=headers)
return json.loads(response.text)



[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
0 replies | 0 images | 1 UIDs | Page ???
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / animu / ausneets / cafechan / kc / leftpol / sw / vg / webmcams ][ watchlist ]