Text-Translation-API-V3-Python icon indicating copy to clipboard operation
Text-Translation-API-V3-Python copied to clipboard

Results 8 Text-Translation-API-V3-Python issues
Sort by recently updated
recently updated
newest added

I have next code: ``` def translate( from_lang: str, to_lang: str, texts: List[str], include_alignment: bool = True ) -> List[JSONType]: constructed_url = "https://api.cognitive.microsofttranslator.com/translate" params = { "api-version": "3.0", "from": from_lang,...

Hi When i am trying to make a post request i am getting the below error requests.exceptions.SSLError: HTTPSConnectionPool(host='api.cognitive.microsofttranslator.com', port=443): Max retries exceeded with url: /translate?api-version=3.0&to=de (Caused by SSLError(SSLEOFError(8, 'EOF occurred...

Hello, In some of the examples there is: ```python request = requests.post(constructed_url, headers=headers, json=body) response = request.json() ``` Would it be possible to rename `request` for `response` (for example): ```python...

I used the sample code, used the latest endpoint, but I keep getting this error: > raise JSONDecodeError("Expecting value", s, err.value) from None > > JSONDecodeError: Expecting value please help!

When I run the sample code with my subscription keys, I get the following error. Error : File "T.py", line 42, in output = json.dumps(json.loads(result), indent=4, ensure_ascii=False) File "/usr/lib/python3.5/json/__init__.py", line...

I am developing an web App that calls the Text Translation API. My whole project is developed in Python2.7 so I try to call the APIs in Python2.7. But I...

Faced this issue while translating from English to Indian languages like Hindi, Kannada and Tamil

There is no code sample on category model virtually nowhere (but quite a bunch of resources go into training category models) Based on this github's example, code: ``` import os,...