You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Renaud Richardet (JIRA)" <de...@uima.apache.org> on 2012/06/08 13:05:22 UTC

[jira] [Commented] (UIMA-2390) Variables in Variables for RegexAnnotator

    [ https://issues.apache.org/jira/browse/UIMA-2390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13291690#comment-13291690 ] 

Renaud Richardet commented on UIMA-2390:
----------------------------------------

The provided patch allows to use variables in variables. It also allows to use $ in variables for end-of-string matching (see tests). 

Let me know if the patch is ok for inclusion. For the impatients, you can find the patched module there:
{code:xml}
<dependency>
<groupId>org.apache.uima</groupId>
<artifactId>RegularExpressionAnnotator</artifactId>
<version>2.3.2-SNAPSHOT</version>
</dependency>

<repositories>
<repository>
<id>snapshot-repo</id>
<url>https://github.com/renaud/maven_repo/raw/master/snapshots</url>
</repository>
</repositories>
{code}
                
> Variables in Variables for RegexAnnotator
> -----------------------------------------
>
>                 Key: UIMA-2390
>                 URL: https://issues.apache.org/jira/browse/UIMA-2390
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Sandbox-RegexAnnotator
>    Affects Versions: 2.4.0Addons
>            Reporter: Renaud Richardet
>            Priority: Minor
>             Fix For: 2.4.0Addons
>
>         Attachments: RegExAnnotVariablesInVariables.xml, variablesConcept4Ref.txt, variablesInVariables.diff, variablesInVariables.xml, variablesInVariablesRef.txt
>
>
> Hello,
> We are successfully using the RegexAnnotator, but would like to use *variables in variables* (see example below), is it currently possible?
> If not, does anyone has a workaround or code?
> If not, we will provide a patch.
> Thanks, Renaud 
> {code:xml}
> <conceptSet>
>   <variables>
>     <variable name="volume_units" value="(?:k|d|m|M|µ)?(?:l|L|m3)" />
>     <variable name="mass_units" value="(?:k|d|m|M|µ)?(?:g)" />
>     <variable name="units" value="\v{mass_units}/\v{volume_units}" />
> {code} 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira