Let us say I start with the following text:
I love Toyota Camrys and hate Ferraris
I use a POS tagger like Stanford CoreNLP and get the following Annotations:
I_PRP love_VBP Toyota_NNP Camrys_NNPS and_CC hate_VB Ferraris_NNP
Let us assume I have a Named Entity Recognizer and am able to identify a Camry and Ferrari from the above notation.
I want to be able to reason about the above sentence where for example I deduce the following:
- I hate Camrys
- I love Ferraris
possibly even:
- I hate something manufactured by Toyota
- I hate something manufactured by Ferrari
I am currently doing the above using manually coded heuristics and slot matching.
Question: Is there a more standard way to accomplish this?
For example I ran in to JAPE Java Annotation Patterns Engine from Gate -- is that part of the tool chain do something like this.