Closed sremiger1 closed 3 years ago
What do you see in your terminal when running docker run -e JAVA_XMX=5g -p 9000:9000 -ti nlpbox/corenlp
in your terminal?
[main] INFO CoreNLP - --- StanfordCoreNLPServer#main() called ---
[main] INFO CoreNLP - setting default constituency parser
[main] INFO CoreNLP - using SR parser: edu/stanford/nlp/models/srparser/englishSR.ser.gz
[main] INFO CoreNLP - Threads: 2
[main] INFO CoreNLP - Starting server...
[main] INFO CoreNLP - StanfordCoreNLPServer listening at /0.0.0.0:9000
[pool-1-thread-2] INFO CoreNLP - [/172.17.0.1:38720] API call w/annotators tokenize,ssplit,pos,depparse,lemma,natlog,ner,openie
Hello World
[pool-1-thread-2] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator tokenize
[pool-1-thread-2] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator ssplit
[pool-1-thread-2] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator pos
[pool-1-thread-2] INFO edu.stanford.nlp.tagger.maxent.MaxentTagger - Loading POS tagger from edu/stanford/nlp/models/pos-tagger/english-left3words/english-left3words-distsim.tagger ... done [2.1 sec].
[pool-1-thread-2] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator depparse
[pool-1-thread-2] INFO edu.stanford.nlp.parser.nndep.DependencyParser - Loading depparse model: edu/stanford/nlp/models/parser/nndep/english_UD.gz ...
[pool-1-thread-2] INFO edu.stanford.nlp.parser.nndep.Classifier - PreComputed 99996, Elapsed Time: 14.701 (s)
[pool-1-thread-2] INFO edu.stanford.nlp.parser.nndep.DependencyParser - Initializing dependency parser ... done [16.7 sec].
[pool-1-thread-2] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator lemma
[pool-1-thread-2] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator natlog
[pool-1-thread-2] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator ner
[pool-1-thread-2] INFO edu.stanford.nlp.ie.AbstractSequenceClassifier - Loading classifier from edu/stanford/nlp/models/ner/english.all.3class.distsim.crf.ser.gz ... done [3.2 sec].
[pool-1-thread-2] INFO edu.stanford.nlp.ie.AbstractSequenceClassifier - Loading classifier from edu/stanford/nlp/models/ner/english.muc.7class.distsim.crf.ser.gz ... done [2.7 sec].
[pool-1-thread-2] INFO edu.stanford.nlp.ie.AbstractSequenceClassifier - Loading classifier from edu/stanford/nlp/models/ner/english.conll.4class.distsim.crf.ser.gz ... done [1.2 sec].
[pool-1-thread-2] INFO edu.stanford.nlp.time.JollyDayHolidays - Initializing JollyDayHoliday for SUTime from classpath edu/stanford/nlp/models/sutime/jollyday/Holidays_sutime.xml as sutime.binder.1.
[pool-1-thread-2] INFO edu.stanford.nlp.time.TimeExpressionExtractorImpl - Using following SUTime rules: edu/stanford/nlp/models/sutime/defs.sutime.txt,edu/stanford/nlp/models/sutime/english.sutime.txt,edu/stanford/nlp/models/sutime/english.holidays.sutime.txt
[pool-1-thread-2] INFO edu.stanford.nlp.pipeline.TokensRegexNERAnnotator - ner.fine.regexner: Read 580704 unique entries out of
581863 from edu/stanford/nlp/models/kbp/english/gazetteers/regexner_caseless.tab, 0 TokensRegex patterns.
[pool-1-thread-2] INFO edu.stanford.nlp.pipeline.TokensRegexNERAnnotator - ner.fine.regexner: Read 4869 unique entries out of 4869 from edu/stanford/nlp/models/kbp/english/gazetteers/regexner_cased.tab, 0 TokensRegex patterns.
[pool-1-thread-2] INFO edu.stanford.nlp.pipeline.TokensRegexNERAnnotator - ner.fine.regexner: Read 585573 unique entries from 2
files
Also in the browser there is no error message just a light red square.
Your output looks unsuspicious. Can you try building the container from scratch?
docker build -t corenlp https://github.com/NLPbox/stanford-corenlp-docker.git
docker run -e JAVA_XMX=5g -p 9000:9000 corenlp
492450K .......... .......... .......... .......... .......... 99% 917K 0s
492500K .......... .......... .......... .......... .......... 99% 2.24M 0s
492550K .......... .......... .......... .......... .......... 99% 703K 0s
492600K .......... .......... .......... .......... .......... 99% 709K 0s
492650K ...... 100% 106M=10m7s
2020-04-23 22:03:56 (812 KB/s) - 'stanford-corenlp-4.0.0.zip' saved [504480755/504480755]
unzip: can't open stanford-corenlp-full-*.zip[.zip]
The command '/bin/sh -c wget $(grepurl -r 'zip$' -a http://stanfordnlp.github.io/CoreNLP/) && unzip stanford-corenlp-full-*.zip && mv $(ls -d stanford-corenlp-full-*/) corenlp && rm *.zip' returned a non-zero code: 1
That is what I received after running this command
docker build -t corenlp https://github.com/NLPbox/stanford-corenlp-docker.git
I am running windows 10 pro.
Any update on this it looks like full-*.zip does not exist.
@sremiger1 I updated the Dockerfile. It currently builds fine with CoreNLP 4.2.0.
Should the Dockerfile no longer work again in the future, you can always use the Docker images that are already available on Docker Hub: https://hub.docker.com/repository/docker/nlpbox/corenlp .
I have tried running docker run -e JAVA_XMX=5g -p 9000:9000 -ti nlpbox/corenlp and it is crashing. No errors for information. Is there any suggestions for fixing this?