在将 CoreNLP 从 4.5.2 升级到 4.5.8 后遇到的问题
我们正在从以下 DockerFile 中创建 CoreNLP 的镜像,并使其在实例上作为容器运行。然而,我们发现,在商业 Linux VM 上,corenlp 正常工作,但在支持 FIPS 的 Linux VM 上,它出现问题。 **注意:** - 问题只发生在 corenlp 4.5.8 版本上,而 4.5.2 版本则正常工作 **错误:** - "找不到 /corenlp" 请联系我们的官方邮件 ID,我们是授权客户。 ([email protected]) ([email protected]) ([email protected]) `FROM ubuntu:22.04 RUN apt update && \ apt-get install -y wget && \ apt install -y openjdk-11-jre-headless &&\ apt-get -y install ubuntu-advantage-tools && \ apt-get install -y unzip \ RUN wget http://nlp.stanford.edu/software/stanford-corenlp-4.5.8.zip --no-check-certificate; \ unzip stanford-corenlp-4.5.8.zip; \ rm -f stanford-corenlp-4.5.8.zip; \ mv stanford-corenlp-4.5.8 CoreNLP; \ cd CoreNLP; \ export CLASSPATH=""; for file in `find . -name "*.jar"`; do export CLASSPATH="$CLASSPATH:`realpath $file`"; done \ RUN apt-get remove -y wget unzip \ WORKDIR CoreNLP \ CMD java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 9000 -timeout 100000 -maxCharLength 2000000 -preload tokenize,ssplit,pos,lemma,ner,depparse`
内容来源: stanfordnlp/CoreNLP