Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5F932200CA2 for ; Tue, 28 Jun 2016 08:14:16 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5E53D160A63; Tue, 28 Jun 2016 06:14:16 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 85CF6160A5B for ; Tue, 28 Jun 2016 08:14:15 +0200 (CEST) Received: (qmail 67152 invoked by uid 500); 28 Jun 2016 06:14:14 -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 67136 invoked by uid 99); 28 Jun 2016 06:14:14 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jun 2016 06:14:14 +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 EADC2C13A3 for ; Tue, 28 Jun 2016 06:14:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.499 X-Spam-Level: X-Spam-Status: No, score=0.499 tagged_above=-999 required=6.31 tests=[KAM_LINEPADDING=1.2, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id HLzYKC62qDXT for ; Tue, 28 Jun 2016 06:14:11 +0000 (UTC) Received: from mx0a-0018d701.pphosted.com (mx0b-0018d701.pphosted.com [67.231.157.102]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 9C6095F476 for ; Tue, 28 Jun 2016 06:14:11 +0000 (UTC) Received: from pps.filterd (m0049739.ppops.net [127.0.0.1]) by m0049739.ppops.net-0018d701. (8.16.0.11/8.16.0.11) with SMTP id u5S6B0EY009419 for ; Tue, 28 Jun 2016 02:14:05 -0400 Authentication-Results: ppops.net; spf=pass smtp.mail=pabramowitsch@hearst.com Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1lp0139.outbound.protection.outlook.com [207.46.163.139]) by m0049739.ppops.net-0018d701. with ESMTP id 23u9nd62fd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Tue, 28 Jun 2016 02:14:05 -0400 Received: from CY1PR0601MB1486.namprd06.prod.outlook.com (10.163.22.12) by CY1PR0601MB1487.namprd06.prod.outlook.com (10.163.22.13) with Microsoft SMTP Server (TLS) id 15.1.528.16; Tue, 28 Jun 2016 06:14:03 +0000 Received: from CY1PR0601MB1486.namprd06.prod.outlook.com ([10.163.22.12]) by CY1PR0601MB1486.namprd06.prod.outlook.com ([10.163.22.12]) with mapi id 15.01.0528.017; Tue, 28 Jun 2016 06:14:03 +0000 From: "Abramowitsch, Peter" To: "dev@ctakes.apache.org" Subject: Re: CTakes APIs Thread-Topic: CTakes APIs Thread-Index: AQHR0P+jYEZfQnCmbUq9xjpQnsC7D5/+YLgA//+QdwA= Date: Tue, 28 Jun 2016 06:14:03 +0000 Message-ID: References: <56B354D6-B72F-44A7-AE69-17F96303FB6A@jpl.nasa.gov> In-Reply-To: <56B354D6-B72F-44A7-AE69-17F96303FB6A@jpl.nasa.gov> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.4.1.140326 x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [73.170.5.61] x-ms-office365-filtering-correlation-id: f3ca29a2-0b74-4b8f-98ac-08d39f1b673b x-microsoft-exchange-diagnostics: 1;CY1PR0601MB1487;6:R2p3Z3zk0yz8ZeVeoCfUDai05YK/OYLvQy6MjmpPZoaryrVVylwtRj2MbgW4EaN0ct2X1gLQtvK7UuVmwRfcZdHNaYL3IoRZq85F/MAq0+8WN1Yol3vc+NoPFZWvDF34IVoICT9CPEd2vI1JsHP4Q+3uYBnLBRj2aUbHLXyKFgwFQhQlrjcSLe5e1a5owDxptGEK2IyBocEz2MtW7x4iga7kf6u8VdkXndzPN7Kd7TymeypqGqXpMxbWS+Oo1itvOUWPzU/hRNy2xTFIc371nWbHVxxRkAsM46yirI55CXnexWBUE1DpJGc3LWacBQY6IQoMZLdyJzdX7B+yRHKR4A==;5:eOJbLe875Xpny/vOFYT2DWKKS+0nsAZlTXsV56DBGoC9PNp3hv5RwNqC/Z9M0NXpQ1mGFHvf0VxlorbBBKt4XhgsRMpcp95KKueQcfCMN9wlY5dtQENyObcPHqrMjQbTnD6MDzz+iSSTIIkI+sBzHw==;24:HaT8sjxoWRwgS1QbaehFm7liOIUEzwBNRut0xNIx/sTFR5CSwNjUvYa12IfYwuJdW7SEJNWjU7DhxofhpJoRKWyvu85Eqm8KwCNxzMTV5wY=;7:WLQRxw2vK/vgk1xadfVAq99AUN0HaQgRgZJ9lTheH+mRCFfi/JFpl/Eqj8h2SaVsxOdht99iFllWnoBAWzxeKRg7IMHIkRhvkUf/OTUimOgWtuiq23lDGjRwtcPpVPh3DNw5R17eWExiMcDzBT1EHW6FtLH+FJBedWT80vr3Tmf8kYdzLCtMOBa61ikQqxWNAp65CPx3Njoxo2LyvlbGZZhKiNPe4OvjhIzFeJGwMESNALoHq0N5gaJyGCBtsuB+ x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0601MB1487; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(10436049006162)(271806183753584); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026);SRVR:CY1PR0601MB1487;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0601MB1487; x-forefront-prvs: 0987ACA2E2 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(7916002)(189002)(52044002)(377454003)(24454002)(199003)(252514010)(97736004)(110136002)(107886002)(36756003)(189998001)(99286002)(105586002)(101416001)(77096005)(2351001)(4001350100001)(3280700002)(106356001)(50986999)(54356999)(83506001)(76176999)(19580395003)(3480700004)(19580405001)(86362001)(575784001)(106116001)(586003)(5002640100001)(450100001)(8936002)(102836003)(11100500001)(122556002)(3660700001)(7846002)(3846002)(6116002)(81166006)(305945005)(2900100001)(7736002)(10400500002)(2906002)(68736007)(66066001)(221733001)(1730700003)(92566002)(15975445007)(87936001)(81156014)(2501003)(2950100001)(8676002);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR0601MB1487;H:CY1PR0601MB1486.namprd06.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: hearst.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: <180597EEF7578C4289C8816AB65204C5@namprd06.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hearst.com X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Jun 2016 06:14:03.1601 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a84894e7-87c5-40e3-9783-320d0334b3cc X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0601MB1487 X-Proofpoint-SPF-Result: pass X-Proofpoint-SPF-Record: v=spf1 include:spf.protection.outlook.com include:spf-0018d701.pphosted.com ~all X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1604210000 definitions=main-1606280056 archived-at: Tue, 28 Jun 2016 07:18:41 -0000 I created one in about 15 minutes using SparkJava. Basically you look at the code in the ClinicalPipeline package that gives you the workflow to create a pipeline, assign incoming text to a newly created Jcas, and then run the pipeline, finally calling a Json or XmlSerializer on the populated CAS object. =20 Exposing that as a webservice can be as little as this. import static spark.Spark.post; public static void main(String[] args) { spark.Spark.port(8080); Main n =3D new Main(); try { n.createPipeline(); } catch (UIMAException | IOException | SAXException | URISyntaxException e) { e.printStackTrace(); } post("/ctakeparse", (request, response) -> n.mymethod(request, response)); } Ok I admit there are a few more lines of code. Maybe a couple of hundred. Note that you can build the pipeline once (where a lot of heavy lifting happens), and then use it repeatedly, just resetting the Jcas object between invocations of the webservice. - Peter On 6/27/16, 10:53 PM, "Mattmann, Chris A (3980)" wrote: >Hi Vicky, > > > >We expose cTAKES as a REST API in Apache Tika, have a look at: > > > >https://urldefense.proofpoint.com/v2/url?u=3Dhttp-3A__wiki.apache.org_tika= _c >TAKESParser&d=3DCwIGaQ&c=3DB73tqXN8Ec0ocRmZHMCntw&r=3D5LM1YwNyMUq7CWiSepCC= sjTjwu >VF4uswNF8BK5Orm10&m=3D1SVXxf4S1egpSNODcQrYvhw8Abzzs1JKduk_Ffv2CCg&s=3DX-ui= 3HMW >13oQkeJirW9tClgw4HxyQa36TaItq_IWqLs&e=3D > > > >Best of luck! Feel free to ask questions here and/or on the Apache > >Tika lists. > > > >Cheers, > >Chris > > > >++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > >Chris Mattmann, Ph.D. > >Chief Architect > >Instrument Software and Science Data Systems Section (398) > >NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA > >Office: 168-519, Mailstop: 168-527 > >Email: chris.a.mattmann@nasa.gov > >WWW: =20 >https://urldefense.proofpoint.com/v2/url?u=3Dhttp-3A__sunset.usc.edu_-7Ema= tt >mann_&d=3DCwIGaQ&c=3DB73tqXN8Ec0ocRmZHMCntw&r=3D5LM1YwNyMUq7CWiSepCCsjTjwu= VF4usw >NF8BK5Orm10&m=3D1SVXxf4S1egpSNODcQrYvhw8Abzzs1JKduk_Ffv2CCg&s=3DeT-uqWdrrK= MxLl >FhKD9wMeop_lAnmHJqfifncYEwVkw&e=3D > >++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > >Director, Information Retrieval and Data Science Group (IRDS) > >Adjunct Associate Professor, Computer Science Department > >University of Southern California, Los Angeles, CA 90089 USA > >WWW:=20 >https://urldefense.proofpoint.com/v2/url?u=3Dhttp-3A__irds.usc.edu_&d=3DCw= IGaQ >&c=3DB73tqXN8Ec0ocRmZHMCntw&r=3D5LM1YwNyMUq7CWiSepCCsjTjwuVF4uswNF8BK5Orm1= 0&m=3D >1SVXxf4S1egpSNODcQrYvhw8Abzzs1JKduk_Ffv2CCg&s=3Dy6v1EvIP_vH-3Hb4wbGYGAADcD= zc >2p3q7TySHdgVb3Q&e=3D > >++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > > > > > > > > > > > > > > > > > > > >On 6/27/16, 10:40 PM, "Vicky Chawda" wrote: > > > >>Is there any API or REST interface is available for CTakes.? > >>Regards, > >> > >>*Vicky Chawda.* > >>*Software Engineer,* > >>*Praxify Technologies, Inc.* > >>Icon Tower, Main Road, Baner, Pune-411045. > >>[image:=20 >>https://urldefense.proofpoint.com/v2/url?u=3Dhttps-3A__www.praxify.com_&d= =3DC >>wIGaQ&c=3DB73tqXN8Ec0ocRmZHMCntw&r=3D5LM1YwNyMUq7CWiSepCCsjTjwuVF4uswNF8B= K5Or >>m10&m=3D1SVXxf4S1egpSNODcQrYvhw8Abzzs1JKduk_Ffv2CCg&s=3DeCVrlCS5kIJUGEDil= pPZk >>x_INH0LdSz66xKRn1e4Oyc&e=3D ] >>>CwIGaQ&c=3DB73tqXN8Ec0ocRmZHMCntw&r=3D5LM1YwNyMUq7CWiSepCCsjTjwuVF4uswNF8= BK5O >>rm10&m=3D1SVXxf4S1egpSNODcQrYvhw8Abzzs1JKduk_Ffv2CCg&s=3DeCVrlCS5kIJUGEDi= lpPZ >>kx_INH0LdSz66xKRn1e4Oyc&e=3D > >