I am just a beginner in GATE. I am reading the GATE tutorial module 3 to better understand JAPE(https://gate.ac.uk/sale/talks/gate-course-may10/track-1/module-3-jape/module-3-jape.pdf). However, I met a confusing problem that can't be solved. Looking for help. Thanks a lot!
============================================================
The context I am dealing with(just a simple sentence):
We love coming to the University of Sheffield. The weather is always beautiful here.
The JAPE I am using:
Phase: University
Input: Token Lookup SpaceToken
Options: control = appelt
Rule: University1
(
{Token.string == "University"}
{Token.string == "of"}
({Lookup.minorType == city}):cityName
):orgName
-->
:orgName.UniversityTown = {kind = :orgName.Lookup.majorType}
However, it doesn't work at all. Firstly, I loaded the ANNIE and then I run the JAPE but nothing happened, even a Error Warnning.
But when I change the 'string' to something like a annotation(crerated by ANNIE), the JAPE works.
Thus I am very confusing that whether the JAPE rule can direclty read the string in the context. If someone could give me some information related, I will be very grateful.
Hope to get the answer soon.