我有一个使用 ConceptMapper Annotator 的 UIMA 项目。我想知道如何设置以下内容:
如何指定
TokenizerDescriptionPath
?
我使用了宏$main_root/descriptors/conceptMapper/primitive/OffsetTokenizer.xml
,但是当我尝试安装 pear 文件时,安装程序会抛出异常,抱怨$main_root/descriptors/conceptMapper/primitive/OffsetTokenizer.xml
找不到文件如何设置
DictionaryFileName
(包含字典的文件)的值?
在用于设置此资源的 GUI 窗口中,我用$main_root/data/dict/concepts.xml
(我的字典文件)填充了 URL 值,但在安装时,安装程序抛出异常,抱怨 uima-pipelines 的验证失败:org.apache.uima.resource.ResourceInitializationException: Initialization of annotator class "org.apache.uima.conceptMapper.ConceptMapper" failed. Caused by: org.apache.uima.resource.ResourceAccessException: The Resource /ConceptDetector/ConceptMapper/DictionaryFile requires parameters, none were specified. at org.apache.uima.resource.impl.ResourceManager_impl.getResource(ResourceManager_impl.java:221) at org.apache.uima.impl.UimaContext_ImplBase.getResourceObject(UimaContext_ImplBase.java:295) at org.apache.uima.analysis_engine.impl.AnnotatorContext_impl.getResourceObject(AnnotatorContext_impl.java:175) ... 33 more