Nothing much, just the nodejs code for the Microsoft Azure Translate API
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"
}'
[
"Bonjour",
"Ciao",
"au revoir",
"arrivederci"
]
Check out the dashboard for text data augmentation using back translation from here 👈(゚ヮ゚👈)
(👉゚ヮ゚)👉 Click to see the demo