You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)?
The text was updated successfully, but these errors were encountered:
I'm able to run the main function in SpiceParser, but whenever I input a sentence, I always got the following errors:
Why is that?
BTW, there's no
toJSON
method in theSceneGraph
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)?The text was updated successfully, but these errors were encountered: