Giter VIP home page Giter VIP logo

docker-languagetool's Introduction

Introduction

LanguageTool is an Open Source proof­reading software for English, French, German, Polish, and more than 20 other languages.

You can use the LanguageTools with a firefox-plugin.

This is a Dockerfile to get the languagetools running on a system without java.

Usage

The Server is running on port 8010, this port should exposed.

$ docker pull silviof/docker-languagetool
[...]
$ docker run --rm -p 8010:8010 silviof/docker-languagetool

Or you run it in background via -d-option.

Run with no minimum rights and RAM

docker run --name languagetool \
                        --cap-drop=ALL \
                        --user=65534:65534 \
                        --read-only \
                        --mount type=bind,src=/tmp/languagetool/tmp,dst=/tmp \
                        -p 127.0.0.1:8010:8010 \
                        --memory 412m --memory-swap 500m \
                        -e EXTRAOPTIONS="-Xmx382M" \
                        silviof/docker-languagetool:latest

Route information can be found at https://languagetool.org/http-api/swagger-ui/#/default, an easy route to test that it's running is /v2/languages.

ngram support

To support ngrams you need an additional volume or directory mounted to the /ngrams directory. For that add a -v to the docker run-command.

docker run ... -v /path/to/ngrams:/ngrams ...

Download English ngrams with the commands:

mkdir ngrams
wget https://languagetool.org/download/ngram-data/ngrams-en-20150817.zip
(cd ngrams && unzip ../ngrams-en-20150817.zip)
rm -f ngrams-en-20150817.zip

One can use them using web browser plugin "Local server (localhost)" setting by running:

docker run -d --name languagetool -p 127.0.0.1:8081:8010 -v `pwd`/ngrams:/ngrams:ro --restart=unless-stopped silviof/docker-languagetool

docker-languagetool's People

Contributors

silvio avatar jansel avatar matt08 avatar acodinggenie avatar bene64 avatar erikvl87 avatar izissise avatar katrinleinweber avatar kevindanikowski avatar mittemi avatar mvasilenko avatar phbenisc avatar nbz4live avatar

Watchers

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.