MinIE Construction Error
aliozts opened this issue · 1 comments
aliozts commented
Hello, this is the error I am getting, it seems that it is able to get the references with the autoclass
but cannot create the object after getting the reference. I might be totally wrong too but do you know what might be the reason here?
I built the minIE jar and have my CLASSPATH
set before importing the autoclass
too
triples = [p.triple for p in minie.get_propositions(sentence)] -> Line that causes the error in the miniepy.py
self.minie_obj = MinIE(String(sentence), self.parser, nmode) -> Constructor for the java object
File "jnius/jnius_export_class.pxi", line 270, in jnius.JavaClass.__init__
File "jnius/jnius_export_class.pxi", line 340, in jnius.JavaClass.call_constructor
jnius.JavaException: No constructor matching your arguments, available:
['(Ljava/lang/String;Ledu/stanford/nlp/pipeline/StanfordCoreNLP;Lde/uni_mannheim/minie/MinIE$Mode;)V', '(Ljava/lang/String;Ledu/stanford/nlp/pipeline/StanfordCoreNLP;Lde/uni_mannheim/minie/MinIE$Mode;Lde/uni_mannheim/utils/Dictionary;)V', '()V', '(Lit/unimi/dsi/fastutil/objects/ObjectArrayList;)V', '(Ljava/lang/String;Ledu/stanford/nlp/semgraph/SemanticGraph;Lde/uni_mannheim/minie/MinIE$Mode;)V', '(Ljava/lang/String;Ledu/stanford/nlp/semgraph/SemanticGraph;Lde/uni_mannheim/minie/MinIE$Mode;Lde/uni_mannheim/utils/Dictionary;)V']
Also thank you for the work of creating this.
aliozts commented
sorry I'm closing this