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 2013/07/29 16:03:49 UTC

[jira] [Comment Edited] (UIMA-3115) fusion of block syntax and annotation specification syntax

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

Peter Klügl edited comment on UIMA-3115 at 7/29/13 2:03 PM:
------------------------------------------------------------

Hmm... I am currently thinking about introducing inlined rule elements or even rules, which match within the scope of another rule element. This would probably subsume your syntactic sugar and could look like:

{noformat}
Prefix 
  Sentence{PARTOF(Paragraph) -> Type1}{ 
    ANY{STARTSWITH(Sentence)} NUM{-> Type2}; 
    NUM{-> Type3} ANY{ENDSWITH(Sentence)};
  } 
  Suffix;
{noformat}
                
      was (Author: pkluegl):
    Hmm... I am currently thinking about introducing inlined rule elements or even rules, which match within the scope of another rule element. This would probably subsume your syntactic sugar and could look like:

{noformat}
Prefix Sentence{PARTOF(Paragraph) -> Type1}{ ANY{STARTSWITH(Sentence)} NUM{-> Type2}; NUM{-> Type3} ANY{ENDSWITH(Sentence)};} Suffix;
{noformat}
                  
> fusion of block syntax and annotation specification syntax
> ----------------------------------------------------------
>
>                 Key: UIMA-3115
>                 URL: https://issues.apache.org/jira/browse/UIMA-3115
>             Project: UIMA
>          Issue Type: Improvement
>          Components: ruta
>            Reporter: Georg Fette
>            Priority: Minor
>
> It would be a nice syntax improvement if block definitions and annotation specifications with curly brackets are written with the same syntax. I.e.:
> {noformat}
> Document { CW NUM { -> MARK(MyAnnot) } }
> {noformat}
> =
> {noformat}
> BLOCK(MyBlockName) Document { CW NUM { -> MARK(MyAnnot) } }
> {noformat}
> The style without the block syntax will be an anonymous block but that would be okay.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira