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 9401717B56 for ; Wed, 7 Jan 2015 14:58:49 +0000 (UTC) Received: (qmail 74810 invoked by uid 500); 7 Jan 2015 14:58:50 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 74768 invoked by uid 500); 7 Jan 2015 14:58:50 -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 74715 invoked by uid 99); 7 Jan 2015 14:58:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jan 2015 14:58:39 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of silvestre.losada@gmail.com designates 209.85.215.45 as permitted sender) Received: from [209.85.215.45] (HELO mail-la0-f45.google.com) (209.85.215.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jan 2015 14:58:35 +0000 Received: by mail-la0-f45.google.com with SMTP id gq15so3908746lab.4 for ; Wed, 07 Jan 2015 06:56:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=93t3fBNP/ViTHHDwmjAINQNsdmuD2uUlF73UiHTqY14=; b=MhNdWgy+N3cvw5/TcfSyOg9PLoAaeOkH+HsQPznEYqvSN8BztzsAI8l+Rr+3gSDMZi V7k//rD/wI5PvomWl14OuPgLVysPY4WP+ogtDRJ7ajjrX9um91mKwvZF8OgIN/psBK0G Ad0YcpUr1VqnuUQPXjdoWlkPX+1pWtKNWi2wbTh/jBfXs2GEJ5BlZoXTAcCqJBhtJjS6 R4kx/Tpcu+qZdrxvrvNiFlF9URhKxtPHs9KZCIB7fBbajWvZZ8jkAdPENL2I7yg8uPNa VyB7KlWj9gEwiOscsVsV3hVQDp9jGQYJrx507r/GcrUz9mNQ6S1h48SeeL9qn/8wsDEn hPJA== X-Received: by 10.112.150.102 with SMTP id uh6mr5238192lbb.66.1420642604324; Wed, 07 Jan 2015 06:56:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.17.211 with HTTP; Wed, 7 Jan 2015 06:56:24 -0800 (PST) In-Reply-To: <54AD341B.9050602@uni-wuerzburg.de> References: <54AA69A4.6000807@uni-wuerzburg.de> <54AD341B.9050602@uni-wuerzburg.de> From: Silvestre Losada Date: Wed, 7 Jan 2015 15:56:24 +0100 Message-ID: Subject: Re: Ruta check if feature is null. To: user@uima.apache.org Content-Type: multipart/alternative; boundary=047d7b34318ac8a000050c11219f X-Virus-Checked: Checked by ClamAV on apache.org --047d7b34318ac8a000050c11219f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable One question, For primitive values you mean a feature that is of type uima.cas.String? Imagine I have annotation of type Person with a feature surname of type uima.cas.String, it would be nice if I can evaluate the condition Person.surname=3D=3Dnull Kind regards On 7 January 2015 at 14:26, Peter Kl=C3=BCgl wro= te: > Hi, > > I assume that this will only affect feature (match/assignment) > expressions concerning non-primitive values for now. So we could add a > new type of (dummy) expression only in combination with complex features. > > I further assume that we do not need null-expression in combinations > with primitive values, right? > > Thanks for the offer, but maybe it's better if I implement the changes > since I am not sure yet which and how many consequences the changes will > have, e.g., the compare method of FeatureMatchExpressions does not work > yet with complex features. > > Best, > > Peter > > Am 06.01.2015 um 19:54 schrieb Silvestre Losada: > > Hi Peter, > > > > I opened new feature request, so if you wish you can explain to me the > > ideas that you have and I can implement it. > > > > > > Best. > > > > On 5 January 2015 at 11:38, Peter Kl=C3=BCgl > wrote: > > > >> Hi, > >> > >> that's not (yet) supported. You can open a feature request if you want= . > >> This shouldn't be too complicated to implement. I already have some > ideas... > >> > >> This functionality is specified right now in ruta by using an addition= al > >> boolean feature, which stores whether the original feature was set. > >> > >> Best, > >> > >> Peter > >> > >> Am 05.01.2015 um 10:41 schrieb Silvestre Losada: > >> > >> Hi all, > >>> I was looking into the UIMA ruta documentation and I dont know how to > >>> check > >>> in ruta script a feature of given annotation is null. Something like > this > >>> > >>> MyAnnotation.feature=3D=3D NULL{-> ...} > >>> > >>> > >>> is that possible? > >>> > >>> Kind regards. > >>> > >>> > > > --047d7b34318ac8a000050c11219f--