Revision: 18022
http://sourceforge.net/p/gate/code/18022
Author: johann_p
Date: 2014-05-20 17:32:58 +0000 (Tue, 20 May 2014)
Log Message:
-----------
Mention that in a Groovy PR script the variable "controller" is
now available.
Modified Paths:
--------------
userguide/trunk/api.tex
Modified: userguide/trunk/api.tex
===================================================================
--- userguide/trunk/api.tex 2014-05-20 01:22:19 UTC (rev 18021)
+++ userguide/trunk/api.tex 2014-05-20 17:32:58 UTC (rev 18022)
@@ -2258,6 +2258,7 @@
\begin{itemize}
\item \textbf{doc}: the current document (Document)
\item \textbf{corpus}: the corpus containing the current document
+\item \textbf{controller}: the controller running the script
\item \textbf{content}: the string content of the current document
\item \textbf{inputAS}: the annotation set specified by inputASName in the PRs
runtime parameters
@@ -2313,8 +2314,8 @@
Note that because the script is not processing a particular document when these
methods are called, the usual {\tt doc}, {\tt corpus}, {\tt inputAS}, etc. are
not available within the body of the methods (though the corpus is passed to
-the method as a parameter). The {\tt scriptParams} variable \emph{is}
-available.
+the method as a parameter). The {\tt scriptParams} and {\tt controller}
+variables \emph{are} available.
The following example shows how this technique could be used to build a simple
tf/idf index for a GATE corpus. The example is available in the GATE
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs