Help:Content translation/Translating/Initial machine translation

When adding a new paragraph to the translation you can start from scratch or use an automatic translation as a starting point.

When available, machine translation is used by default as an initial translation.

The different options, the details about their availability, and the considerations when using machine translation are described below.

Options for the initial translation
The "initial translation" options in the tools column allow you to decide the initial content to use as a starting point for each paragraph.

The options available are the following:


 * Use a machine translation service. This allows you to start with an automatically translated version of the original paragraph. The number and name of these options will vary.  Options such as "Use Apertium" or "Use Yandex" will be available depending on the supported languages for these services (more on this on the next section).


 * Copy original content. The original paragraph will be copied over into the translation. Although content will remain in the original language, some elements are adapted to the target wiki.  for example, links will point to the corresponding article in the target language, and templates will be converted into the equivalent ones.  Translators still have to rewrite the content completely, but the adapted elements may be easier to reuse.


 * Start with an empty paragraph. Starting with an empty paragraph can be useful in cases where the alternative content requires more work than just typing it.

You can quickly switch between the different approaches independently on each paragraph, since each one may work best on different kinds of content.

Switching between the different approaches preserves the changes you made on the paragraph.

In this way, you can try a different approach even if you started editing the original one without the fear to lose your changes if you finally decide to go back to the original approach.

Two additional options are relevant in this context:


 * The reset translation option is available when you made modifications on the initial content provided. It allows to restore the initial content by discarding the changes you made.

This can be very convenient if you found that a particular translation service works generally better than the default one.
 * The mark as default option is available when you select an approach for a paragraph that is not the default. It allows to set the default approach for the next paragraphs that are added to the translation.

Machine translation availability
Content translation integrates several translation services, and each service support a different set of languages.

The services supported are listed below with a link to the list of languages they support:


 * Apertium ( languages supported )
 * OpusMT ( languages supported )
 * LingoCloud ( languages supported )
 * Matxin ( languages supported )
 * Google Translate ( languages supported )
 * Yandex ( languages supported )
 * Youdao ( languages supported )

The list of languages above point to the configuration code to make sure that the information is in sync with the way the tool currently works.

The list show the language code for the source language at the initial indentation level and the codes of all the supported target languages below it.

Language enablement is done in a gradual way based on the observed results and the community feedback.

It is possible that machine translation has not been enabled yet, even if they are supported by the underlying services.

Improving existing translation services
When you publish a translation with Content Translation you are already helping translation services to improve. All the corrections you make to the initial machine translations are [https://www.mediawiki.org/wiki/Content_translation/Published_translations exposed through an API and data dumps] and can be potentially used to improve existing services. In addition to that, some of the translation services listed above provide specific ways you can contribute to their projects.

OpusMT
[http://opus.nlpl.eu/ OpusMT] is an open source neural machine translation system that is trained with multilingual documents freely licensed available online. This open corpus is used to train the translation system, and expanding the corpus will lead to better translations. The contents generated by using Content Translation are [http://opus.nlpl.eu/wikimedia.php integrated automatically in the corpus], but you can contribute to expand the corpus further:

OpusMT is based on [https://marian-nmt.github.io/ MarianNMT] which is also an open source project. People with technical knowledge and interested in machine learning can also contribute to improve it.
 * Propose new sources to be integrated in the open corpus. You can contact [https://researchportal.helsinki.fi/en/persons/j%C3%B6rg-tiedemann Jörg Tiedemann] to propose a new data source to expand the corpus.
 * [https://opus-repository.ling.helsinki.fi Submit documents directly] (still a preliminary prototype). You can upload translated documents in various formats including translated webpages to be incorporated to the corpus.

Apertium
[https://www.apertium.org/ Apertium] is an open source rule-based translation system. You can contribute to the project by encoding the language rules of your language. This process requires both linguistic and advanced technical knowledge, but you can get support from the Apertium team to expand the translation support for a new language pair.

Google Translate
Google Translate is not an open source project, but there are still ways for users to contribute back:
 * Join [https://translate.google.com/community the Google Translate Community] to provide translations that help train their system.
 * [<tvar|gglt2>https://issuetracker.google.com/issues?q=componentid:187144%20status:open</> Report bugs] when the translation system shows unexpected behavior when dealing with certain elements such as [<tvar|gglt3>https://issuetracker.google.com/issues/119256504</> spacing] or [<tvar|gglt4>https://issuetracker.google.com/issues/149630958</> end of sentence marks] ([<tvar|gglt5>https://issuetracker.google.com/issues?q=componentid:187144%20status:open</> view full list]).

Expanding the language support with new translation services
Content translation has been designed as an extensible platform.

So it is possible to 1>Special:MyLanguage/Content translation/Machine Translation/MT Clients</>|develop new clients to integrate additional translation services.

Some considerations about the way translation services are integrated:


 * Machine translations and the user corrections made are publicly as part of 1>Special:MyLanguage/Content translation/Published translations</>|the data on published translations, which can provide a useful resource to create or improve your translation service.

No personal information is shared with the translation services.
 * External services integrated only receive publicly available wiki content, and return a translated version of such content that is compatible with the licenses used in the wiki.

Feedback on the support provided for each language is very useful.

Please, let us know if you are missing support for some language, or whether higher quality options are available for it.

You can provide such feedback 1>Talk:Content translation</>|on the project talk page or 2>phab:T86700</>|in this ticket.

Considerations on machine translation
Machine translation is far from perfect when intended as a final outcome.

However, many users find it very useful as a starting point.

Please make sure to review the content from these different perspectives:


 * Make sure the original meaning is preserved.


 * Check that there is no information missing, especially for elements such as links, references and templates that include information that is not always visible on the surface.


 * Read the translated content to make sure it reads natural as an independent page.

Limitations with complex elements
In some cases the content may not appear in the translation as expected:

===<span class="mw-headline" id="Enforcing_the_review_of_machine_translation">Enforcing the review of machine translation [ edit ]  ===
 * Some of the services supported only work with plain text.

Several automatic mechanisms exist to 1>Special:MyLanguage/Help:Content translation/Translating/Translation quality</>|enforce the review of the initial contents.

In this way, the tool makes sure that the initial automatic translation is reviewed enough before the contents get published.