Hi,

Thanks! After checking the stack trace I added the jwnl to my
classpath plus the path to WordNet to the maven arguments. It now runs
and it outputs the parse tree with numbered mentions. Like this (note
the NP#3)

(SBAR (S (NP#3 (RB However) (NNS detectives)) (VP (VBD said) (SBAR (S
(NP#3 (PRP they)) (VP (VBD had) (RB not) (VP (VBN found) (NP (DT any)
(NN proof)) (SBAR (IN that) (S (NP (NP (DT the) (NN 35-year-old,))
(SBAR (WHNP (WP who)) (S (VP (VBD went) (S (VP (VBG missing) (PP (IN
on) (NP (CD 18) (NNP March,))))))))) (VP (VBD was) (VP (VBN dead.)

Is it possible to get something easier to the eye on the CLI?
Is it possible to insert NEs to the parse tree on the CLI? (I guess not :)  )

Cheers,

Rodrigo

On Thu, Dec 20, 2012 at 11:06 AM, Jörn Kottmann <[email protected]> wrote:
> 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