Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

102
Vistas
LanguageTool Java app running as a systemd service. `--languagemodel` argument is ignored

I have downloaded the LanguageTool server. I have created a systemd process for the app to ensure that it can be easily managed and begins on startup:

Systemd

[Unit]
Description=LanguageTool Service

[Service]
WorkingDirectory=/opt/languagetool
ExecStart=/usr/bin/java -cp /usr/local/LangAnalysisApp/LangTool/LanguageTool-4.9/languagetool-server.jar org.languagetool.server.HTTPServer --port 8081 --languagemodel /mnt/languagetool-volume/languagetool-ngrams --allow-origin '*'
StandardOutput=syslog+console+/var/log/languagetool.log
StandardError=syslog+console+/var/log/languagetool.log
User=www-data
Type=simple
Restart=on-failure
RestartSec=10

[Install]
WantedBy=multi-user.target

The port is exposed via nginx as follows:

NGINX

server {
    listen 80;
    server_name my.domain.com;
    root /var/www/my.domain.com/public_html;

    index index.html;

    charset utf-8;

    access_log off;
    error_log  /var/log/nginx/my.domain.com-error.log error;

    location /v2/check {
        proxy_pass http://localhost:8081/v2/check;
    }

}

The --languagemodel option is ignored. If I type it improperly, then I see errors. The argument in the process file does not throw any errors, so it must be recognised by the system. The test n-grams displayed here do not return any results, though, so I know it's not loading properly.

I would like to know how to make the --languagemodel option work with systemd.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

First, the capitalisation was important. The --languageModel option is only recognised by systemd when written in camel case.

Second, the error was not any fault of my own, but resulted from a bug within the current version of LanguageTool. A fix is mentioned here. Using a snapshot of version 5.0 fixes the error. External n-grams are now used to generate results. The version 4.9.1 is due to be released within the next few days and contains a fix for the bug.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda