Return-Path: X-Original-To: apmail-uima-user-archive@www.apache.org Delivered-To: apmail-uima-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F3971D15F for ; Mon, 3 Dec 2012 23:31:33 +0000 (UTC) Received: (qmail 72783 invoked by uid 500); 3 Dec 2012 23:31:33 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 72753 invoked by uid 500); 3 Dec 2012 23:31:33 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 72745 invoked by uid 99); 3 Dec 2012 23:31:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2012 23:31:33 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of burnlewis@gmail.com designates 209.85.212.179 as permitted sender) Received: from [209.85.212.179] (HELO mail-wi0-f179.google.com) (209.85.212.179) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2012 23:31:27 +0000 Received: by mail-wi0-f179.google.com with SMTP id o1so167831wic.12 for ; Mon, 03 Dec 2012 15:31:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=pIIdLyHXN4FTpjC3uV6+MOa3Nrf0rUbODpPM/AOuPsY=; b=j9bGvWGr20A5EN6qJqVRPEfX0dFcXXOYKJQvYxBZ7xiVrVHsuuXEBXFBkfXX0FBjeM JQNa7XLV9XWouiyFVigMghLYxCgKI7DytS24rDyRct9lqLL/ELKoXqbw3cS5rv+pP5bZ ltOWMSVXcgBZ3bQnoRIPHg4SCZkUdzg4zYeL0uQKcFFrKf8Qp9MQiNXawO+B0y7+2Hi3 b4oJj44yepVf+XUP5KcDV3OHmKqlDgSM/auP1iAUqbfrq5lD9gRam04Wx1odnEhuCSBA BFA5y+UGFYPVZS3IBwXJaZZ3jZ+yvqTC0PkcEVJyniOfXVufFF0b1JQOInHcE0jqJPvh EhRw== MIME-Version: 1.0 Received: by 10.180.78.161 with SMTP id c1mr1220833wix.4.1354577466659; Mon, 03 Dec 2012 15:31:06 -0800 (PST) Received: by 10.216.144.7 with HTTP; Mon, 3 Dec 2012 15:31:06 -0800 (PST) In-Reply-To: References: Date: Mon, 3 Dec 2012 18:31:06 -0500 Message-ID: Subject: Re: Is is possible to pass cas view to the process method of an annotator? From: Burn Lewis To: user@uima.apache.org Content-Type: multipart/alternative; boundary=f46d0435c032b8937604cffb240f X-Virus-Checked: Checked by ClamAV on apache.org --f46d0435c032b8937604cffb240f Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable > One more question on a related note: Is it possible to set sofa mappings in > the Flow Controller? From all the code usages that I have come across it > seems that sofa mappings can only be set while building the AnalysisEngine. No, but the FC could modify the CAS, e.g. set some FS to say what view an annotator should switch to. If you can modify the annotator code it's very easy to make it sofa aware and, say, iterate over all views, or all matching some prefix, or those specified in a config param. ~Burn On Mon, Dec 3, 2012 at 5:57 PM, Richard Eckart de Castilho < eckart@ukp.informatik.tu-darmstadt.de> wrote: > Am 03.12.2012 um 23:32 schrieb Himanshu Gahlot < > himanshu.gahlot86@gmail.com>: > > > One more question on a related note: Is it possible to set sofa mapping= s > in > > the Flow Controller? From all the code usages that I have come across i= t > > seems that sofa mappings can only be set while building the > AnalysisEngine. > > > Good question. I don't know. I think it's not possible since the JavaDoc = of > the reconfigure() methods says the method is used only to update a > component > with new parameters. Also, the sofa mappings are read directly from the > component descriptor which is afaik not accessible by a flow controller. > > I think sofa mappings can only be configured "statically". You probably > could dynamically create a nested pipeline in your flow controller. I > didn't use flow controllers very much so far. > > Maybe someone else has a better idea. > > -- Richard > > -- > ------------------------------------------------------------------- > Richard Eckart de Castilho > Technical Lead > Ubiquitous Knowledge Processing Lab (UKP-TUD) > FB 20 Computer Science Department > Technische Universit=E4t Darmstadt > Hochschulstr. 10, D-64289 Darmstadt, Germany > phone [+49] (0)6151 16-7477, fax -5455, room S2/02/B117 > eckart@ukp.informatik.tu-darmstadt.de > www.ukp.tu-darmstadt.de > Web Research at TU Darmstadt (WeRC) www.werc.tu-darmstadt.de > ------------------------------------------------------------------- > > > > > > > --f46d0435c032b8937604cffb240f--