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/07/18 15:53:52 UTC

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

Author: schor
Date: Wed Jul 18 06:53:51 2007
New Revision: 557261

URL: http://svn.apache.org/viewvc?view=rev&rev=557261
Log:
No Jira - tutorial example of CasCopier constructor had 
incorrect number of arguments.  Adam - please check this 
example if you get a chance.

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=557261&r1=557260&r2=557261
==============================================================================
--- 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 Wed Jul 18 06:53:51 2007
@@ -712,7 +712,9 @@
     mDocBuf.append(docText);
 
     // copy specified annotation types
-    CasCopier copier = new CasCopier(mMergedCas.getCas());
+    // CasCopier takes two args: the CAS to copy from.
+    //                           the CAS to copy into.
+    CasCopier copier = new CasCopier(aJCas.getCas(), mMergedCas.getCas());
     
     // needed in case one annotation is in two indexes (could    
     // happen if specified annotation types overlap)



Re: svn commit: r557261 - /incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.cas_multiplier.xml

Posted by Adam Lally <al...@alum.rpi.edu>.
Looks fine to me.

-Adam

On 7/18/07, schor@apache.org <sc...@apache.org> wrote:
> Author: schor
> Date: Wed Jul 18 06:53:51 2007
> New Revision: 557261
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=557261
> Log:
> No Jira - tutorial example of CasCopier constructor had
> incorrect number of arguments.  Adam - please check this
> example if you get a chance.
>
> 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=557261&r1=557260&r2=557261
> ==============================================================================
> --- 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 Wed Jul 18 06:53:51 2007
> @@ -712,7 +712,9 @@
>      mDocBuf.append(docText);
>
>      // copy specified annotation types
> -    CasCopier copier = new CasCopier(mMergedCas.getCas());
> +    // CasCopier takes two args: the CAS to copy from.
> +    //                           the CAS to copy into.
> +    CasCopier copier = new CasCopier(aJCas.getCas(), mMergedCas.getCas());
>
>      // needed in case one annotation is in two indexes (could
>      // happen if specified annotation types overlap)
>
>
>