Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems running server #8

Open
bluekite2000 opened this issue Aug 28, 2014 · 1 comment
Open

Problems running server #8

bluekite2000 opened this issue Aug 28, 2014 · 1 comment

Comments

@bluekite2000
Copy link

When I run
java -Xmx1g -jar server/target/stanbol-stanfordnlp-server-1.1.0-SNAPSHOT-jar-with-dependencies.jar -p 8082
I get
http://pastebin.com/PKqve3wX

When I run
java -Xmx1g -jar server-int/target/stanbol-stanfordnlp-server-int-1.1.0-SNAPSHOT-jar-with-dependencies.jar -p 8082

I get
http://pastebin.com/f8fbcLN5

Also once the server is up, what is the command to query it? I need to parse this sentence "John gives a bike to james" using stanford parser http://nlp.stanford.edu:8080/parser/index.jsp

@westei
Copy link
Owner

westei commented Aug 29, 2014

When you start the server the first time it will create a "./config" directory. In case of the "stanbol-stanfordnlp-server" server this will contain the "en.pipeline" file.

The first error suggests that this directory also contains a "ar.pipeline" file. However the "stanbol-stanfordnlp-server" can not support languages that do require segmentors as the required classes are not packed. So if there is a "ar.pipeline" or "zh.pipeline" file in this directory please delete it (or use the "stanbol-stanfordnlp-server-int" instead).

The 2nd error is simple because the international server requires more as 1GByte of RAM. If I remember correctly the absolute minimum is about 1.6GByte, but I would recommend to run it with at least "-Xmx1g". Its easy to know if the server needs more memory. Just search in the log for a "java.lang.OutOfMemoryError".

best
Rupert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants