Apertium MT Connector

From Okapi Framework
Jump to navigation Jump to search

Overview

Warning: It seems that the Apertium API used by this connector has been discontinued. See http://wiki.apertium.org/wiki/Old_Apertium_web_service for more details.

Apertium is an open-source Rule-based MT project. It provides translation for many language pairs, including for less-common languages such as Catalan, Galician, Welsh, Esperanto, Nynorsk, Occitan, etc. You can find more information about Apertium here: http://wiki.apertium.org.

The connector uses the JSONP REST API described here: http://wiki.apertium.org/wiki/Apertium_web_service.

Parameters

Server URL — The URL for the server the connector should use. The default is the one for the main Apertium server http://api.apertium.org/json/translate. Note that you can set up your own local Apertium server as well and use it with the conector.

API key — The optional API key you may want to use. Using an API key is highly recommended. See the Apertium Web Service register page for details and to register one.

Timeout — The optional timeout (in seconds) after which the connector stops trying to access the remote resource. Use 0 for the default system timeout.

Example of a configuration file:

#v1
server=http://api.apertium.org/json/translate
apiKey=myApiKey
timeout.i=0

Limitations

None known.