You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Peter Klügl (JIRA)" <de...@uima.apache.org> on 2019/01/07 11:58:00 UTC
[jira] [Created] (UIMA-5947) Ruta: regex rule for subtoken
annotation fails PARTOF
Peter Klügl created UIMA-5947:
---------------------------------
Summary: Ruta: regex rule for subtoken annotation fails PARTOF
Key: UIMA-5947
URL: https://issues.apache.org/jira/browse/UIMA-5947
Project: UIMA
Issue Type: Bug
Components: Ruta
Affects Versions: 2.6.1ruta
Reporter: Peter Klügl
Fix For: 2.7.0ruta
{noformat}
PACKAGE uima.ruta.training;
DECLARE Keyword;
DECLARE Entity(STRING value);
DECLARE Digit;
"100001" -> Keyword;
"[0-9]" -> Digit;
ADDRETAINTYPE(WS);
a:(Keyword ANY*{PARTOF({W,Digit})}){-> Entity, Entity.value = a.ct};
REMOVERETAINTYPE(WS);
{noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)