[英]How to pass an output xmi/cas to UIMA Ruta engine?
I hava a cas run on an AnalysisEngine (say AE1) to which we have injected some annotations in java, say JI1 (We have overloaded the default process method). 我有一个在AnalysisEngine(例如AE1)上运行的cas,我们在其中注入了Java中的一些注解,例如JI1(我们已经重载了默认的处理方法)。 So, how do i use my AE created from JAVA in ruta workbench ? 那么,如何在ruta工作台中使用从JAVA创建的AE?
You can execute your own Java analysis engines with the EXEC action. 您可以使用EXEC操作执行自己的Java分析引擎。 Examples from the documentation : 文档中的示例:
ENGINE utils.Modifier;
Date{-> DEL};
MoneyAmount{-> REPLACE("<MoneyAmount/>")};
Document{-> COLOR(Headline, "green")};
Document{-> EXEC(Modifier)};
or 要么
UIMAFIT my.package.impl.MyAnalysisEngine;
Document{-> EXEC(MyAnalysisEngine, {MyType1, MyType2})};
The preferred approach depends on the kind of your AE and if there is a description. 首选方法取决于AE的类型以及是否有说明。 In any case, the implementation of the AE needs to be on the classpath of the project. 无论如何,AE的实现都必须在项目的类路径上。
DISCLAIMER: I am a developer of UIMA Ruta 免责声明:我是UIMA Ruta的开发人员
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.