Specify a dependency with a classifier in Zeppelin

I am trying to play with feelings analysis on EMR with Zepplin and Stanford NLP.

I added edu.stanford.nlp:stanford-corenlp:3.8.0, however, I cannot figure out how to add a dependency with a classifier.

I get this error edu.stanford.nlp.io.RuntimeIOException: java.io.IOException: Unable to open "edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz" as class path, filename or URL.

Appears because I need this package (in sbt format) libraryDependencies += "edu.stanford.nlp" % "stanford-corenlp" % "3.8.0"classifier "models"

How can I specify this dependency in Zeppelin?

+4
source share
1 answer

To add a dependency to language models, use the following format in the Dependencies section of the Spark Interpreter configuration (Interpreters → Spark → Change → Dependencies):

_: : : :

edu.stanford.nlp: -corenlp: : : 3.8.0

+2

Source: https://habr.com/ru/post/1682780/


All Articles