Revision: 17959
          http://sourceforge.net/p/gate/code/17959
Author:   ian_roberts
Date:     2014-05-11 14:58:41 +0000 (Sun, 11 May 2014)
Log Message:
-----------
Excised all uses of the "annotations" RHS parameter.

Modified Paths:
--------------
    userguide/trunk/jape.tex

Modified: userguide/trunk/jape.tex
===================================================================
--- userguide/trunk/jape.tex    2014-05-11 14:38:54 UTC (rev 17958)
+++ userguide/trunk/jape.tex    2014-05-11 14:58:41 UTC (rev 17959)
@@ -1188,7 +1188,7 @@
     }
 
     newFeatures.put("quality",  "1");
-    annotations.add(matchedAnns.firstNode(), matchedAnns.lastNode(),
+    outputAS.add(matchedAnns.firstNode(), matchedAnns.lastNode(),
                               "Spanish_mark", newFeatures);
 }
 
@@ -1790,7 +1790,6 @@
     public void doit(
         gate.Document doc,
         java.util.Map<java.lang.String, gate.AnnotationSet> bindings,
-        gate.AnnotationSet annotations,
         gate.AnnotationSet inputAS,
         gate.AnnotationSet outputAS,
         gate.creole.ontology.Ontology ontology) throws JapeException {
@@ -1799,7 +1798,10 @@
 }
 \end{lstlisting}
 
-Method \verb@doit@ has the following parameters that can be used in RHS Java 
code:
+Method \verb@doit@ has the following parameters that can be used in RHS Java
+code\footnote{Prior to GATE version 8.0 there was a (deprecated) additional
+parameter named \texttt{annotations} -- any grammars that used this will have
+to be modified to use \texttt{inputAS} or \texttt{outputAS} as appropriate.}:
 \begin{itemize}
   \item \[email protected] doc@ - a document that is currently processed
   \item \[email protected]<String, AnnotationSet> bindings@ - a map of binding
@@ -1808,9 +1810,6 @@
     variable\footnote{Prior to GATE 5.2 this parameter was a plain \texttt{Map}
       without type parameters, which is why you will see a lot of
       now-unnecessary casts in existing JAPE grammars such as those in ANNIE.}
-  \item \[email protected] annotations@ - Do not use this (it's a
-    synonym for \verb@outputAS@ that is still used in some grammars
-    but is now deprecated).
   \item \[email protected] inputAS@ - input annotations
   \item \[email protected] outputAS@ - output annotations
   \item \[email protected] ontology@ - a GATE's transducer 
ontology

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


------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to