Revision: 17960
http://sourceforge.net/p/gate/code/17960
Author: ian_roberts
Date: 2014-05-11 14:59:28 +0000 (Sun, 11 May 2014)
Log Message:
-----------
Merged removal of annotations param from trunk
Modified Paths:
--------------
userguide/branches/release-8.0/jape.tex
Property Changed:
----------------
userguide/branches/release-8.0/
Index: userguide/branches/release-8.0
===================================================================
--- userguide/branches/release-8.0 2014-05-11 14:58:41 UTC (rev 17959)
+++ userguide/branches/release-8.0 2014-05-11 14:59:28 UTC (rev 17960)
Property changes on: userguide/branches/release-8.0
___________________________________________________________________
Modified: svn:mergeinfo
## -1,4 +1,4 ##
/userguide/branches/release-6.0:13203-13218
/userguide/branches/release-7.0:15332-15399
/userguide/tags/release-7.0:15400-15404
-/userguide/trunk:10614-10900,17945,17951-17952,17954
+/userguide/trunk:10614-10900,17945,17951-17952,17954,17959
\ No newline at end of property
Modified: userguide/branches/release-8.0/jape.tex
===================================================================
--- userguide/branches/release-8.0/jape.tex 2014-05-11 14:58:41 UTC (rev
17959)
+++ userguide/branches/release-8.0/jape.tex 2014-05-11 14:59:28 UTC (rev
17960)
@@ -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:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• 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