Thank you for your response, @theolivenbaum. I need to parse user input into a syntax parse tree. For example, OpenNLP parses "open one of my eyes" into
(VP (VB open) (NP (NP (CD one)) (PP (IN of) (NP (PRP$ my) (NNS eyes)))))
I don't see that type of thing in the examples. I'm relatively new to NLP (though I have decades of coding experience) so an API reference would be very helpful.
I'm realizing that standard NLP doesn't handle commands very well, often seeing them as noun phrases instead of verb phrases. As a quick example, if I parse an imperative command like "open door", OpenNLP gives me
(NP (JJ open) (NN door)). In other words, it sees the phrase as "an open door" instead of "open the door". I want it to parse as
(VP (VB open) (NP (NN door))). Is this something Catalyst can do? Perhaps by training?
Please excuse any misuse or misunderstanding of terms. It's all new terminology to me. I would appreciate any help or guidance here.
After a lot of research I stumbled on someone with the same problem. They were advised to "hack" OpenNLP by adding a pronoun like "they" before the command to force the parser to see the input as a verb phrase. So I would give the parser "they open door" and get back
(S (NP (PRP they)) (VP (VBP open) (NP (NN door))))
at which point I can just extract the verb phrase.
I assume this would work for Catalyst as well. I would still love to use it instead of IKVM/OpenNLP.