SBT - French, Spanish, German models
Hallo,
How can I add dependencies for languages other than English? Your SBT code does not allow to download the models for other languages.
In fact it works, must search for a more recent version of stanford parser. I post the code (build.sbt) here, as it might be useful for others :
libraryDependencies ++= Seq(
"edu.stanford.nlp" % "stanford-parser" % "3.8.0",
"edu.stanford.nlp" % "stanford-corenlp" % "3.8.0",
"edu.stanford.nlp" % "stanford-corenlp" % "3.8.0" classifier "models",
"edu.stanford.nlp" % "stanford-corenlp" % "3.8.0" classifier "models-french",
"edu.stanford.nlp" % "stanford-corenlp" % "3.8.0" classifier "models-english",
"edu.stanford.nlp" % "stanford-corenlp" % "3.8.0" classifier "models-spanish",
"edu.stanford.nlp" % "stanford-corenlp" % "3.8.0" classifier "models-german"
)
Does the Simple API work for your needs? There should be variants of Sentence and Document for all of the supported languages (e.g., GermanDocument) assuming you have the models downloaded, and the library there is far more mature than this wrapper.
Hallo, I did not use the Simple API, I had the other one available. OK, I should try the Simple API, if you say it is better. In fact, until now, I used this one, parsed & extracted the CoreNLP information in my own Scala objects.