Elucid Language Translation Engine Quick Start
This is a quick start to get you up and running with Elucid Language Translation Engine fast and painless.
Getting Elucid Language Translation Engine
Elucid is available on the AWS Marketplace, Azure Marketplace, and as a docker image.
First install Docker if you haven’t already. Once done, run the following commands to start Renku.
docker run -p 8050:8050 -it mtnfog/elucid:1.0.0
Configuring Elucid Language Translation Engine
To use Elucid Language Translation Engine you must download an Apache Josh Language Pack. The language packs determine how the input text will be translated. Download the desired language pack and extract it. Modify /opt/elucid/elucid.properties to set the value of language.pack.path to the full path to where the language pack was extracted. An example:
Now start Elucid Language Translation Engine:
sudo service elucid start
Once the service has started you can being sending text to Elucid for translation.
Interacting with Elucid Language Translation Engine
Open a console and run the following command:
curl http://localhost:8050/api/translate -d "Translate this text please." -H "Content-Type: text/plain"
This sends a request to Elucid to translate the input English text. The target language is determined by Elucid’s configuration. If you launched Elucid from the AWS or Azure marketplaces you will need to substitute localhost with the public IP address of the virtual machine. The response from Elucid will contain the translated text as a JSON string:
"This is the translated text."
The NLP Building Blocks Java SDK can be used to create NLP pipelines and to integrate Elucid in your existing NLP pipeline.