Skip to content

AchinthaShiran/azure_translate_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nodejs Backend for Azure Translate

Nothing much, just the nodejs code for the Microsoft Azure Translate API

Sample Request

POST /api

curl -X POST \
http://localhost:3001/api \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'postman-token: c29bd064-7243-a3d9-0751-80xxxxxxxxxx' \
-d '{
 "data" : [
  {
    "text":"Hello"
  },
  {
    "text":"bye"
  }
 ],
 "targetLanguages":["fr","it"],
 "sourceLanguage":"en",
 "key":"1981721xxxxxxxxxxxxxxxxxxxxxxxxx",
 "location":"Global"
}'

Sample Response

[
"Bonjour",
"Ciao",
"au revoir",
"arrivederci"
]

Check out the dashboard for text data augmentation using back translation from here 👈(゚ヮ゚👈)

Demo

(👉゚ヮ゚)👉 Click to see the demo

Releases

No releases published

Packages

No packages published