Adding Glossaries to ModernMT model

You can add a Glossary to the ModernMT custom model and use it via Custom.MT platform.

Adding a custom ModernMT model

The MT model on the ModernMT server should be prepared beforehand by importing the TMX file.

Then you will need to add your custom ModernMT model to your account on console.custom.mt. In order to do that, go to the Credentials tab and create a new model using the Custom Engine option, select ModernMT from the drop-down list, and then add information about the model.

 

 

Once the MT model is ready, you can add a glossary as well by following the steps below. You will need to have the details on your custom ModernMT API Key and the ID of the MT model.

Adding a Glossary to the ModernMT model

ModernMT uses API calls to add the glossary. We can use Postman to do that.

First, use POST call with an address: https://api.modernmt.com/memories/”ModelID”/glossary

 

ModelID can be found in the ModernMT settings, for example.

In the Headers tab, enter the Key with the name MMT-APIKey.

Fill the Value field with your ModernMT API Key.

Switch to the Body tab and check the box form-data.

Add Keys: csv, type, tuid.
The SCV value will contain your glossary file.
The type: Equivalent
The tuid: 1

The glossary format

Add the column tuid containing the number of segments. The rest of the fields should use the default value. The format of the CSV file is UTF-8.

After pressing the Send button, your glossary will be added to your MemoryID.