Introduction
This procedure explains how to download and install filter and translation resources when the STS10 server is not connected to the Internet.
Procedure
This procedure is for a NMT translation resource, but it is the same procedure for Hybrid, SPE or SMT models. The example below concerns a EN>FR Generic (L) NMT engine in a STS 10.1.0 server.
3 steps are required to activate languages on your SYSTRAN server:
1) Download resources
2) Import resources on your SYSTRAN Server
3) Activate resources on your SYSTRAN Server
1) Download resources
First of all, ask SYSTRAN support to give you the Dropbox links to download the TR and filter packages. You need to give below information:
- the OS you have (RHEL 7, 8 or 9)
- the TR you want (by default they give the latest version, if you want a specific version you need to specify it) along with filter (if you do have it or need a new version)
Then they will send you all the Dropbox links for you to download them. We can give the SHA checksums if needed.
2) Import resources on your SYSTRAN Server
2.1 Copy downloaded package to your SYSTRAN server
mkdir Translation_Resources
cd /Translation_Resources
wget www.dropboxlink.com
Once downloaded, unzip or untar in the same folder/directory (Linux):
tar -xvf kit_name.tar
You will have .json and .tar.gz files.
2.2) Import on Linux
To import all the downloaded Translation Resources, please go to your server. Then execute the following:
su -c "node /opt/systran/apps-node/translation-resource-store/trs-local-import-directory.js -d /Path/Where/is/Translation_Resources/" systran
The command should display a “success” per each language.
This phase can take a few minutes depending on the numbers of languages that are to be imported.
Check if ownership of the files in /opt/systran/apps-node/translation-resource-store/file-backend-storage is systran. If not, do:
chown systran:systran /opt/systran/apps-node/translation-resource-store/file-backend-storage/*
3) Activate resources on your SYSTRAN Server
Go to your server’s SYSTRAN URL and connect to the interface with admin rights.
Go to the Menu and click on "Translation Resources":
3.1) Activation of the filter
The filter resource is a mandatory resource to import, because it is a component used to translate text and files.
To install the filter, you must create a dedicated route by clicking on the "Add route" option as shown below:
On the pop-up screen, set the Public option to "Yes" then click on "Confirm".
Note: Depending on the usage, kindly select public or private route. It is highly recommended to add a public route for the filter usage.
3.2) Activation of the TR
Select the translation resource that you want to install (always prefer the resources containing “NMT” when available).
Click on the pen (right side) then change the instance number from 0 to 1, and hit “ENTER” on your keyboard to do the instanciation.
The TR will be "running", then you can create a profile:
You can also create profiles from the Profiles section:
Finally your profile will be visible on the Profiles section, with "running" status. This means you can use it to translate:
You should be able to translate from now.