From uima-user-return-1350-apmail-incubator-uima-user-archive=incubator.apache.org@incubator.apache.org Wed Jun 04 16:51:31 2008 Return-Path: Delivered-To: apmail-incubator-uima-user-archive@locus.apache.org Received: (qmail 7082 invoked from network); 4 Jun 2008 16:51:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jun 2008 16:51:31 -0000 Received: (qmail 96132 invoked by uid 500); 4 Jun 2008 16:51:33 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 96110 invoked by uid 500); 4 Jun 2008 16:51:33 -0000 Mailing-List: contact uima-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: uima-user@incubator.apache.org Delivered-To: mailing list uima-user@incubator.apache.org Received: (qmail 96099 invoked by uid 99); 4 Jun 2008 16:51:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 09:51:33 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [81.17.210.143] (HELO mail-gw-01.neofonie.de) (81.17.210.143) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 16:50:44 +0000 Received: from [172.27.27.76] (helo=perseus.exchange.neofonie.de) by mail-gw-01.neofonie.de with esmtp (Exim 4.63) (envelope-from ) id 1K3wCQ-0000BM-Qo for uima-user@incubator.apache.org; Wed, 04 Jun 2008 18:50:58 +0200 Received: from [172.27.40.211] ([172.27.40.211]) by perseus.exchange.neofonie.de with Microsoft SMTPSVC(6.0.3790.1830); Wed, 4 Jun 2008 18:50:58 +0200 Message-ID: <4846C7F2.7000609@neofonie.de> Date: Wed, 04 Jun 2008 18:50:58 +0200 From: =?UTF-8?B?Q2hyaXN0b3BoIELDvHNjaGVy?= User-Agent: Thunderbird 2.0.0.14 (X11/20080421) MIME-Version: 1.0 To: uima-user@incubator.apache.org Subject: Re: Problem using Capabilities - OutputSofa References: <4846825F.90804@neofonie.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 04 Jun 2008 16:50:58.0578 (UTC) FILETIME=[29D27720:01C8C663] X-Virus-Checked: Checked by ClamAV on apache.org Hi, thanks for the information. Accessing the default view via the CAS interface seems to work. However it seems a bit confusing that declaring an output view should affect the input view of an analysis engine. I will have a look at the Multi-View components section in the documentation. Eddie Epstein schrieb: > The CAS reference passed to the annotator process method changes when > Sofa capabilities are declared. See > http://incubator.apache.org/uima/downloads/releaseDocs/2.2.2-incubating/docs/html/tutorials_and_users_guides/tutorials_and_users_guides.html#ugr.tug.mvs.deciding_multi_view > > After declaring an output Sofa, process gets the "base CAS". To get > the text from the "default" view, try > > String originalText = jcas.getCas().getCurrentView().getDocumentText(); > > Eddie > > PS looks like the JCas interface is missing the getCurrentView() method. > -- -------------------------------- Christoph Büscher