From user-return-8001-archive-asf-public=cust-asf.ponee.io@uima.apache.org Sat Dec 15 13:20:50 2018 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id F18E0180652 for ; Sat, 15 Dec 2018 13:20:49 +0100 (CET) Received: (qmail 24567 invoked by uid 500); 15 Dec 2018 12:20:49 -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 24555 invoked by uid 99); 15 Dec 2018 12:20:48 -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; Sat, 15 Dec 2018 12:20:48 +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 EC1F2C734A for ; Sat, 15 Dec 2018 12:20:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.05 X-Spam-Level: ** X-Spam-Status: No, score=2.05 tagged_above=-999 required=6.31 tests=[DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id I3HtZA-gvdPz for ; Sat, 15 Dec 2018 12:20:46 +0000 (UTC) Received: from mail-ot1-f44.google.com (mail-ot1-f44.google.com [209.85.210.44]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 9F6415F419 for ; Sat, 15 Dec 2018 12:20:45 +0000 (UTC) Received: by mail-ot1-f44.google.com with SMTP id w25so8006865otm.13 for ; Sat, 15 Dec 2018 04:20:45 -0800 (PST) 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=ihZxCxKWT6Y/MnzLMOFdwJAS5aeXqUgj26RfLtiRk0U=; b=H4Kl2UcpY/1KO5l0IIlzQl4cqdpyQL3P1jgGDqrfZwNV5YeW4R2M5iWfhOWJEPBqgn 60Yn5SsUwhet+UUoYnkzLMEm+2TAD2zpbFCOzsthmrvdYOsoAtM4Tw4JrC1hDuwGgtWy Q9hpKv9XUoNVtFTqkQjEdS/2XJVV0P5+3kjCy+4N1Gx0QSMRQlhRSYzmICw+C2kkeA5n 9s5s9DgNSSnyS/e1UmDcRvtujvAqwIGAR9lRpQnQ0o3EHVChA9/VBRgwOaZF+PyUhwCg TKGoNeCFrptcFHd0I1uQFOR1irbPXJfKBVVvmIbnvLG4zDfr9rnGtasOIRoHDhlsVEYY bqfA== 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=ihZxCxKWT6Y/MnzLMOFdwJAS5aeXqUgj26RfLtiRk0U=; b=hLl/Z/EOJVh3pVmlyYLWgle2rljuDPLVRCisUJjeNa87ugesMqmUkjeYtU7QG2ZUwj aOAx7vHO1Gj8hfixaEmzfv5S82Rhd8uTOuL7AjybMz/pp2nKori1I29iLCEV4NcSMJ00 PDqMVfZQbYdJ191uD5//46VUSonQ/dB5Y2IJ4sBpHamt+S6uGRXAzGG3+NMYoC4qBJvL K3n9eEgWFIrv1G9LJjvLfTyaq13kUuTKFSDmIpPkWTXJSbmfu+WJI4N/tsnA+DA/sWaf 321llQxFXZ+E0BP+DVjHstGhw+W3bPY8Fw3Y+zvm34pK/39/MHQANvAhPdSAqmV0tK0V +c6Q== X-Gm-Message-State: AA+aEWbozS3peXjrzmcd1XOs1JRpn+QXc/XkhHBKfQNcu7W6uhr9JFLv XP0yVhCum76L069TsfgYyDwJtcyt2jhJgDJcZg+3dOJr X-Google-Smtp-Source: AFSGD/WSUZl0iq3yv9Fu/xwI4nBziidAata7L843sfEM3gJDCrfW2SJhiEM9B/vS7G6lsGq9WkUrri872FnAQZbdJNE= X-Received: by 2002:a9d:6191:: with SMTP id g17mr4761693otk.56.1544876444199; Sat, 15 Dec 2018 04:20:44 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?Q?Alain_D=C3=A9silets?= Date: Sat, 15 Dec 2018 07:20:33 -0500 Message-ID: Subject: Is it possible to define dynamically typed annotations? To: user@uima.apache.org Content-Type: multipart/alternative; boundary="000000000000adb077057d0e93db" --000000000000adb077057d0e93db Content-Type: text/plain; charset="UTF-8" Is it possible to create dynamically typed annotations in UIMA? In other words, would it be possible for users of my system to create a new type of annotation without having to recompile the Java code? I need this functionality so that non-dev users can define new types of Named Entities and train a model that can recognize them without having to recompile the code. I suspect the answer is no, because all annotation types correspond to a Java class. True, those classes are defined in an XML file, but in order to use them you have to generate the Java code from the XML and recompile your code. If UIMA does not yet have something that supports dynamic annotations, I will have to implement one myself. What I have in mind is to define a sub-class of Annotation called say, DynamicallTypedAnnotation, which would have two new member variables: String typeName = null; Map attributes = new HashMap(); The 'typeName' variable would correspond to the type of the annotation (ex: "Room Number" for an annotation that captures the number of a room) and the 'attributes' variable would allow storage of arbitrary information about the annotation. Does that make sense? Thx --000000000000adb077057d0e93db--