JBoss Fuse ESB で使用するCoreNLPに問題があります。私はESB上のモデルでCoreNLPをインストールしました
install wrap:mvn:edu.stanford.nlp/stanford-corenlp/3.6.0
install wrap:mvn:edu.stanford.nlp/stanford-corenlp/3.6.0//models-english
次に、モジュールが使用しようとするmodels-english
と、エラーログメッセージが表示されます
Caused by: java.io.IOException: Unable to open "edu/stanford/nlp/models/pos-tagger/english-left3words/english-left3words-distsim.tagger" as class path, filename or URL
at edu.stanford.nlp.io.IOUtils.getInputStreamFromURLOrClasspathOrFileSystem(IOUtils.java:485)[275:org.opengravity.camel.nlp:1.0.0.SNAPSHOT]
at edu.stanford.nlp.tagger.maxent.MaxentTagger.readModelAndInit(MaxentTagger.java:765)[275:org.opengravity.camel.nlp:1.0.0.SNAPSHOT]
... 69 more
この問題をmaven-bundle-plugin
構成で解決しようとしました
<Embed-Dependency>stanford-corenlp</Embed-Dependency>
しかし、残念ながらそれは役に立ちませんでした。