Revision: 19171
          http://sourceforge.net/p/gate/code/19171
Author:   markagreenwood
Date:     2016-04-01 09:35:51 +0000 (Fri, 01 Apr 2016)
Log Message:
-----------
the missing jape grammar

Modified Paths:
--------------
    gate/trunk/plugins/Lang_Welsh/grammar/main.jape

Added Paths:
-----------
    gate/trunk/plugins/Lang_Welsh/grammar/validate_via_pos.jape

Modified: gate/trunk/plugins/Lang_Welsh/grammar/main.jape
===================================================================
--- gate/trunk/plugins/Lang_Welsh/grammar/main.jape     2016-04-01 09:34:55 UTC 
(rev 19170)
+++ gate/trunk/plugins/Lang_Welsh/grammar/main.jape     2016-04-01 09:35:51 UTC 
(rev 19171)
@@ -36,5 +36,5 @@
 name_context
 org_context
 loc_context
-//validate_via_pos
+validate_via_pos
 clean

Added: gate/trunk/plugins/Lang_Welsh/grammar/validate_via_pos.jape
===================================================================
--- gate/trunk/plugins/Lang_Welsh/grammar/validate_via_pos.jape                 
        (rev 0)
+++ gate/trunk/plugins/Lang_Welsh/grammar/validate_via_pos.jape 2016-04-01 
09:35:51 UTC (rev 19171)
@@ -0,0 +1,24 @@
+/*
+Andreas Vlachidis 2016
+*/
+Phase: Validate
+Input: Person
+Options: control = all
+
+Rule: validate
+(
+       {Person contains {Token.category !~"NN"}}
+):match 
+--> 
+{
+try {
+
+    AnnotationSet matchedAS = bindings.get("match");
+    inputAS.removeAll(matchedAS);
+ }
+catch (Exception ex) {
+               Out.println("Exception in RHS \n validate entities via pos 
tags");
+               ex.printStackTrace(Out.getPrintWriter());
+       }
+}
+

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to