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 BC72610714 for ; Fri, 6 Dec 2013 17:13:18 +0000 (UTC) Received: (qmail 36857 invoked by uid 500); 6 Dec 2013 17:13:17 -0000 Delivered-To: apmail-ctakes-dev-archive@ctakes.apache.org Received: (qmail 36828 invoked by uid 500); 6 Dec 2013 17:13:16 -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 36820 invoked by uid 99); 6 Dec 2013 17:13:16 -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:13:16 +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:13:08 +0000 Received: from unknown (HELO mail10.mayo.edu) ([10.146.65.140]) by ironport10-dlp.mayo.edu with ESMTP; 06 Dec 2013 11:12:47 -0600 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhcFAGIEolKBsNQ1/2dsb2JhbABZgwc4UzWmVpErToEiFnSCJQEBAQQ6DzwEAgEIEQQBAQEKFAkHMhQDAQUIAQEEEwgTh2cFCLpAhkMXjReBSDgGgxqBEwOkZoVBgymBaCQe Received: from mhro1a.mayo.edu ([129.176.212.53]) by ironport10.mayo.edu with ESMTP; 06 Dec 2013 11:12:47 -0600 Received: from MSGPEXCEI06A.mfad.mfroot.org (msgpexcei06a.mayo.edu [129.176.249.167]) by mhro1a.mayo.edu with ESMTP id BT-MMP-4797346 for dev@ctakes.apache.org; Fri, 6 Dec 2013 11:12:47 -0600 Received: from MSGPEXCHA09A.mfad.mfroot.org (129.176.250.16) by MSGPEXCEI06A.mfad.mfroot.org (129.176.249.167) with Microsoft SMTP Server (TLS) id 14.3.158.1; Fri, 6 Dec 2013 11:12:46 -0600 Received: from MSGPEXCHA08A.mfad.mfroot.org ([169.254.11.239]) by MSGPEXCHA09A.mfad.mfroot.org ([169.254.12.76]) with mapi id 14.03.0158.001; Fri, 6 Dec 2013 11:12:46 -0600 From: "Masanz, James J." To: "'dev@ctakes.apache.org'" Subject: RE: cTAKES Groovy... Thread-Topic: cTAKES Groovy... Thread-Index: Ac7q9KBJFv2IYr9mQtyV356nZun8sQALbdTwAByH4OABaCbogABbxd+gAACEj7A= Date: Fri, 6 Dec 2013 17:12:46 +0000 Message-ID: <996FC801C05DF64A84246A106FACACD020F4CC@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> In-Reply-To: <996FC801C05DF64A84246A106FACACD020F489@MSGPEXCHA08A.mfad.mfroot.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.128.209.21] 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 FYI, the groovy error I was getting was a typo on my part I had this: out >> new URL(url).openStream() instead of=20 out << new URL(url).openStream() so it was trying to do a shift operation of some sort -----Original Message----- From: dev-return-2286-Masanz.James=3Dmayo.edu@ctakes.apache.org [mailto:dev= -return-2286-Masanz.James=3Dmayo.edu@ctakes.apache.org] On Behalf Of Masanz= , James J. Sent: Friday, December 06, 2013 11:03 AM To: 'dev@ctakes.apache.org' Subject: RE: cTAKES Groovy... Tim, could you check that change in you made to not download the big resour= ces, or post it somewhere temporarily.=20 I'm having this issue when trying to run the groovy script (I'm on Windows= 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/s= rc/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.n= et.www.protocol.http.HttpURLConnection$HttpInputStream) values: [sun.net.ww= w.protocol.http.HttpURLConnection$HttpInputStream@74be95bf] Possible solutions: leftShift(java.lang.Object), leftShift(java.io.InputStr= eam), leftShift([B) groovy.lang.MissingMethodException: No signature of method: java.io.Buffere= dOutputStream.rightShift() is applicable for argument types: (sun.net.www.p= rotocol.http.HttpURLConnection$HttpInputStream) values: [sun.net.www.protoc= ol.http.HttpURLConnection$HttpInputStream@74be95bf] Possible solutions: leftShift(java.lang.Object), leftShift(java.io.InputStr= eam), 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 Wi= n7? -- James -----Original Message----- From: dev-return-2270-Masanz.James=3Dmayo.edu@ctakes.apache.org [mailto:dev= -return-2270-Masanz.James=3Dmayo.edu@ctakes.apache.org] On Behalf Of Tim Mi= ller 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 which = the parser itself doesn't need -- so I made a change to not grab clinical-p= ipeline and grab directly the things it was getting through that reference = 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 or = can we maybe put groovy scripts somewhere alongside the projects they belon= g to? Maybe in the scripts/ directory or scripts/groovy, scripts/perl, etc.= ? 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=20 > (IN of) (NP (NP (NN aspirin)) (PP (IN for) (NP (NP (NN pain)) (PP-LOC=20 > (IN in) (NP (NN knee)))))))))(. .))) > > Maybe we could create one that will output UMLS CUI/Codes... and then oth= ers 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=20 >> fantastic build/deployment/dependency management tool that is in many=20 >> ways much nicer to work with than Maven, though it plays nicely with=20 >> Maven (for example, it can use Maven repositories). Gradle is also prove= n 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=20 >> 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=20 >> 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