Hi, I added the NL4J dependencies to my Maven project then created the following test (almost a copy of NLPDemo.java):
String configFile = "src/main/resources/config-decode-en.xml";
NLPDecoder nlp4j = new NLPDecoder(IOUtils.createFileInputStream(configFile));
NLPNode[] nodes;
String sentence = "John bought a car for Mary.";
nodes = nlp4j.decode(sentence);
System.out.println(Joiner.join(nodes, "\n", 1) + "\n");
The system completed a run in 53 seconds, so I'm wondering what I've done wrong to make it run so slowly. Is there a proper way to use NLP4J to get this? Note that I'm only interested in the dependency tree at the moment, which I'd preferably get as an object, so that I can later use it in my application.
Hi, I added the NL4J dependencies to my Maven project then created the following test (almost a copy of NLPDemo.java):
The system completed a run in 53 seconds, so I'm wondering what I've done wrong to make it run so slowly. Is there a proper way to use NLP4J to get this? Note that I'm only interested in the dependency tree at the moment, which I'd preferably get as an object, so that I can later use it in my application.
Thanks!