Hi,

I'm trying to make a simple command parser using Opennlp's name finder. It
should be able to understand simple orders like "call james" and extract
action type and object of the action from them.

I'm trying to use OpenNLP's name finder to do this but I have stumbled into
a problem.

I train it with data like this:

*<START:action> call <END> to <START:person> james <END>*
*<START:action> call <END> to <START:person> mary <END>*
*<START:action> call <END> <START:person> mary <END>*
*<START:action> call <END> <START:person> james <END>*

And with this model when I input something like:

*call to james*

I get the expected:

*<START:action> call <END> to <START:person> james <END>*

But with the phrase:

*call james *

I get:

*<START:person> call <END> <START:person> james <END>*

So it seems it cannot recognize "call" as an "action".

>From documentation I see that multitype training is somewhat experimental,
but.. Does anybody know if I'm doing something wrong?

Thx!

-- 
Angel.

Reply via email to