On 8 September 2014 at 06:50:38, Sam Raker ([email protected]) wrote: > I can `(import > edu.stanford.nlp.parser.lexparser.LexicalizedParser)`, > but after that, it's just a nightmare of `no matching ctor`, `no > matching field`, `NoSuchFieldException` and `expected static > field` errors. I can't even initialize anything -- `(def parser > (new LexicalizedParser))` gives me the aforementioned `no > matching ctor` error.
The only constructor on that class has way more than 0 arguments: http://nlp.stanford.edu/nlp/javadoc/javanlp/edu/stanford/nlp/parser/lexparser/LexicalizedParser.html#LexicalizedParser(edu.stanford.nlp.parser.lexparser.Lexicon, edu.stanford.nlp.parser.lexparser.BinaryGrammar, edu.stanford.nlp.parser.lexparser.UnaryGrammar, edu.stanford.nlp.parser.lexparser.DependencyGrammar, edu.stanford.nlp.util.Index, edu.stanford.nlp.util.Index, edu.stanford.nlp.util.Index, edu.stanford.nlp.parser.lexparser.Options) Perhaps you should use a "factory method" to instantiate it: http://nlp.stanford.edu/nlp/javadoc/javanlp/edu/stanford/nlp/parser/lexparser/LexicalizedParser.html#loadModel() See http://clojure-doc.org/articles/language/interop.html, too. -- @michaelklishin, github.com/michaelklishin -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
