Hello I have been trying to work on information retrieval for quite sometime and have been facing some difficulties.
Recently I downloaded StandAloneAnnie.java from following link
http://gate.ac.uk/wiki/code-repository/src/sheffield/examples/StandAloneAnnie.java
Though I have been able to execute it and see the output I have a query or two.
-
This program annotates people and locations, where is the grammar stored for annotating such entities.
-
How can I write my own simple grammar to extract some data and use it in my copy of StandAloneAnnie.java?
Previous posts
Hundreds of RegEx on one string New to NLP, Question about annotation
Following is a simple grammar for tagging Height of a person
This is the main code that gets executed,
Note:-
In the above code, the grammar for Height will be written in a .jape file. You need to run this grammar using a JAPE(JAPE Plus) transducer. We just need to execute the application(‘pipeline’) in our main code. You can find tutorial for writing jape at gate.ac.uk/sale/tao