Does a custom translator model work in both directions or do you have to train two models?

Kenefick, Andrew 0 Reputation points
2024-09-04T16:40:00.2933333+00:00

For example, would an English to French model also work for French to English or do you have to train a separate model.

Azure Translator
Azure Translator
An Azure service to easily conduct machine translation with a simple REST API call.
412 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. navba-MSFT 24,985 Reputation points Microsoft Employee
    2024-10-08T04:53:38.8066667+00:00

    @Kenefick, Andrew Apologies for the confusion. The above snippet from our learn documentation was confusing. So, I have moved the previous response as a comment. I am also discussing this internally to see if the documentation can be improved.

    .

    As your rightly pointed out. You would need to train a separate model for the reverse translation.

    When you create a custom translator model in Azure, it typically works in one direction. So, an English to French model would not automatically work for French to English.

    .

    This is because translation models are optimized for the specific nuances and context of the source and target languages in one direction. Training separate models ensures higher accuracy and better performance for each translation direction.

    .

    The documentation is highlighting that you can use the same set of parallel documents to train both directions of translation, but you still need to create two separate models: one for English to French and another for French to English.

    Here’s a bit more detail:

    • Parallel Documents: These are pairs of documents where one is the translation of the other. They can be used to train translation models in either direction.
    • Training Models: When you train a model, you specify which language is the source and which is the target. For English to French, English is the source and French is the target. For French to English, French is the source and English is the target.

    So, while the same parallel documents can be used for both directions, you need to train two distinct models to handle each translation direction effectively.

    I hope this clears things up!

    **

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.