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

Min Jiang commented on UIMA-4605:
---------------------------------

I have another question to ask, I want to implement the below requirement using 
ruta code:
for each sentence with a specific attribute, I will update the token within 
that sentence tags

here is the code I am trying to use:

BLOCK(ForEach) Token{}{
    Sentence{ -> CREATE( NameEntity, 1,1,"semanticTag" = "customTag")};
}

however, it does not work, so do you have any idea on how to write the code to 
implement it?

Thanks.


> 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)

Reply via email to