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

Error when running SpiceParser #6

Open
jonbakerfish opened this issue Oct 29, 2017 · 2 comments
Open

Error when running SpiceParser #6

jonbakerfish opened this issue Oct 29, 2017 · 2 comments

Comments

@jonbakerfish
Copy link

I'm able to run the main function in SpiceParser, but whenever I input a sentence, I always got the following errors:

Exception in thread "main" java.lang.ExceptionInInitializerError
    at edu.anu.spice.SpiceParser.parseAnnotation(SpiceParser.java:327)
    at edu.anu.spice.SpiceParser.generateTuples(SpiceParser.java:234)
    at edu.anu.spice.SpiceParser.loadTuples(SpiceParser.java:243)
    at edu.anu.spice.SpiceParser.parseCaptions(SpiceParser.java:274)
    at edu.anu.spice.SpiceParser.main(SpiceParser.java:494)
Caused by: java.lang.IllegalArgumentException: There is already a relation named det:qmod!
    at edu.stanford.nlp.trees.GrammaticalRelation.<init>(GrammaticalRelation.java:321)
    at edu.stanford.nlp.trees.GrammaticalRelation.<init>(GrammaticalRelation.java:348)
    at edu.stanford.nlp.scenegraph.SemanticGraphEnhancer.<clinit>(SemanticGraphEnhancer.java:48)
    ... 5 more

Why is that?

BTW, there's no toJSON method in the SceneGraph class compared to the one in Stanford Scene Graph Parser. Is there any other way to save the graph (format that can be handled by python)?

@buraksatar
Copy link

Hi @jonbakerfish ,
Did you solve this problem later on?
I've also got this problem while I was trying to use Stanford Scene Graph Parser.

@bigbrother001
Copy link

Excuse me, Did you solve the problem? I got this ERROR too. @buraksatar @jonbakerfish

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

3 participants