Version 1.0
Dhaval Thakker, PA Photos, UK
Taha Osman, Nottingham Trent University, UK
Phil Lakin, PA Photos, UK
February 27, 2009
Table of Contents
Table of Contents...........................................................................................................2
Introduction to General Architecture of Text Engineering (GATE) .............................3
JAPE Rules ....................................................................................................................6
Example 1. A simple example to decide the category of sports ...........................7
Example 2. Multiple patterns in JAPE grammar ................................................10
Example 3. Nested Patterns.................................................................................11
Example 4. Using Part of Speech (POS) features to extract entities ..................15
Example 5. Priority in JAPE rules ......................................................................18
Example 6. Handling repetitiveness in patterns using Macro.............................23
Example 7. Using negation operator in JAPE.....................................................24
Example 8. Using JAVA in RHS of JAPE Grammar .........................................25
Example 9. Using a common file as a holder of application specific JAPE grammar files 26
Example 10.
Using JAVA in RHS of JAPE: A complex example ...................27
Example 11.
Using Split to control the application of a rule to a single sentence. 32
Example 12.
Co referencing..............................................................................33
Example 13.
Creating Temporary annotations and then deleting at the end when it is no longer useful. ......................................................................................36
Example 14.
Creating new entities to use in the JAPE grammar......................36
Bibliography
Bibliography: [1] GATE user guide, http://www.gate.ac.uk/sale/tao/split.html [2] Geoffrey R. Bransford-Koons, Dynamic semantic annotation of California case law, MSc Thesis. http://www-rohan.sdsu.edu/~bransfor/thesis/thesis/index.html, last accessed 10 March, 2009. [3] Wikepedia [4] VI editor for windows, http://www.vim.org/download.php [5] Glossary of linguistic terms, (Book) Eugene E. Loos , Susan Anderson , Dwight H., Day, Jr. , Paul C. Jordan , and J. Douglas Wingate