You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by al...@apache.org on 2007/01/26 21:23:38 UTC

svn commit: r500327 - /incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.multi_views.xml

Author: alally
Date: Fri Jan 26 12:23:38 2007
New Revision: 500327

URL: http://svn.apache.org/viewvc?view=rev&rev=500327
Log:
Fixed errors in program listing

Modified:
    incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.multi_views.xml

Modified: incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.multi_views.xml
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.multi_views.xml?view=diff&rev=500327&r1=500326&r2=500327
==============================================================================
--- incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.multi_views.xml (original)
+++ incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.multi_views.xml Fri Jan 26 12:23:38 2007
@@ -368,7 +368,7 @@
       
       <programlisting>//create a "root" UIMA context for your whole application
 
-UimaContext rootContext =
+UimaContextAdmin rootContext =
    UIMAFramework.newUimaContext(UIMAFramework.getLogger(),
       UIMAFramework.newDefaultResourceManager(),
       UIMAFramework.newConfigurationManager());
@@ -385,7 +385,7 @@
 //create a UIMA Context for the new AE we are about to create
 
 //first argument is unique key among all AEs used in the application
-UimaContextAdmin childContext = uimaContext.createChild("myAE", sofamap);
+UimaContextAdmin childContext = rootContext.createChild("myAE", sofamap);
 
 //instantiate AE, passing the UIMA Context through the additional
 //parameters map
@@ -393,7 +393,7 @@
 Map additionalParams = new HashMap();
 additionalParams.put(Resource.PARAM_UIMA_CONTEXT, childContext);
 
-anAnnotator = UIMAFramework.produceAnalysisEngine(desc,additionalParams);</programlisting>
+AnalysisEngine ae = UIMAFramework.produceAnalysisEngine(desc,additionalParams);</programlisting>
       
       <para>Sofa mappings are applied from the inside out, i.e., local to global. First, any
         aggregate mappings are applied, then any CPE mappings, and finally, any specified