From user-return-8036-archive-asf-public=cust-asf.ponee.io@uima.apache.org Mon Feb 18 13:11:18 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 79E61180647 for ; Mon, 18 Feb 2019 14:11:17 +0100 (CET) Received: (qmail 86101 invoked by uid 500); 18 Feb 2019 13:11: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 86084 invoked by uid 99); 18 Feb 2019 13:11:15 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Feb 2019 13:11:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 5BE87186283 for ; Mon, 18 Feb 2019 13:11:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.291 X-Spam-Level: *** X-Spam-Status: No, score=3.291 tagged_above=-999 required=6.31 tests=[DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_IMAGE_ONLY_24=1.282, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, T_REMOTE_IMAGE=0.01, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=mazancourt-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id zsqPNH87QkFt for ; Mon, 18 Feb 2019 13:11:13 +0000 (UTC) Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 0A8A560E56 for ; Mon, 18 Feb 2019 13:11:12 +0000 (UTC) Received: by mail-wm1-f48.google.com with SMTP id y15so2415578wma.0 for ; Mon, 18 Feb 2019 05:11:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mazancourt-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version; bh=lvg1QLLzNWbN7bVUQP7pwWc8HoXVAAIvy7/exmaJ7vo=; b=vh6U4FUe0ynhJp6Xa0B6EqunblfYjkb8qwyayy2uemfSfjQXno148dVKcOfiI2Pf9e MRfFos+mJssWaYh7rxCozZ3gSTZfCfFV7VHvwsCoVygDQwU4Do4iItXDnDwqiPhKFv40 +LJnmrtVJJ9mh4qD7gQz5coO6oyNuzIO0gyPtkhIFXp9L4z7q/Javx18/Kgi1Q6nMT4c 6jkPIJssDkj1blJTCO57olZfwEsm8T9m7QFt1SMD1Du9NG8q81aA48bEhjl2trAZzSAp +N58HRmayYu9YCNhIDWn0jmsy5C9UKHqhhTabxVB8emRy6YtvTV5+vY1/U3pEwdEeH2g 4Q9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:message-id:in-reply-to :references:subject:mime-version; bh=lvg1QLLzNWbN7bVUQP7pwWc8HoXVAAIvy7/exmaJ7vo=; b=jnRaevytssEWb1lPRo33zwebJjTR5tkgVnCmrjyxBAek+4M4mlpREZwXCyqOnz/5Kf ZL66yFtfPY7+Vkx7yTnPwrv0fdIe9hdWy6tonWKScfX5HHlHcY+B8yUoBNGe6BLXGGHw mnm7kgJXc6phewIiespCtmmRiYGE3P7xw0ObyYBGZl9zV/RedpGu/Vq9QWZazqhoCWDQ DtB/dkalVPy9OQxnE/snBM31bnmC5yrpdLwd4xtY/5v9yvbFJnjIMMUjFejdn2ewGYh4 vKbMW4PXB5y3RYvCt/15VyTBYTZrAD7Jl6QO1q9SBzsiZouolZkL8R6RqJ9bsNqBo9cX LayQ== X-Gm-Message-State: AHQUAuYbqOjX8thNULVFspGr+Z0Po7y8vRic0ZcfjqrMRxZiSuJSr6mQ hkWlWDclv43yQuNnhimoS2rcE0k11u+gvA== X-Google-Smtp-Source: AHgI3IaAUKSVumsBBmqmRcxrs3goPBvlUy2ryjWunSTEL3oaNA78Hsm22obmP2K61SAzRM5/Aq6rwA== X-Received: by 2002:a1c:a986:: with SMTP id s128mr5327816wme.44.1550495465767; Mon, 18 Feb 2019 05:11:05 -0800 (PST) Received: from hodor ([37.97.76.230]) by smtp.gmail.com with ESMTPSA id z14sm6807730wrv.91.2019.02.18.05.11.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Feb 2019 05:11:04 -0800 (PST) Date: Mon, 18 Feb 2019 14:11:03 +0100 From: Hugues de Mazancourt To: "=?utf-8?Q?user=40uima.apache.org?=" Cc: "=?utf-8?Q?user=40uima.apache.org?=" Message-ID: <1550494869.local-14812d9c-ab05-v1.5.6-4cb1851b@getmailspring.com> In-Reply-To: <710E87B2-E94B-4304-BC35-6FA3380CF16F@gmail.com> References: <710E87B2-E94B-4304-BC35-6FA3380CF16F@gmail.com> Subject: Re: Uima and spring X-Mailer: Mailspring MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="5c6aaee7_6d681030_3841" --5c6aaee7_6d681030_3841 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Sarah, We use Uima=46it annotators in a Spring (Boot) component, but we get our = JCases from a JCasPool. Apparently, the resources are somewhat linked to the JCas (at least when = using DKPro's init method which loads resources depending on the JCas lan= guage). Using the pool makes the resources loaded only once for each entry in the= JCas Pool. This is still too much, but reduces the overhead. Best, Hugues de Mazancourt P: 06.72.78.70.33 (tel:06.72.78.70.33) W: http://www.mazancourt.com On f=C3=A9vr. 18 2019, at 12:48 pm, Sarah wrote: > Hi, > > I am using uimafit annotators in a spring component. These annotators u= se external resources. These resources are currently produced for every J= Cas even though the Aggregate Engine is created inside of the Spring comp= onent's init and merely the process method is called on the individual JC= as objects. This slows my system down. > How do I handle external resources appropriately in a spring component.= I found the SpringContextResourceManager but I don=E2=80=99t know how to= use it. Can you point me to an example where e.g. the DKPro CoreNLP Anno= tators are used in a spring context=3F > > All the best, > Sarah > --5c6aaee7_6d681030_3841--