Return-Path: X-Original-To: apmail-uima-user-archive@www.apache.org Delivered-To: apmail-uima-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 009ED171B6 for ; Tue, 17 Nov 2015 08:06:16 +0000 (UTC) Received: (qmail 54326 invoked by uid 500); 17 Nov 2015 08:06:16 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 54263 invoked by uid 500); 17 Nov 2015 08:06:16 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 54246 invoked by uid 99); 17 Nov 2015 08:06:16 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2015 08:06:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id ECAFE180A63 for ; Tue, 17 Nov 2015 08:06:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.98 X-Spam-Level: *** X-Spam-Status: No, score=3.98 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id V1W8etYfaZH3 for ; Tue, 17 Nov 2015 08:06:09 +0000 (UTC) Received: from mx-relay16.cloudservice.ag (mx-relay16.cloudservice.ag [81.20.94.72]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 950B822F1D for ; Tue, 17 Nov 2015 08:06:08 +0000 (UTC) Received: from fw1.hostedoffice.ag ([81.20.90.82]) by mx-gate16.cloudservice.ag; Tue, 17 Nov 2015 09:06:00 +0100 Received: from EX10HUB1.hosting.inetserver.de (unknown [10.20.10.69]) by qhexrelay1.hosting.inetserver.de (Postfix) with ESMTP id AAD98175D18 for ; Tue, 17 Nov 2015 09:05:59 +0100 (CET) Received: from EX10MBOX1K.hosting.inetserver.de ([fe80::2168:b1c1:fe:2e86]) by EX10HUB1.hosting.inetserver.de ([fe80::4567:7f6b:567d:bee3%11]) with mapi id 14.03.0235.001; Tue, 17 Nov 2015 09:05:59 +0100 From: Wolf-Dietrich Materna To: "user@uima.apache.org" Subject: How to use string functions from ruta-core-ext in Ruta Thread-Topic: How to use string functions from ruta-core-ext in Ruta Thread-Index: AdEhDslW9Y67S0i9TbeKY8pkBAlkJg== Date: Tue, 17 Nov 2015 08:05:58 +0000 Message-ID: Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [80.187.97.111] x-exclaimer-md-config: e299f49b-79fd-4cde-afcd-99df35de8a6e x-hostedoffice-tnef: done Content-Type: multipart/alternative; boundary="_000_FA7FC2E3E682604190E37F49A7E3023E2E089B17EX10MBOX1Khosti_" MIME-Version: 1.0 X-cloud-security-sender: wolf-dietrich.materna@empolis.com X-cloud-security-recipient: user@uima.apache.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mx-gate16 with CAAF42118004 X-cloud-security-connect: fw1.hostedoffice.ag[81.20.90.82], TLS=0, IP=81.20.90.82 X-cloud-security: scantime:.3195 --_000_FA7FC2E3E682604190E37F49A7E3023E2E089B17EX10MBOX1Khosti_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I'd like to use the Ruta string functions referenced in the user guide here= : https://uima.apache.org/d/ruta-2.3.0/tools.ruta.book.html#ugr.tools.ruta.= language.extensions.core-ext.stringfunctions The problem is, they don't work out of the box in the Ruta Workbench 2.3.1 = with Eclipse 4.4.2. I've set up a new Ruta project with a script containing= the (slightly modified) code from the substring example: DECLARE Test; // I've added this line to make the example work. STRING s; STRINGLIST sl; CW{-> MATCHEDTEXT(s), ADD(sl, substring(s,0,8))}; CW{INLIST(sl) -> Test}; // Changed SW to CW to make the rule work. The input file only contains two words, "Alexanderplatz" and "Alexander". W= hat I expected was that the first rule finds "Alexanderplatz" and stores th= e first nine letters of it in the string list sl so that the last line can= annotate "Alexander" with "Test". In reality, however, nothing happens. I = get no error message, but after execution, there is no "Test" annotation. Is there some additional configuration needed to access these string functi= ons? Any help would be appreciated. Best Regards, Wolf-Dietrich Materna --_000_FA7FC2E3E682604190E37F49A7E3023E2E089B17EX10MBOX1Khosti_--