You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2007/02/11 01:43:19 UTC
svn commit: r505812 -
/incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.cas_multiplier.xml
Author: schor
Date: Sat Feb 10 16:43:18 2007
New Revision: 505812
URL: http://svn.apache.org/viewvc?view=rev&rev=505812
Log:
No Jira - eliminate extra new line around <programlisting>
Modified:
incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.cas_multiplier.xml
Modified: incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.cas_multiplier.xml
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.cas_multiplier.xml?view=diff&rev=505812&r1=505811&r2=505812
==============================================================================
--- incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.cas_multiplier.xml (original)
+++ incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.cas_multiplier.xml Sat Feb 10 16:43:18 2007
@@ -349,8 +349,7 @@
<literal><outputsNewCASes></literal> element to your descriptor as shown here:</para>
- <programlisting>
- <operationalProperties>
+ <programlisting><operationalProperties>
<modifiesCas>false</modifiesCas>
<multipleDeploymentAllowed>true</multipleDeploymentAllowed>
<emphasis role="bold"><outputsNewCASes>true</outputsNewCASes></emphasis>
@@ -441,17 +440,14 @@
aggregate as follows:</para>
- <programlisting>
- <flowController key="FixedFlowController">
+ <programlisting><flowController key="FixedFlowController">
<import name="org.apache.uima.flow.FixedFlowController"/>
- </flowController>
- </programlisting>
+ </flowController> </programlisting>
<para>The parameter could then be overriden as, for example:</para>
- <programlisting>
- <configurationParameters>
+ <programlisting><configurationParameters>
<configurationParameter>
<name>ActionForIntermediateSegments</name>
<type>String</type>
@@ -472,8 +468,7 @@
<string>drop</string>
</value>
</nameValuePair>
- </configurationParameterSettings>
- </programlisting>
+ </configurationParameterSettings></programlisting>
<para>This overriding can also be done using the Component Descriptor Editor tool. An example of an Analysis
Engine that overrides this parameter can be found in
@@ -643,8 +638,7 @@
additionalParams2.put(Resource.PARAM_UIMA_CONTEXT, childContext2);
AnalysisEngine myAE = UIMAFramework.produceAnalysisEngine(
- desc2, additionalParams2);
- </programlisting>
+ desc2, additionalParams2);</programlisting>
</para>
</section>
@@ -706,8 +700,7 @@
"merged CAS":</para>
- <programlisting>
- public void process(JCas aJCas) throws AnalysisEngineProcessException {
+ <programlisting>public void process(JCas aJCas) throws AnalysisEngineProcessException {
// procure a new CAS if we don't have one already
if (mMergedCas == null) {
mMergedCas = getEmptyJCas();
@@ -740,8 +733,7 @@
copiedIndexedFs.add(fs);
}
}
- }
- </programlisting>
+ }</programlisting>
<para>The <literal>CasCopier</literal> class is used to copy Feature Structures of certain types
(specified by a configuration parameter) to the merged CAS. The <literal>CasCopier</literal> does deep
@@ -799,8 +791,7 @@
<para>These methods are relatively simple:</para>
- <programlisting>
- public boolean hasNext() throws AnalysisEngineProcessException {
+ <programlisting>public boolean hasNext() throws AnalysisEngineProcessException {
return mReadyToOutput;
}
@@ -812,8 +803,7 @@
mMergedCas = null;
mReadyToOutput = false;
return casToReturn;
- }
- </programlisting>
+ }</programlisting>
<para>When the merged CAS is ready to be output, <literal>hasNext</literal> will return true, and
<literal>next</literal> will return the merged CAS, taking care to set the
<literal>mMergedCas</literal> field to