Return-Path: X-Original-To: apmail-ctakes-dev-archive@www.apache.org Delivered-To: apmail-ctakes-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C47F818087 for ; Thu, 15 Oct 2015 20:18:14 +0000 (UTC) Received: (qmail 98135 invoked by uid 500); 15 Oct 2015 20:18:09 -0000 Delivered-To: apmail-ctakes-dev-archive@ctakes.apache.org Received: (qmail 98080 invoked by uid 500); 15 Oct 2015 20:18:09 -0000 Mailing-List: contact dev-help@ctakes.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ctakes.apache.org Delivered-To: mailing list dev@ctakes.apache.org Received: (qmail 98069 invoked by uid 99); 15 Oct 2015 20:18:09 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Oct 2015 20:18:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id A1C8DC4990 for ; Thu, 15 Oct 2015 20:18:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.999 X-Spam-Level: X-Spam-Status: No, score=0.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H2=-0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Sp6vtgemDuca for ; Thu, 15 Oct 2015 20:18:07 +0000 (UTC) Received: from mail-qg0-f43.google.com (mail-qg0-f43.google.com [209.85.192.43]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 92779206E8 for ; Thu, 15 Oct 2015 20:18:06 +0000 (UTC) Received: by qgt47 with SMTP id 47so81623729qgt.2 for ; Thu, 15 Oct 2015 13:18:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:content-transfer-encoding:from :mime-version:subject:message-id:date:references:in-reply-to:to; bh=YUTlu03dRmWDM7QcOZQ12uTjCd4qRLMQZbSRxWBMpRg=; b=SynWAvZRRPs8OkBPIcaHEyuB105/Ti7+HsIbNs5xCHyZAAcYHKwfdmIXgc385PONvV aHjReBJA1JvwAmAa3d4A4gYyVvU9QvF5BcdtIQ1cKMC4GEM0zyapGZIZQVGEm7RIXZKe VBrUDni0yO4BUulelC7snM3ktMmOqXA60D+11uryGuj4k34GeKovCD3OoMWswG7MUQ3f wi+FG726QJEF/IvNNjjCfA23wA8mPW+5V/m6ghxSIa2f0fujBoZnAt0HtWUgjidOoXgY lWMeJuAG+/3j93IZ4tYy2l1XwOvKrm3xfQqjJMCjB7NnWnn0G1ZM30s5idQoE1lD6vPV 9QSg== X-Gm-Message-State: ALoCoQnl8L2cNmMT0T5BxDVqUdk+tWz8opC7c2Vy4t+Y0j1w2c/RDpeeL6L/pthY94ZS47EOWC+0 X-Received: by 10.140.148.203 with SMTP id 194mr15264928qhu.102.1444940285668; Thu, 15 Oct 2015 13:18:05 -0700 (PDT) Received: from [33.36.123.138] ([172.56.37.205]) by smtp.gmail.com with ESMTPSA id t77sm6149271qgt.24.2015.10.15.13.18.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 15 Oct 2015 13:18:04 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable From: Pei Chen Mime-Version: 1.0 (1.0) Subject: Re: Hard-coded paths in medfacts/cleartk Message-Id: <5E9B2C73-3A39-410F-8F93-BBDCB0D74216@wiredinformatics.com> Date: Thu, 15 Oct 2015 16:04:24 -0400 References: In-Reply-To: To: dev@ctakes.apache.org X-Mailer: iPhone Mail (13A452) Hi Nguyen, Good to hear from you? How is ARC doing? I was looking to download a copy t= he other day but couldn't find it online anymore.=20 But yes, we can make those paths configurable just like the models.=20 If you can, open a Jira to track this? (Anyone should be able to create a ne= w Jira account) Sent from my iPhone > On Oct 15, 2015, at 2:55 PM, Thien Nguyen w= rote: >=20 > Hi all, >=20 > It's been awhile (some of you may remember me from ARC) but I'm working on= > embedding the latest cTAKES 3.2.2 into some tooling. I ran into an issue > with classes in the `org.apache.ctakes.assertion.medfacts.cleartk` because= > the analysis engines there have explicit paths for the > `ContextWordWindowExtractor`. For example: >=20 > public class HistoryCleartkAnalysisEngine extends > AssertionCleartkAnalysisEngine { > ... > private void initialize_history_extractor() { >=20 > if(this.entityFeatureExtractors =3D=3D null){ > this.entityFeatureExtractors =3D new ArrayList<>(); > } > this.entityFeatureExtractors.add(*new > ContextWordWindowExtractor("org/apache/ctakes/assertion/models/history.txt= ")* > ); > this.entityFeatureExtractors.add(new > HistoryFeaturesExtractor()); > } > ... >=20 > And this forced me to put those files into the root of my project (i.e. > /my-project/org/apache/ctakes/assertion/models/history.txt). Since it seem= s > all other resources have the paths configurable in the descriptor xml > files, should these follow suit and be considered a bug? >=20 > Thanks again for all your work on cTAKES. Fun to watch it go from > pre-Apache days to where it's at now. >=20 > Thien