From user-return-3713-apmail-uima-user-archive=uima.apache.org@uima.apache.org Thu Jun 16 17:13:38 2011 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 9CE296138 for ; Thu, 16 Jun 2011 17:13:38 +0000 (UTC) Received: (qmail 2803 invoked by uid 500); 16 Jun 2011 17:13:38 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 2780 invoked by uid 500); 16 Jun 2011 17:13:38 -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 2772 invoked by uid 99); 16 Jun 2011 17:13:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 17:13:38 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [130.83.156.232] (HELO lnx503.hrz.tu-darmstadt.de) (130.83.156.232) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 17:13:31 +0000 Received: from pandora.tk.informatik.tu-darmstadt.de (pandora.tk.informatik.tu-darmstadt.de [130.83.163.131]) by lnx503.hrz.tu-darmstadt.de (8.14.4/8.14.4/HRZ/PMX) with ESMTP id p5GHD96g025426 for ; Thu, 16 Jun 2011 19:13:09 +0200 (envelope-from eckartde@tk.informatik.tu-darmstadt.de) Received: from [10.0.1.2] (109.91.160.170) by pandora.tk.informatik.tu-darmstadt.de (130.83.163.131) with Microsoft SMTP Server (TLS) id 8.2.176.0; Thu, 16 Jun 2011 19:13:08 +0200 Subject: Re: XmiCasSerialization, XmiCasDeserialization and XmiSerializationSharedData (pure UIMA) MIME-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="iso-8859-1" From: Richard Eckart de Castilho In-Reply-To: Date: Thu, 16 Jun 2011 19:13:07 +0200 Content-Transfer-Encoding: quoted-printable Message-ID: References: <3ED2D79A-D7F5-4A1A-8D29-FD1F93BD75AD@tk.informatik.tu-darmstadt.de> To: "user@uima.apache.org" X-Mailer: Apple Mail (2.1084) X-PMX-TU: seen v1.2 by 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.6.16.165414 X-PMX-RELAY: outgoing I'd like to point out the pure-UIMA (no uimaFIT) solution: TypeSystemDescription tsd =3D = UIMAFramework.getXMLParser().parseTypeSystemDescription(new = XMLInputSource("TypeSystem.xml")); CAS cas =3D CasCreationUtils.createCas(tsd, null, null); XmiCasDeserializer.deserialize(new FileInputStream("file.xmi"), cas); I'm so used to using uimaFIT's type discovery that I barely consider = using pure-UIMA ;) Cheers, Richard Am 16.06.2011 um 15:37 schrieb Joel Dubbels: > Thanks, Richard. So by configuring the same type system, what do you=20= > mean? On the serialization side I can see you can instantiate it with = a=20 > type system, but in the deserializer case, how do you specify a type=20= > system for it to work from? In your example, I see you are writing = the=20 > type system out to a file, but I'm not sure how that's used when=20 > deserializing. Thanks. --=20 -------------------------------------------------------------------=20 Richard Eckart de Castilho Technical Lead Ubiquitous Knowledge Processing Lab=20 FB 20 Computer Science Department =20 Technische Universit=E4t Darmstadt=20 Hochschulstr. 10, D-64289 Darmstadt, Germany=20 phone [+49] (0)6151 16-7477, fax -5455, room S2/02/B117 eckartde@tk.informatik.tu-darmstadt.de=20 www.ukp.tu-darmstadt.de=20 Web Research at TU Darmstadt (WeRC) www.werc.tu-darmstadt.de -------------------------------------------------------------------=20