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 703261056D for ; Sun, 25 Jan 2015 22:09:16 +0000 (UTC) Received: (qmail 16142 invoked by uid 500); 25 Jan 2015 22:09:15 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 16111 invoked by uid 500); 25 Jan 2015 22:09:15 -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 16099 invoked by uid 99); 25 Jan 2015 22:09:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Jan 2015 22:09:14 +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 (nike.apache.org: domain of aleks.dimitrov@gmail.com designates 209.85.212.174 as permitted sender) Received: from [209.85.212.174] (HELO mail-wi0-f174.google.com) (209.85.212.174) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Jan 2015 22:08:47 +0000 Received: by mail-wi0-f174.google.com with SMTP id n3so6558599wiv.1 for ; Sun, 25 Jan 2015 14:08:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=v/HFcLr/97zRNFuqrHgZpKYbw2Bkj0+ivp/9BuZI1R4=; b=lhCY3CC0WnDMKFZ+LoKei6047Dpus6Unhvz2yRlXOj6naFLdP+JKqARwawFPXZkWXb UFnvfDmiZB/VFPmIlLI/6cjqn8gcYA6ln4tjEON4+ORXS5GxM8Rdz/ItvL7TfsuFyDjI jOnRRU9X6FpnXvJRKHd3Ovux+pHFJhwnL5iAWulhVpO+La+NmblCBdqMF1j0hb+d1rpt VCwmNo/naSNIvAJXmWt65G9OCwEu1Wlv9BP9UOxyPst3QVm9OxzpSUJJLAmYxI8WG4mk d3eL7dxKu5m09J6ABNpN9axqTclBELgC7m77Gg2oyeQPLp2abNrwLhvbOlqP+SbXaJOV 32rw== X-Received: by 10.194.60.77 with SMTP id f13mr16502254wjr.105.1422223726516; Sun, 25 Jan 2015 14:08:46 -0800 (PST) Received: from minsk (stgt-5f72871d.pool.mediaWays.net. [95.114.135.29]) by mx.google.com with ESMTPSA id di11sm11390007wid.8.2015.01.25.14.08.44 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 25 Jan 2015 14:08:45 -0800 (PST) From: Aleksandar Dimitrov X-Google-Original-From: Aleksandar Dimitrov Date: Sun, 25 Jan 2015 23:08:36 +0100 To: user@uima.apache.org Subject: missing initTypeSystem() in UIMAfit's JCasAnnotator_ImplBase (was: Using OpenNLP type annotations with UIMAfit) Message-ID: <20150125220836.GC28930@minsk> References: <20150125215945.GB28930@minsk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+nBD6E3TurpgldQp" Content-Disposition: inline In-Reply-To: <20150125215945.GB28930@minsk> User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Checked: Checked by ClamAV on apache.org --+nBD6E3TurpgldQp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jan 25, 2015 at 10:59:45PM +0100, Aleksandar Dimitrov wrote: > Hi, >=20 > The UIMAfit manual (5.1) states that the preferred way to iterate over to= kens in > the CAS is the following: >=20 > // JCas version > for (Token token : JCasUtil.select(jcas, Token.class)) { > ... > } >=20 > This assumes a Token.class is importable somewhere. But I'm using the Ope= nNLP > tools, which don't provide such a type. Instead, it seems to be generated= at run > time during configuration steps, and is not accessible as a class in the = AE (to > my knowledge.) >=20 > Additionally, when extending o.a.u.fit.component.JCasAnnotator_ImplBase i= nstead > of o.a.u.component.JCasAnnotator_ImplBase, the method void typeSystemInit= (TypeSytem) > is not provided, which makes instatiating the type system the same way Op= enNLP > does it rather cumbersome (I generate an empty CAS with the typSystemDesc= ription, > then get its TypSystem and provide the Type and Feature objects from this > TypeSystem instance as UIMAfit configuration parameters before deploying = my AE.) Scrap that, it doesn't work this way. So my question becomes: can I instant= iate the type system of an UIMAfit annotator the same way OpenNLP does it (worki= ng around the missing typeSystemInit method somehow) or do I have to give up UIMAfit components? (Or maybe there's an alternative? I'd prefer not to hav= e to run JCasGen on opennlp's TypeSystem.xml) Cheers, Aleks --+nBD6E3TurpgldQp Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBAgAGBQJUxWljAAoJEA4fDuQpC7qFUEIP/RDKU1PArGxRlYYcL6/73GDe 0FAXCLbKRTM8N2tI+38sHr7w/NK55x+dbMO19aHfRscxPMdAoqFkqAY+XnamGAvE ObaIvT+u5S4k7dC2ytnWFTE1u9n+NOEBBYEQBFZlAjR41+NLMW2IZca0IFF+Y6nb Gy2mWmVGlkiSQC1hmSUnXyv3N41ZXHVWoNIIXLv8Yxrk3hrH4L/QnSDxIw4rZpyg GPP6rbRbK9yzzAlfagG3Qu2sl4YuvBp72nnY92R9TrVUyRydKtxJYPA0FEqhtQg5 Av56WZtlzT/AD6fFdTIQOJPlMKcBAakRy7zQTZKKcrs/+co1gcBsm/JIjhNEum7U LGizTMDvCpbCte1sym1XB+J3QHzvzoyuDXyxcEA/QjhvbhZ5qvAi+plavt/4QTYQ ZL8jWVXwLCmzXxQDMLt+vgDyfOpW0B+YelMvfNadyBeILclQrIcUu83lw6CY1Oc+ hjg5MjlYD87/99/Nipbp/bA9R2/j61XgP5uvUPylvRDaOUemrR3DAV0e2nCxKw76 6wP/Hit2VlIcVlYasQJ648B+UyxgpYVDVfvmHVPOSWqM/7cCZzupVIJcAiTJ16uY QIqTsbNls/aZtJdFpH6cwYEXzrf0lL+JZu56JaqP+gsWvc+Lue0JgZQRmjwQqGdv CQmffhcbRtm4cqj1mk2W =ixai -----END PGP SIGNATURE----- --+nBD6E3TurpgldQp--