From user-return-8085-archive-asf-public=cust-asf.ponee.io@uima.apache.org Tue Apr 16 20:10:09 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 BC731180630 for ; Tue, 16 Apr 2019 22:10:08 +0200 (CEST) Received: (qmail 35244 invoked by uid 500); 16 Apr 2019 20:10:08 -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 35213 invoked by uid 99); 16 Apr 2019 20:10:04 -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, 16 Apr 2019 20:10:04 +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 EF488C0090 for ; Tue, 16 Apr 2019 20:10:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.793 X-Spam-Level: * X-Spam-Status: No, score=1.793 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, RCVD_IN_MSPIKE_H2=-0.006, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id fyBKcfK5dzHz for ; Tue, 16 Apr 2019 20:10:03 +0000 (UTC) Received: from mail-oi1-f193.google.com (mail-oi1-f193.google.com [209.85.167.193]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id B52F35FD35 for ; Tue, 16 Apr 2019 20:10:02 +0000 (UTC) Received: by mail-oi1-f193.google.com with SMTP id y84so18067791oia.12 for ; Tue, 16 Apr 2019 13:10:02 -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=b8udJ4Gmkk/lPp1GigvgriXuOwkso0BpR6bo7IyVGk0=; b=UttdExNCMQPDj/dIpMTDLT/GlGPuP+qngmGLwvP63SFWnfLdLgo05tFYYOOlyd44LD 7A45RXCeooH2+fC+5//CzgyBOxkyU8NdL6C9z9oKulo06yIzbFdegbSUQYc7sH8unNEk Rx6kO6E9NOKFlPBLkOVYcd+dsEiRYM7VPZjrOCc7Z0TOVmeqPcyncnxCDQ4ZwHQJLRRr 7DFl6zjkERmAvfKBru+x9it77WYDFnUVMgQEXwhP+iiZ65zTIaVz442t830y5rc8/zaC c61VFAwLeTSEAa6tVE39PfhwBKHHMyHDjeELQYDjJVm8vDnUYqcXCG6i42OEOBYHoMAg pztA== 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=b8udJ4Gmkk/lPp1GigvgriXuOwkso0BpR6bo7IyVGk0=; b=fPYKI5R8OhnSfZxTbGxLIerz7vGGN0H1BrGXN8JpcZK51WQHo2TqfFEoV8KmOyuNzK n+vEOpm34MoO28nQOZuwskPJBBrkNARDzS3hnoMTEm7H9EdYJceOkI/jxgXZG14qLJ5X tIF+f97uGLWeQ4MrhVNnon4bEBN9B1/Y8Mk/soZcjzEPycReLPrebgAMRx4nmUvUY77u 6yLQHhh4ESgJ/BfKiMY//hidcMUsiejJcnk1EL0DfTXgxQsu2sxgS8sjpkg+0piew6MM 78quFDme1kwuSH2AgLC1gWBAQN5JJjV5FGdDOb7aL2UfIU69bgdbymOGMTU3RwllB3rj vBGg== X-Gm-Message-State: APjAAAUJvpBiZH9Jrt3sEkfarIRsimWZESmuu0ZBCz1AT2pVQApbUyhR w8MOLqPOAhc1twegWzfWxgAL8msZyHwv2cFaJDNmrcxJYZg= X-Google-Smtp-Source: APXvYqypOe7EHIizKha2guWLepzFOu56dP/ZXW7exVcSGjRa0naEFeMFG7HK+hpRvD5gnDV3JAjzUha8nfVdS8EP++0= X-Received: by 2002:aca:4a0a:: with SMTP id x10mr23441959oia.82.1555445341715; Tue, 16 Apr 2019 13:09:01 -0700 (PDT) MIME-Version: 1.0 From: Nikolai Krot Date: Tue, 16 Apr 2019 22:08:35 +0200 Message-ID: Subject: Flattening Annotations? To: user@uima.apache.org Content-Type: multipart/alternative; boundary="0000000000000f80a60586ab5720" --0000000000000f80a60586ab5720 Content-Type: text/plain; charset="UTF-8" Hi all, Is there a quick way to remove all annotations of specific type if they are embedded in a wider annotation of the same type, for example: ... ... ... needs to be flattened to just outermost ... ... ... At the moment I am doing it with the following (which seems to work and is said to be slow) NP { PARTOFNEQ(NP) -> UNMARK(NP)}; Best regards, Nikolai --0000000000000f80a60586ab5720--