From user-return-6304-apmail-uima-user-archive=uima.apache.org@uima.apache.org Sun Jan 25 22:17:46 2015 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 7351D1058C for ; Sun, 25 Jan 2015 22:17:46 +0000 (UTC) Received: (qmail 23912 invoked by uid 500); 25 Jan 2015 22:17:46 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 23862 invoked by uid 500); 25 Jan 2015 22:17:46 -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 23847 invoked by uid 99); 25 Jan 2015 22:17:46 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Jan 2015 22:17:46 +0000 Received: from [10.0.1.10] (ip-37-201-78-128.hsi13.unitymediagroup.de [37.201.78.128]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 05E181A0041; Sun, 25 Jan 2015 22:17:44 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: missing initTypeSystem() in UIMAfit's JCasAnnotator_ImplBase (was: Using OpenNLP type annotations with UIMAfit) From: Richard Eckart de Castilho In-Reply-To: <20150125220836.GC28930@minsk> Date: Sun, 25 Jan 2015 23:17:42 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20150125215945.GB28930@minsk> <20150125220836.GC28930@minsk> To: user@uima.apache.org X-Mailer: Apple Mail (2.1878.6) On 25.01.2015, at 23:08, Aleksandar Dimitrov = wrote: > Scrap that, it doesn't work this way. So my question becomes: can I = instantiate > the type system of an UIMAfit annotator the same way OpenNLP does it = (working > 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 have to > run JCasGen on opennlp's TypeSystem.xml) Why don't you want to run JCasGen? OpenNLP uses a CAS-based API that doesn't use the generated JCas = classes. But as you have noticed, the CAS-based API is a bit verbose and = it is not type-safe. It's like reflections in Java. Cheers, -- Richard=