- Custom Translator
This code is provided for demo purposes only for course AI-102.
- Azure Subscription
- Cognitive Services: Translator
- Postman tool
-
Find or Build new
Cognitive services: Translator
to copy Key and region from it. -
Open custom translator portal and sign in with your azure subscription account.
-
Create new project named
COVID
withlanguage Pair
English to French andCategory
Healthcare -
Upload documents by providing parallel pairs in English and French. Documents with the same content and name can be found in folder EN and FR. Each uploaded pair will give you a number of
English Sentences
andFrench Sentences
. You have to upload documents for at least 10k of sentences in the target language. -
When you click on the document name in the list you can observe EN and FR sentences and check the translation.
-
Start training process and be aware that each training will consume credits from your subscription.
-
Publish your model and copy the model's Category ID.
-
Open file translator.postman_collection.json and update subscription and region of all requests according to the key of your translation service. Then update category id with the value you copied from the custom translator.
-
Import file
translator.postman_collection.json
in postman. Execute queries one by one and compare a result of translation.
For testing sentences you can use files from Test folder.