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 6160D107C8 for ; Fri, 6 Dec 2013 17:38:02 +0000 (UTC) Received: (qmail 92528 invoked by uid 500); 6 Dec 2013 17:38:01 -0000 Delivered-To: apmail-ctakes-dev-archive@ctakes.apache.org Received: (qmail 92415 invoked by uid 500); 6 Dec 2013 17:38:01 -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 92399 invoked by uid 99); 6 Dec 2013 17:37:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Dec 2013 17:37:57 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [129.176.212.47] (HELO mail10.mayo.edu) (129.176.212.47) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Dec 2013 17:37:49 +0000 Received: from unknown (HELO mail10.mayo.edu) ([10.146.65.139]) by ironport10-dlp.mayo.edu with ESMTP; 06 Dec 2013 11:37:28 -0600 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhcFAFEKolKBsNQ1/2dsb2JhbABZgwc4UzWmVpErToEiFnSCJQEBAQQ6DzwEAgEIEQQBAQEKFAkHMhQDAQUIAgQTCBOHZwUIukCGQxeNF4FIOAaDGoETA6RmhUGDKYFoJB4 Received: from mhro1a.mayo.edu ([129.176.212.53]) by ironport10.mayo.edu with ESMTP; 06 Dec 2013 11:37:28 -0600 Received: from MSGPEXCEI06A.mfad.mfroot.org (msgpexcei06a.mayo.edu [129.176.249.167]) by mhro1a.mayo.edu with ESMTP id BT-MMP-4808895 for dev@ctakes.apache.org; Fri, 6 Dec 2013 11:37:28 -0600 Received: from msgpexcha27b.mfad.mfroot.org (129.176.249.226) by MSGPEXCEI06A.mfad.mfroot.org (129.176.249.167) with Microsoft SMTP Server (TLS) id 14.3.158.1; Fri, 6 Dec 2013 11:37:27 -0600 Received: from MSGPEXCHA08A.mfad.mfroot.org ([169.254.11.239]) by msgpexcha27b.mfad.mfroot.org ([129.176.249.226]) with mapi id 14.03.0158.001; Fri, 6 Dec 2013 11:37:27 -0600 From: "Masanz, James J." To: "'dev@ctakes.apache.org'" Subject: RE: cTAKES Groovy... Thread-Topic: cTAKES Groovy... Thread-Index: Ac7q9KBJFv2IYr9mQtyV356nZun8sQALbdTwAByH4OABaCbogABbxd+gAA3vYQAADIYvYA== Date: Fri, 6 Dec 2013 17:37:27 +0000 Message-ID: <996FC801C05DF64A84246A106FACACD020F54E@MSGPEXCHA08A.mfad.mfroot.org> References: <924DE05C19409B438EB81DE683A942D9106103EE@CHEXMBX1A.CHBOSTON.ORG> <369219E7204FD34CA27889B1C654961C26EC9392@chcspmbx2.ads.northwestern.edu> <924DE05C19409B438EB81DE683A942D910610951@CHEXMBX1A.CHBOSTON.ORG> <529F4595.5090401@childrens.harvard.edu> <996FC801C05DF64A84246A106FACACD020F489@MSGPEXCHA08A.mfad.mfroot.org> <52A20AFA.7000406@childrens.harvard.edu> In-Reply-To: <52A20AFA.7000406@childrens.harvard.edu> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.128.209.24] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Virus-Checked: Checked by ClamAV on apache.org Sounds good to me. Thanks! -----Original Message----- From: dev-return-2289-Masanz.James=3Dmayo.edu@ctakes.apache.org [mailto:dev= -return-2289-Masanz.James=3Dmayo.edu@ctakes.apache.org] On Behalf Of Tim Mi= ller Sent: Friday, December 06, 2013 11:36 AM To: dev@ctakes.apache.org Subject: Re: cTAKES Groovy... Sure, I checked it in under=20 ctakes-constituency-parser/scripts/groovy/parser.groovy per my=20 understanding of the thread from a few days go about where to put these=20 things. Tim On 12/06/2013 12:03 PM, Masanz, James J. wrote: > Tim, could you check that change in you made to not download the big reso= urces, or post it somewhere temporarily. > > I'm having this issue when trying to run the groovy script (I'm on Windo= ws 7, if that makes a difference) and having it faster might help debug. > > C:\using-groovy> groovy parser.groovy test-data-for-groovy > Reading from directory: test-data-for-groovy > Downloading: http://svn.apache.org/repos/asf/ctakes/trunk/ctakes-core-res= /src/main/resources/org/apache/ctakes/core/sentdetect/sd-med-model.zip > Caught: groovy.lang.MissingMethodException: No signature of method: java.= io.BufferedOutputStream.rightShift() is applicable for argument types: (sun= .net.www.protocol.http.HttpURLConnection$HttpInputStream) values: [sun.net.= www.protocol.http.HttpURLConnection$HttpInputStream@74be95bf] > Possible solutions: leftShift(java.lang.Object), leftShift(java.io.InputS= tream), leftShift([B) > groovy.lang.MissingMethodException: No signature of method: java.io.Buffe= redOutputStream.rightShift() is applicable for argument types: (sun.net.www= .protocol.http.HttpURLConnection$HttpInputStream) values: [sun.net.www.prot= ocol.http.HttpURLConnection$HttpInputStream@74be95bf] > Possible solutions: leftShift(java.lang.Object), leftShift(java.io.InputS= tream), leftShift([B) > at parser.downloadFile(parser.groovy:99) > at parser.run(parser.groovy:64) > > Anyone run into such an error from groovy? Anyone else running groovy on = Win7? > > -- James > > > -----Original Message----- > From: dev-return-2270-Masanz.James=3Dmayo.edu@ctakes.apache.org [mailto:d= ev-return-2270-Masanz.James=3Dmayo.edu@ctakes.apache.org] On Behalf Of Tim = Miller > Sent: Wednesday, December 04, 2013 9:09 AM > To: dev@ctakes.apache.org > Subject: Re: cTAKES Groovy... > > Very cool. I was noticing that it was downloading the umls resources whic= h the parser itself doesn't need -- so I made a change to not grab clinical= -pipeline and grab directly the things it was getting through that referenc= e and now it runs even faster with only a 35M initial download. > > I'd like to check in my change -- should we keep working out of sandbox o= r can we maybe put groovy scripts somewhere alongside the projects they bel= ong to? Maybe in the scripts/ directory or scripts/groovy, scripts/perl, et= c.? Any opinions on this? > > Tim > > > On 11/27/2013 12:19 PM, Chen, Pei wrote: >> The sample constituency parser printer should be working now... >> Just copy and paste the text to parser.groovy and make it executable. >> All you should need is groovy installed on your machine. >> http://svn.apache.org/repos/asf/ctakes/sandbox/groovy/parser.groovy >> $ parser.groovy input >> Reading from directory: input >> (TOP (S (NP-SBJ (NN patient)) (VP (VBD took) (NP (NP (NNS 50mg)) (PP >> (IN of) (NP (NP (NN aspirin)) (PP (IN for) (NP (NP (NN pain)) (PP-LOC >> (IN in) (NP (NN knee)))))))))(. .))) >> >> Maybe we could create one that will output UMLS CUI/Codes... and then ot= hers could easily modify to their needs. >> >> --Pei >>> -----Original Message----- >>> From: William Karl Thompson [mailto:wkt@northwestern.edu] >>> Sent: Tuesday, November 26, 2013 10:46 PM >>> To: dev@ctakes.apache.org >>> Subject: RE: cTAKES Groovy... >>> >>> That is very cool! >>> >>> Since we're talking Groovy, I'd just like make a plug for Gradle, a >>> fantastic build/deployment/dependency management tool that is in many >>> ways much nicer to work with than Maven, though it plays nicely with >>> Maven (for example, it can use Maven repositories). Gradle is also prov= en technology: >>> it's the build tool for the Android operating system. >>> ________________________________________ >>> From: Chen, Pei [Pei.Chen@childrens.harvard.edu] >>> Sent: Tuesday, November 26, 2013 4:13 PM >>> To: dev@ctakes.apache.org >>> Subject: cTAKES Groovy... >>> >>> Tim had a good end user use case: >>> I just want to use the ctakes constituency parser and output the tree >>> text to console. >>> So I was inspired by Richard example of groovy... >>> Check out: >>> http://svn.apache.org/repos/asf/ctakes/sandbox/groovy/parser.groovy >>> >>> The groovy script will "Automagically" download the required >>> classes,jars,resources and automatically runs. >>> No longer requires the user to have any knowledge of UIMA, cTAKES, etc. >>> Sample: >>> $ parser.groovy input >>> Reading from directory: input >>> patient took 50mg of aspirin for pain in knee. >>> begin:0 end:48 >>> >>> Pretty cool, 'eh... >>> --Pei