Install Moses CAT Server

The computer aided translation (CAT) server communicates with the machine translation server to provide services to the CASMACAT Workbench

Install

The CAT server is available at the following Git repository:

 cd /opt/casmacat
 git clone git://github.com/hsamand/casmacat-cat-server.git cat-server

This directory contains the binary "predict". If this binary does not work on your platform, you can compile it from source:

 g++ main.cpp -o predict

Configure

Currently, the CAT server is set up to only serve one language pair (and system). It calls the MT server with a HTTP request.

You can run the CAT server by specifying the port it itself is listening to:

 ./cat-server.py --port 9997 --mt-port 9999 --mt-host www.casmacat.eu

This points to Edinburgh's example MT server. How to set up for own MT server is described on the next page.

Test

If you want to test, if your CAT server works, without also setting up a machine translation server, you can again use the server that runs at the University of Edinburgh.

First, edit inc/config.ini in the web-server installation to point to your own CAT server:

 itpserver = "127.0.0.1:9997"

Start your CAT server (see command above), reload the web page of the workbench and check if everything still works.

Next: Install the Moses Machine Translation Server