[
https://issues.apache.org/jira/browse/UIMA-4605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14909773#comment-14909773
]
Peter Klügl commented on UIMA-4605:
-----------------------------------
You should ask this on the user mailing list (next time).
Your example will not work because BLOCK introduces a restriction of the
matching window. Only annotations within the current Token will be considered.
Maybe you rather want to iterate over all sentences and consider the tokens
within?
{noformat}
BLOCK(ForEach) Sentence{}{
Token{-> CREATE...};
}
{noformat}
The attribute would then be checked with a condition in the head of the block.
> Initialization of annotator class "org.apache.uima.ruta.engine.RutaEngine"
> failed
> ---------------------------------------------------------------------------------
>
> Key: UIMA-4605
> URL: https://issues.apache.org/jira/browse/UIMA-4605
> Project: UIMA
> Issue Type: Bug
> Components: ruta
> Affects Versions: 2.3.0ruta
> Reporter: Min Jiang
> Assignee: Peter Klügl
>
> I got the error when I use the absolute path to create resource specifier,
> I declared a new type in the script and created a custimzed engine file, when
> I
> use it to create AE, I got the error:
> code is like:
> ResourceManager resMgr = UIMAFramework.newDefaultResourceManager();
> URL aedesc = new File( customEngineFile ).toURI().toURL();
>
> XMLInputSource inae = new XMLInputSource( aedesc );
> ResourceSpecifier specifier =
> UIMAFramework.getXMLParser().parseResourceSpecifier(inae);
> AnalysisEngineDescription aed = (AnalysisEngineDescription) specifier;
> aed.resolveImports(resMgr);
> ae = UIMAFramework.produceAnalysisEngine(aed, resMgr, null);
> org.apache.uima.resource.ResourceInitializationException: Initialization of
> annotator class "org.apache.uima.ruta.engine.RutaEngine" failed.
> (Descriptor:
> file:/Users/xxx/Documents/runtime-xxx/nnn/descriptor/defaultEngine.xml)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)