Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExceptionInInitializerError #51

Open
clement1234567891011 opened this issue May 3, 2022 · 0 comments
Open

ExceptionInInitializerError #51

clement1234567891011 opened this issue May 3, 2022 · 0 comments

Comments

@clement1234567891011
Copy link

Hi,

I used to be able to use Graphene-core via the Java API just fine, but it now stopped working. I tried reinstalling it, and only having an "empty" main java file but as soon as I call:
Graphene graphene = new Graphene();
I get the error below.

22:19:37 main INFO |o.l.graphene.core.Graphene getCoreferenceResolver - Load Coreference-Resolver: 'org.lambda3.graphene.core.coreference.impl.stanford.StanfordCoref'
Exception in thread "main" java.lang.ExceptionInInitializerError
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:375)
at org.lambda3.graphene.core.Graphene.getCoreferenceResolver(Graphene.java:75)
at org.lambda3.graphene.core.Graphene.(Graphene.java:61)
at org.lambda3.graphene.core.Graphene.(Graphene.java:53)
at test.Encodability.Test.main(Test.java:15)
Caused by: java.lang.IllegalArgumentException: No annotator named mention
at edu.stanford.nlp.pipeline.AnnotatorPool.get(AnnotatorPool.java:151)
at edu.stanford.nlp.pipeline.StanfordCoreNLP.(StanfordCoreNLP.java:278)
at edu.stanford.nlp.pipeline.StanfordCoreNLP.(StanfordCoreNLP.java:194)
at edu.stanford.nlp.pipeline.StanfordCoreNLP.(StanfordCoreNLP.java:190)
at org.lambda3.graphene.core.coreference.impl.stanford.StanfordCoref.(StanfordCoref.java:64)
... 6 more

Any idea what's causing this and how I can solve this?

Many thanks in advance!
Clement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant