Giter Site home page Giter Site logo

rest-language-detect's Introduction

Rest language detect

A very small rest Java web server that easily allows you to detect the language of any given text.

curl --data "The secret of life is not to do what you like, but to like what you do" http://localhost:8811/

(gives you en)

curl --data "A curiosidade matou o gato" http://localhost:8811/

(gives you pt)

curl --data "Cattivo bastone non fa buon cane" http://localhost:8811/

(gives you it)

Usage

Launch the web server with:

java -jar target/RestLanguageDetect-1.0-SNAPSHOT-jar-with-dependencies.jar resources/profiles [port] [host]

Port and host are optional and will default to 8811 and localhost if skipped.

resources/profiles is the path where the profiles files are located. It's a mandatory argument so be sure to provide the correct path.

Build

If you want to make changes in the code base and build it again you need to use maven:

mvn clean compile assembly:single

This command will build you a self contained jar file for the server.

Stability and contributions

This is just an experimental projects that is not ready to be run in production (yet!). If you find it useful feel free to improve it and send pull requests. It would be really cool!

License

Distributed under MIT license

rest-language-detect's People

Stargazers

Luciano Mammino avatar  avatar

Watchers

Luciano Mammino avatar  avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.