It will depend on the word order. If Mary's order pursues the monkey, then the exit will be Mary pursues the monkey. If the order is a monkey to chase Mary, then the exit will be a monkey chasing Mary.
I looked at the OpenNLP parser, but as input, it accepts a sentence that is parsed. What I have as input are words, and I need to build a sentence.
And anyway, when I look at an example: A quick brown fox jumps over a lazy dog.
The parser should now print the following to the console. (PP (IN) (NP (DT)) (JJ lazy) (NN dog))) (.)))
All I see is parts of speech. I do not see it indicating objects, objects, etc., if the API does not have such a function.
If I am wrong, correct me.
Radek source share