Hello,

can you get us a stacktrace here? Try to edit the opennlp start script and
run maven with the -e option.

You also need to provide the JWNL dictionary path via the environment variable
to get it to work.

Jörn

On 12/20/2012 11:56 AM, Rodrigo Agerri wrote:
Hi,

I have tried to use the Coferencer CLI in 1.5.3 and I do not seem to
manage. I run

bin/opennlp Coreferencer /path/to/models/ < file.parse

and it gives this error

[ERROR] Failed to execute goal
org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on
project opennlp-tools: An exception occured while executing the Java
class. null: InvocationTargetException: NullPointerException -> [Help
1]

the file.parse is simply a constituent parse tree. I also tried to
give it the parse tree itself but it does not work either. For
example,

$ bin/opennlp Coreferencer
/home/ragerri/experiments/coreference/opennlp/original_models/ < (TOP
(S (NP (DT The) (NN fox)) (VP (VBD jumped) (PP (IN over) (NP (DT the)
(JJ lazy) (NN dog.))))))

-bash: syntax error near unexpected token `('

Cheers,

Rodrigo

Reply via email to