Renku Language Detection Engine Quick Start

This is a quick start to get you up and running with Renku Language Detection Engine fast and painless. To do this, we are going to launch Renku as a docker container. If you launched Renku from the AWS Marketplace you can skip installing Docker and jump down to the example commands.

First install Docker if you haven’t already. Once done, run the following commands to start Renku.

docker run -p 7070:7070 -it mtnfog/renku:1.0.0

Once Renku has started, open a console and run the following command:

curl http://localhost:7070/api/language -d "Can you please tell me what language this text is in?" -H "Content-Type: text/plain"

This sends a request to Renku to determine the language of the given text. If you launched Renku from the AWS Marketplace you will need to substitute localhost with the public IP address of the EC2 instance. The response from Renku will look like:

{"languages":[{"eng":0.021873117585621913},{"min":0.018458373006879622},{"cmn":0.017762327284372898},{"war":0.016852477942527578},{"lat":0.015367034531920976},{"tgl":0.014883427467138843},{"vol":0.014805406662285893},{"fra":0.014518962116099134},{"ceb":0.014078592368984974},{"swa":0.013861138954434117}]}

That’s it! The response tells us that the text is English.

The NLP Building Blocks Java SDK can be used to create NLP pipelines and to integrate Renku in your existing NLP pipeline.