GithubHelp home page GithubHelp logo

milankinen / las-docker Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 8 KB

Dockerized SeCo Language Analysis Services

License: MIT License

Shell 100.00%
docker dockerfile language-modeling nlp seco rest-api

las-docker's Introduction

Dockerized SeCo Language Analysis Services

This repository contains a dockerized version of the great SeCo Language Analysis Services Play application. The pre-built image is also available in Docker Hub.

Quick usage

$ docker run --rm -p 19990:9000 -t -i milankinen/seco-las 
# "dockerhost" hostname alias points to your docker host machine's address
$ curl 'http://dockerhost:19990/las/baseform?text=Terve+maailmaan!&locale=fi'
# =>
# "terve maailma !"

Memory configuration

By default, the application uses 2G memory which is the absolute minimum requirement - smaller amounts cause OutOfMemoryError exceptions due to big sizes of the used models.

Memory can be configured by using LAS_MEMORY environment variable. The value is integer describing Java process memory in megabytes, e.g

$ docker run --rm -e LAS_MEMORY=4096 -p 19990:9000 -t -i milankinen/seco-las 

API

See the official documentation.

License

The dockerfile and build files are licensed under MIT

However, note that the dependencies inside the container have different licenses:

Dependency License
seco-lexicalanalysis and seco-lexicalanalysis-play MIT
seco-hfst Apache-2.0
HFST models GPLv3
mate-tools GPLv3
marmot GPLv3

las-docker's People

Contributors

milankinen avatar

Watchers

 avatar

las-docker's Issues

Morphological Analysis

Thanks for the excellent package.

Everything works well regarding the lemmatization but I noticed a problem when trying to do
Morphological Analysis according to the samples found from "http://demo.seco.tkk.fi/las/".

When I try to do morphological analysis through the service it works fine with English and German text but with the example in Finnish language returns error.

Example in Finnish: http://192.168.80.139:19990/las/analyze?text=Albert+osti&locale=fi&forms=V+N+Nom+Sg&forms=N+Nom+Pl

Service works well with English and German language input: http://192.168.80.139:19990/las/analyze?text=Bier+bitte

Have you encountered this problem with the package? Error message is below.

[error] application -

! @77i2c79m6 - Internal server error, for (GET) [/las/analyze?text=Albert+osti&locale=fi&forms=V+N+Nom+Sg&forms=N+Nom+Pl] ->

play.api.Application$$anon$1: Execution exception[[NullPointerException: null]]
at play.api.Application$class.handleError(Application.scala:296) ~[com.typesafe.play.play_2.11-2.3.8.jar:2.3.8]
at play.api.DefaultApplication.handleError(Application.scala:402) [com.typesafe.play.play_2.11-2.3.8.jar:2.3.8]
at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$14$$anonfun$apply$1.applyOrElse(PlayDefaultUpstreamHandler.scala:205) [com.typesafe.play.play_2.11-2.3.8.jar:2.3.8]
at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$14$$anonfun$apply$1.applyOrElse(PlayDefaultUpstreamHandler.scala:202) [com.typesafe.play.play_2.11-2.3.8.jar:2.3.8]
at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:36) [org.scala-lang.scala-library-2.11.8.jar:na]
Caused by: java.lang.NullPointerException: null
at is2.parser.Parser.parse(Parser.java:480) ~[is2.anna-3.6.jar:na]
at fi.seco.lexical.combined.CombinedLexicalAnalysisService.analyze(CombinedLexicalAnalysisService.java:512) ~[fi.seco.lexicalanalysis-1.5.4.jar:na]
at controllers.LexicalAnalysisController.analyze(LexicalAnalysisController.scala:249) ~[lexicalanalysis-play.lexicalanalysis-play-1.1.jar:1.1]
at controllers.LexicalAnalysisController$$anonfun$analyzeGET$1.apply(LexicalAnalysisController.scala:262) ~[lexicalanalysis-play.lexicalanalysis-play-1.1.jar:1.1]
at controllers.LexicalAnalysisController$$anonfun$analyzeGET$1.apply(LexicalAnalysisController.scala:260) ~[lexicalanalysis-play.lexicalanalysis-play-1.1.jar:1.1]

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.