sempre icon indicating copy to clipboard operation
sempre copied to clipboard

CoreNLP does not work with Java 9, 10, 11

Open ppasupat opened this issue 6 years ago • 0 comments

This is probably due to SUTime not loading properly.

ERROR: Caused by edu.stanford.nlp.util.MetaClass$ClassCreationException: MetaClass couldn't create public edu.stanford.nlp.time.TimeExpressionExtractorImpl(java.lang.String,java.util.Properties) with args [sutime, {}]:

From https://stackoverflow.com/q/42159641 it looks like the possible solutions are:

  • Don't use Java 9, 10, or 11
  • Add --add-modules java.xml.bind to the command line (does not work on Java 11)
  • Disable SUTime.

ppasupat avatar Apr 26 '19 20:04 ppasupat