From user-return-8146-archive-asf-public=cust-asf.ponee.io@uima.apache.org Tue Jun 18 23:24:16 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 212E618066B for ; Wed, 19 Jun 2019 01:24:16 +0200 (CEST) Received: (qmail 66890 invoked by uid 500); 18 Jun 2019 23:24:15 -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 66878 invoked by uid 99); 18 Jun 2019 23:24:14 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jun 2019 23:24:14 +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 49BDD180F69 for ; Tue, 18 Jun 2019 23:24:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.8 X-Spam-Level: * X-Spam-Status: No, score=1.8 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 4DVjx08A3FRb for ; Tue, 18 Jun 2019 23:24:13 +0000 (UTC) Received: from mail-oi1-f180.google.com (mail-oi1-f180.google.com [209.85.167.180]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id B9B3E5F544 for ; Tue, 18 Jun 2019 23:24:12 +0000 (UTC) Received: by mail-oi1-f180.google.com with SMTP id w7so9093616oic.3 for ; Tue, 18 Jun 2019 16:24:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=0PnFTLxgv2L+BU7WGaqcHqa4dHk9wgABMO6OBmUlIdg=; b=HjCZ3NSwa0DIPTbRdQvyIHVqdrAi75snzWbANNJoYSjjRwhSbKkh/lBs5+Rj79QpH/ 5zYRUTzOjbOIWuYNsV42kzjmUdSVTuNjy484yVvVAsIa/pO+FFIZK4VV07J1djNBJ83g ve0sEf2j/wgmqOn5LcmHrwAjHvv+l1IGrqdRdpzZ9ww2/sYtQflRZvkHohc8LxC36I25 Am4m2+k5lhSAo+Y3eyOpZ7EIa3HybCisxZuxO8YlKH4QRQ7LGXVym6utRQyR+2O21BZU B+926Gjg/tepl+PZyEJxWx1P1gRGh2O4OJjHL143X+jxhChSx6h0JeUET5ppF64sNZOh 82GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=0PnFTLxgv2L+BU7WGaqcHqa4dHk9wgABMO6OBmUlIdg=; b=hn8gf+/uUUFlc1KzZu2NFYK20cJogZqrpTQfiGHl2Pgk2TMs07SX8kl29bwUVraZUI Fx8A+0WD7cPOL/hqJuLsa3lUB/QA9eHR+KRXiWUSJAWxfxzOJtU0nA5JrNbD0VuZqvsA tPsUtr52BEk/3qOBsaNaE5dCeOdJ0EOOfGqDxiB8cLqoV4KaU2U9jQZ4/TYFKaK2mrhu 0+E1v5xD5mTdZ6JtdrqSA+F85gVxck1XgiQ9lZvzwdf6xkLdbl5KzVP8qv4iT0j5aRrg mQmo3o32bYVka2tWvumEOnpVNA5UT/2dBYQlfcQuIVF18Q+AZPH6aNzG8uvSn/KLd+jZ J54Q== X-Gm-Message-State: APjAAAWkusUtZsotAW0z6bFhoYtv3ekjUDqcV4UG9bJBQuemv/M9YpHf IvSZYaQkfj2bZ4DohlyECmyew+Z0WVnFFgiqZNvPtRKw X-Google-Smtp-Source: APXvYqwBk8yku4WnBui6+3yoA3bTPc3dM4cRb5Mv2xqfzrudc2EpZKiktukAIJILDo+Q0/XSiiivj1j7Ead1RXAO/PY= X-Received: by 2002:aca:e4c9:: with SMTP id b192mr698794oih.82.1560900245665; Tue, 18 Jun 2019 16:24:05 -0700 (PDT) MIME-Version: 1.0 From: Nikolai Krot Date: Wed, 19 Jun 2019 01:23:39 +0200 Message-ID: Subject: Modularizing RUTA rules To: user@uima.apache.org Content-Type: multipart/alternative; boundary="000000000000ac3dab058ba16861" --000000000000ac3dab058ba16861 Content-Type: text/plain; charset="UTF-8" Hi, I am trying to split large ruleset (Main.ruta) into several smaller and then work with them in the normal fashion SCRIPT path.to.my.Script1; SCRIPT path.to.my.Script2; CALL(Script1); CALL(Script2); I have some common part that should be done before calling Script1 and Script2. This common part includes definition of a number of CONDITION statements. Looks like this constructs are not available in included scripts. I receive an error a la Caused by: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: Error in Script1, line 14, "(": expected OPTIONAL, but found LPAREN that hits just before the construction is used. As soon as I copy the CONDITION statement to the Script1, the error disappears. The question is how to make these statements available to the included scripts? What if I extract them into a dedicated ruta script, can I then import them in all scripts that use them: Main, Script1 and Script2? In a way similar to TYPESYSTEM Thank you in advance. Best regards, Nikolai --000000000000ac3dab058ba16861--