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 F2FB111A4A for ; Thu, 21 Aug 2014 21:01:02 +0000 (UTC) Received: (qmail 25904 invoked by uid 500); 21 Aug 2014 21:01:02 -0000 Delivered-To: apmail-ctakes-dev-archive@ctakes.apache.org Received: (qmail 25855 invoked by uid 500); 21 Aug 2014 21:01:02 -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 25837 invoked by uid 99); 21 Aug 2014 21:01:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Aug 2014 21:01:02 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of john.travis.green@gmail.com designates 209.85.216.54 as permitted sender) Received: from [209.85.216.54] (HELO mail-qa0-f54.google.com) (209.85.216.54) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Aug 2014 21:00:36 +0000 Received: by mail-qa0-f54.google.com with SMTP id k15so8851259qaq.13 for ; Thu, 21 Aug 2014 14:00:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:mime-version:message-id:in-reply-to:references:from:to:subject :content-type; bh=o/IQiAJ7CnL33hS+FMu3/1gQcSrliKieuVorY3AxzmE=; b=yo9xpLT5Y1TnitIp7k1Xu+cleTxOWTySfHD0Bkhbxf4Cros+pLJ44BBOUVCFZGLxwG eNDyfroq/6BPnsZE1cCJf0J501MX5S4RIYTleoCfF8RkF9v3zbAMHcyUW+ljLYtZiaFr 8VQZTtoeYGzZKESA+kZZFtlMo4ZfIWEYnQCBmi3zNxBN3Q1qnv7hbG+8U8UQF8VCnzn/ uZx/llF+t7xfbI6RNOK0HXLZ4m/QNqDBhIebZY7BWsGd63/OhylAEIEFKzon4j5bFbjf P9T1mX0HVM5iRGFPtWyqdc1AcFakukLFoXHEcFT/Vz4pJiN2/FwUd9JFVrAnmVQPQ43n sO8Q== X-Received: by 10.224.88.3 with SMTP id y3mr1660679qal.65.1408654835282; Thu, 21 Aug 2014 14:00:35 -0700 (PDT) Received: from hedwig-7.prd.orcali.com (ec2-54-85-253-15.compute-1.amazonaws.com. [54.85.253.15]) by mx.google.com with ESMTPSA id p46sm30678069qgd.11.2014.08.21.14.00.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Aug 2014 14:00:34 -0700 (PDT) Date: Thu, 21 Aug 2014 14:00:34 -0700 (PDT) X-Google-Original-Date: Thu, 21 Aug 2014 21:00:34 GMT MIME-Version: 1.0 X-Mailer: Nodemailer (0.5.0; +http://www.nodemailer.com/) Message-Id: <1408654834751.e30266e6@Nodemailer> In-Reply-To: References: X-Orchestra-Oid: ABC21ED0-0AD7-4431-9505-1962C3F682CA X-Orchestra-Sig: 3073b94378ed38077931445504328d5186c439de X-Orchestra-Thrid: TEAE0E204-147D-4C4C-82EB-B244E06A87A6_1476575368987723118 X-Orchestra-Thrid-Sig: 77dfebc00c7cc5fe6e12d4213225f88bf0c8f579 X-Orchestra-Account: c11f4002364ef0214a3ed7b51257526da4888d6e From: "John Green" To: dev@ctakes.apache.org Subject: Re: Change from SNOMEDCT to SNOMEDCT_US affecting v_snomed_fword_lookup Content-Type: multipart/alternative; boundary="----Nodemailer-0.5.0-?=_1-1408654834908" X-Virus-Checked: Checked by ClamAV on apache.org ------Nodemailer-0.5.0-?=_1-1408654834908 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Clayton - this indeed did fix the @db.schema@ for you=3F Im gonna try and = reproduce (havent had time yet) then ill close the Jira ticket out. JG =E2=80=94 Sent from Mailbox for iPhone On Thu, Aug 21, 2014 at 1:24 PM, Clayton Turner wrote: > Ah, I just switched to the ytex branch and all is good now. The = SNOMED=5FUS > issue has been plaguing me for weeks now so thanks a million for that. > On Thu, Aug 21, 2014 at 2:13 PM, Clayton Turner > wrote: >> Awesome. This is just what I needed for the longest time. >> >> I'm having a slight issue. When running either the ytex pipeline or = ytex >> version of the AggregatePlaintextUMLSProcessor I get an error during >> initialization. >> >> My DictionaryLookupAnnotator.xml is raising a >> org.apache.uima.resource.ResourceInitializationException causedby: >> java.lang.ClassNotFoundException: >> edu.mayo.bmi.uima.lookup.ae.FirstTokenPermLookupInitializerImpl >> >> I feel like I may have drifted away from what I need, though, because >> before this the CPE was complaining about a lack of LookupDesc=5FSNOMED.= xml >> file. I found a ytex version of this on a google code site somewhere = and >> pasted it where the CPE was looking for it. Now this error is coming up.= >> >> Could my problem be solved with just a re-run of the ant script (was = just >> trying to avoid since it takes ages) or is it a different issue=3F >> >> >> On Tue, Aug 19, 2014 at 12:58 PM, Tim O'Connell >> wrote: >> >>> Hi John, >>> >>> I'm not sure what was going on with the @db.schema@ error, although I = was >>> getting it as well before with my prior build of 3.1.2 - I assume that >>> you've fixed something (thank you!) to make this go away. I rebuilt >>> everything from scratch and it's working now. >>> >>> I think one other thing I had to change was that after I had finished = the >>> install/build, the cTakes version of LookupDesc=5FDb.xml doesn't work = (in >>> resources\org\apache\ctakes\dictionary\lookup) - I'm pretty sure I had = to >>> copy in an older version of the file from 3.1.1 to get the default = cTakes >>> AggregatePlaintextUMLSProcessor pipeline working, although please >>> double-check that as my memory is a little foggy. >>> >>> But yes, here's what I have working since re-building: >>> 1. ytex-pipeline.xml >>> 2. ytex version of AggregatePlaintextUMLSProcessor.xml >>> 3. cTakes version of AggregatePlaintextUMLSProcessor.xml (with = swapping >>> the >>> LookupDesc=5FDb.xml file as above) >>> >>> I've even made modifications to the ytex version of LookupDesc=5FSNOMED= .xml >>> to get it tagging Disease Disorders, along with database modifications = to >>> have it store these entries as well, which is working great. = Literally, >>> everything is working perfectly now. >>> >>> Still so much for me to learn! Let me know if you need any more = details. >>> >>> All the best, >>> Tim >>> >>> >>> >>> On Tue, Aug 19, 2014 at 4:31 AM, John Green >>> wrote: >>> >>> > I have not had time to implement this - to clarify out of curiosity, >>> does >>> > this clear up the @db.schema@ error Tim=3F And did you successfully = run >>> > ytex with the ctakes dictionary-lookup=3F >>> > >>> > >>> > JG >>> > =E2=80=94 >>> > Sent from Mailbox for iPhone >>> > >>> > On Sat, Aug 16, 2014 at 2:53 AM, Tim O'Connell >>> > wrote: >>> > >>> > > Hi folks, >>> > > I was having an issue with the current build (from svn) of = ctakes/ytex >>> > not >>> > > identifying any annotations as some folks on this board. I traced = it >>> to >>> > > the fact that the UMLS database has at sometime in the relatively >>> recent >>> > > past changed the SAB tag in the MRCONSO table for SNOMED terms = from >>> > > SNOMEDCT to SNOMEDCT=5FUS. I just had a newer version of UMLS that= uses >>> > > SNOMEDCT=5FUS. Thus when the install script tried to create the >>> > > v=5Fsnomed=5Ffword=5Flookup table, it wasn't finding any of the = SNOMEDCT >>> terms, >>> > > thus nothing was getting annotated. >>> > > The ytex install script was just looking for things in MRCONSO = with >>> the >>> > > SNOMEDCT SAB tag when it created the ytex lookup table - so, by >>> changing >>> > > this to SNOMEDCT=5FUS in the file >>> > > >>> > >>> CTAKES=5FHOME/bin/ctakes-ytex/scripts/data/mysql/umls/insert=5Fview=5Ft= emplate.sql >>> > > it now works (for mysql users) to find the annotations. You can = just >>> > re-run >>> > > the ytex setup script, but that takes hours - instead, I just = deleted >>> all >>> > > the data from the v=5Fsnomed=5Ffword=5Flookup table and basically = ran the >>> sql >>> > > command to repopulate the table and it worked fine. Here's the code= , >>> n.b. >>> > > my schema name for my umls database is 'umls' - change the code = below >>> if >>> > > yours is different. >>> > > delete from v=5Fsnomed=5Ffword=5Flookup; >>> > > insert into v=5Fsnomed=5Ffword=5Flookup (cui, tui, fword, fstem, = tok=5Fstr, >>> > > stem=5Fstr) >>> > > select mrc.cui, t.tui, c.fword, c.fstem, c.tok=5Fstr, c.stem=5Fstr >>> > > from umls=5Faui=5Ffword c >>> > > inner join umls.MRCONSO mrc on c.aui =3D mrc.aui and mrc.SAB in ( >>> > > 'SNOMEDCT=5FUS', 'RXNORM') >>> > > inner join >>> > > ( >>> > > select cui, min(tui) tui >>> > > from umls.MRSTY sty >>> > > where sty.tui in >>> > > ( >>> > > 'T019', 'T020', 'T037', 'T046', 'T047', 'T048', 'T049', 'T050', >>> > > 'T190', 'T191', 'T033', >>> > > 'T184', >>> > > 'T017', 'T029', 'T023', 'T030', 'T031', 'T022', 'T025', 'T026', >>> > > 'T018', 'T021', 'T024', >>> > > 'T116', 'T195', 'T123', 'T122', 'T118', 'T103', 'T120', 'T104',= >>> > > 'T200', 'T111', 'T196', 'T126', 'T131', 'T125', 'T129', = 'T130', >>> > > 'T197', 'T119', 'T124', 'T114', 'T109', 'T115', 'T121', = 'T192', >>> > > 'T110', 'T127', >>> > > 'T060', 'T065', 'T058', 'T059', 'T063', 'T062', 'T061', >>> > > 'T074', 'T075', >>> > > 'T059' >>> > > ) >>> > > group by cui >>> > > ) t on t.cui =3D mrc.cui >>> > > ; >>> > > Hope it helps - cheers, >>> > > Tim >>> > >>> >> >> >> >> -- >> -- >> Clayton Turner >> email: caturner3@g.cofc.edu >> phone: (843)-424-3784 >> web: claytonturner.blogspot.com >> >> ------------------------------------------------------------------------= ------------------------- >> =E2=80=9CWhen scientifically investigating the natural world, the only = thing worse >> than a blind believer is a seeing denier.=E2=80=9D >> - Neil deGrasse Tyson >> > --=20 > -- > Clayton Turner > email: caturner3@g.cofc.edu > phone: (843)-424-3784 > web: claytonturner.blogspot.com > -------------------------------------------------------------------------= ------------------------ > =E2=80=9CWhen scientifically investigating the natural world, the only = thing worse > than a blind believer is a seeing denier.=E2=80=9D > - Neil deGrasse Tyson ------Nodemailer-0.5.0-?=_1-1408654834908--