You can add a Glossary to the ModernMT custom model and use it via Custom.MT platform.
The MT model on the ModernMT server should be prepared beforehand by importing the TMX file. 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.
API call
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.