Google Cloud Translation Advanced plugin settings

Google Machine Translation Advanced (or Google Translate API v3) can do everything the Basic API can, but also allows usage of glossaries and custom MT models that can be quickly trained with the AutoML (Automated Machine Learning) feature.

The Google Cloud plugin will now use neural machine translation if it is available in your language combination. In some cases, neural machine translation can be much more fluent and human-like than statistical machine translation. To learn which language pairs are available for neural machine translation, see this web page.

Requires an extra .dll:  Because of this, the new Google Cloud Translation Advanced plugin only works with memoQ and memoQ server 9.7 or newer.

How to get here

For a local profile:

  1. At the top of the memoQ window, in the Quick Access toolbar, click the Options quick-access-options icon. The Options window opens.
  2. On the Default resources pane, click the MT settings mt-icon icon. The MT settings pane appears.
  3. Select the MT profile you are using and under the list, click Edit.
  4. On the Services tab, find the plugin and click its row. If it is turned on, click its row to open the Google Cloud Translation Advanced plugin settings window. If it is turned off, click its row once to turn it on, then click it again to open the settings.

For an online profile:

  1. At the top of the memoQ window, in the Quick Access toolbar, click the Resource console icon-resconsole icon. The Resource console window opens.
  2. In the Server URL list, choose or type the server's address. Click the Select icon-select button.
  3. In the left-side pane, click the MT settings mt-icon icon. The MT settings pane appears.
  4. Select the MT profile you are using and under the list, click Edit.
  5. On the Services tab, find the plugin and click its row. If it is turned on, click its row to open the Google Cloud Translation Advanced plugin settings window. If it is turned off, click its row once to turn it on, then click it again to open the settings.

google-cloud-advanced

What can you do?

Authentication

  1. Get your authentication file. To learn how, see the Cloud Translation guide. At the end, you will have a .json file of a valid service account.
  2. Under Authentication, click the Browse button, and find the .json file that you received.
  3. memoQ signs in with the information in the .json file. If you see an Authentication successful message, you are ready. If the file is invalid, you will receive an error message.

Set up automated machine learning

  1. Under Custom models, from the dropdown, select a MT model for each language pair. If you don't choose, Google will use the general model.
  2. Under Glossary, from the dropdown, select a glossary if needed.

Handle formatting and tags

  • Normally, when memoQ sends text to Google, the tags are not sent. The translation you get back from Google will not contain any tags. memoQ will insert all the tags at the end of the machine-translated text. Choose how to handle tags with the Formatting and lookup dropdown:

    • To use no formatting and no tags: Choose Use plain text only.
    • To use formatting but use no tags: Choose Use text and formatting.
    • To use both formatting and tags: Choose Use both formattings and tags.

    To leave the tags out altogether, clear the Insert required tags at the end of the translation check box.

    Do not send sensitive text to Google: Type a regular expression in the Do not translate segments that match the following regex box. If a segment has text that matches the regular expression, memoQ will not send that segment to the Google MT service. For example, if you do not want to send segments that contain dollar amounts, write USD [0-9]+ or \$ [0-9]+ in this text box.

    If you send tags to Google, choose the format: XML or HTML. MT services sometimes have problems with tags. Try both options, and see which one works better for your language pairs.

    Different settings work better for some language pairs? On the Resource Console, clone your MT settings, and in the cloned one, choose the other option from the Request format dropdown. You now have two MT settings resources, and can use the best one for each project.

  • When you finish

    To save the settings, and return to the Default resources tab of the Options window (or to the Resource console): Click OK, then click OK again.

    To return to the Default resources tab of the Options window (or to the Resource console), but not save the new settings: Click Cancel, then click Cancel again.

    To use the MT output in the translation editor:

    1. Open a project with a supported language pair.
    2. On the left side of the Project home or memoQ online project screen, click Settings.
    3. In the top bar, click the MT settings  icon.
    4. Choose the MT profile in the project, or one you want to add to the project. Below the list, click Edit.
    5. On the Services tab of the Edit machine translation settings window, check the plugin's check box on the left.
    6. On the Settings tab of the Edit machine translation settings window, in the Translation results area, choose a setting other than Off.
    7. Open a document for editing, and see the machine-translated suggestions.

    To use the MT output in pre-translation:

    1. Open a project with a supported language pair.
    2. On the left side of the Project home or memoQ online project screen, click Settings.
    3. In the top bar, click the MT settings  icon.
    4. Choose the MT settings resource in the project, or one you want to add to the project. Below the list, click Edit.
    5. On the Services tab of the Edit machine translation settings window, check the plugin's check box on the left.
    6. On the Settings tab of the Edit machine translation settings window, select the plugin from the Pre-translation dropdown.
    7. Run Pre-translate. In the Pre-translate and statistics window, check the Use machine translation if there is no TM match check box. (memoQ will remember this.)