From user-return-4895-apmail-uima-user-archive=uima.apache.org@uima.apache.org Mon Apr 29 16:36:17 2013 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 0E0FC105D2 for ; Mon, 29 Apr 2013 16:36:17 +0000 (UTC) Received: (qmail 58837 invoked by uid 500); 29 Apr 2013 16:36:16 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 58813 invoked by uid 500); 29 Apr 2013 16:36:16 -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 58805 invoked by uid 99); 29 Apr 2013 16:36:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Apr 2013 16:36:16 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of richard.eckart@gmail.com designates 74.125.83.52 as permitted sender) Received: from [74.125.83.52] (HELO mail-ee0-f52.google.com) (74.125.83.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Apr 2013 16:36:12 +0000 Received: by mail-ee0-f52.google.com with SMTP id d41so2683580eek.11 for ; Mon, 29 Apr 2013 09:35:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=ePeQivAIQWpRN8YRd3Y/6o7UMYTquYj4FQFersHc7Pc=; b=szx/FHVeszhKskhIvLoJNTGRml1Rq1ooeorHW6eZd5WEP/Uzmdy8Tif7w0nz5I3n50 GTTqCqGygNUVPjv+wTBY6kyxpksUECX1oIwMz26h9Al7r7VFXh+b0kKgf8jmay1ygIZg pYNg1Ra7Zi5YtDS54Oisz6iU2oJZPL/nm3+DUKgukMYTqoQ0N8dmkdUo1EzRqKaYtfyh qvjnwnRU5Q9U95oaWR8fDLCKtKI2NBp2TQRd1Vbr16rlSps7QFZ8a8AsQ0v5S4gnKk1o ZiLzRiZr9E+hVT+dg0mAcUnZ7jcn7cGfS4jT59kF6gQ2O00+y2/+boTeYHCiGfNwK+lm 6xzA== X-Received: by 10.14.9.71 with SMTP id 47mr80547756ees.21.1367253350970; Mon, 29 Apr 2013 09:35:50 -0700 (PDT) Received: from [10.0.1.20] (ip-178-200-235-87.unitymediagroup.de. [178.200.235.87]) by mx.google.com with ESMTPSA id bj2sm33796116eeb.1.2013.04.29.09.35.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Apr 2013 09:35:50 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: Getting the effective type system From: Richard Eckart de Castilho In-Reply-To: Date: Mon, 29 Apr 2013 18:35:48 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: user@uima.apache.org X-Mailer: Apple Mail (2.1503) X-Virus-Checked: Checked by ClamAV on apache.org Hi, if you use the automatic type system detection feature of uimaFIT [1], = you can get the full automatically detected type system by calling = TypeSystemDescriptionFactory.createTypeSystemDescription(), even without = an aggregate.=20 Or you just create it from the AnalysisEngineDescription you get from = the AggregateBuilder. I have to admit, that I didn't try if that really = gets the aggregated type system (after resolving, see below). For both approaches, mind to resolve the imports: AnalysisEngineDescription desc =3D =85 ResourceManager resMgr =3D UIMAFramework.newDefaultResourceManager(); desc.resolveImports(resMgr); desc.getAnalysisEngineMetaData().getTypeSystem(); Finally, you can could create an AnalysisEngine from your aggregate = description, create a CAS from it and use = TypeSystemUtil.typeSystem2TypeSystemDescription(aJCas.getTypeSystem()).toX= ML(typeOS). This also works in a consumer (cf. DKPro Core XMIWriter = [2]). Cheers, -- Richard [1] https://code.google.com/p/uimafit/wiki/TypeDescriptorDetection [2] = https://dkpro-core-asl.googlecode.com/svn/de.tudarmstadt.ukp.dkpro.core-as= l/trunk/de.tudarmstadt.ukp.dkpro.core.io.xmi-asl/src/main/java/de/tudarmst= adt/ukp/dkpro/core/io/xmi/XmiWriter.java Am 29.04.2013 um 17:10 schrieb : > Hi! >=20 > Using org.uimafit.factory.AggregateBuilder you can aggregate analysis = engines with different type systems. Is there any way to serialize the = effective type system from such an aggregate or from the CAS it is = using? >=20 > Thanks, > Armin >=20