UIMA Ruta,uimaFIT和DKPro:哪些版本可以一起使用? [英] UIMA Ruta, uimaFIT and DKPro: Which versions work together?

查看:87
本文介绍了UIMA Ruta,uimaFIT和DKPro:哪些版本可以一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

GSCL 2013 Ruta教程 pom.xml中组件的版本为:

In the GSCL 2013 Ruta tutorial the versions of the components in the pom.xml are:

uimaj-core: 2.4.2
DKPro components: 1.5.0
ruta-core: 2.1.0

现在,我逐渐增加了版本号,发现DKPro组件的1.8.0版引入了以下异常:

Now, I incremented the version numbers incrementally and found that version 1.8.0 of the DKPro components introduces the following exception:

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.uima.cas.text.AnnotationIndex.withSnapshotIterators()Lorg/apache/uima/cas/FSIndex;
    at org.apache.uima.fit.util.FSCollectionFactory$AnnotationIndexAdapter.iterator(FSCollectionFactory.java:821)
    at de.tudarmstadt.ukp.dkpro.core.api.segmentation.SegmenterBase.process(SegmenterBase.java:145)
    at org.apache.uima.analysis_component.JCasAnnotator_ImplBase.process(JCasAnnotator_ImplBase.java:48)
    at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:378)
    at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.processAndOutputNewCASes(PrimitiveAnalysisEngine_impl.java:298)
    at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas(ASB_impl.java:568)
    at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.<init>(ASB_impl.java:410)
    at org.apache.uima.analysis_engine.asb.impl.ASB_impl.process(ASB_impl.java:343)
    at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.processAndOutputNewCASes(AggregateAnalysisEngine_impl.java:265)
    at org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process(AnalysisEngineImplBase.java:267)
    at org.apache.uima.fit.pipeline.SimplePipeline.runPipeline(SimplePipeline.java:150)
    at de.tudarmstadt.ukp.tutorial.gscl2013.ruta.WhatAliceDoesExample.main(WhatAliceDoesExample.java:38)

最近几天,我还遇到其他版本问题(请参阅此问题)与这些组件. 谁能告诉我这些组件的最新版本是什么?或者,也许有人可以给我他/她目前正在使用的版本?我也对使用的Eclipse版本感兴趣.非常感谢你.我在这个问题上停留了一段时间.

In the last days I faced other version problems (see this question) with these components. Can someone tell me what the most current versions of these components are that work together? Or maybe someone can give me his/her versions that he/she currently works with? I am also interested in the used eclipse version. Thank you very much. I am stuck with this issue for some time now.

推荐答案

不管使用哪个版本的DKPro Core或Ruta,最好使用最新的UIMA和uimaFIT版本.

Irrespective which version of DKPro Core or Ruta you use, it is a good idea to use a recent UIMA and uimaFIT version.

请注意,UIMA v3 +(uimaFIT v3 +)进行了不兼容的更改.例如. DKPro Core 2.0.0适用于这些新版本,但DKPro Core 1.x仅适用于UIMA v2和uimaFIT v2.当前(2019-10-26),没有与UIMA v3兼容的Ruta版本.

Note that there was an incompatible change with UIMA v3+ (uimaFIT v3+). E.g. DKPro Core 2.0.0 works with these new versions, but DKPro Core 1.x works only with UIMA v2 and uimaFIT v2. Presently (2019-10-26), there is no Ruta version compatible with UIMA v3.

检查DKPro Core和Ruta的POM文件所使用的UIMA和uimaFIT版本.

Check the POM files of DKPro Core and Ruta which versions of UIMA and uimaFIT they use.

DKPro Core 2.0.0 ->

<uima.version>3.1.0</uima.version>
<uimafit.version>3.0.0</uimafit.version>

DKPro Core 1.11.0 (请注意此版本中组ID的更改)->

DKPro Core 1.11.0 (note change in group ID in this version) ->

<uima.version>2.10.3</uima.version>
<uimafit.version>2.4.0</uimafit.version>

Ruta 2.7.0

<uimaVersion>2.10.3</uimaVersion>
<uimafit-version>2.4.0</uimafit-version>

对于Eclipse:我只使用最新版本.如果您在最新的Eclipse版本中遇到Ruta的麻烦,最好在 UIMA用户的邮件列表.

As for Eclipse: I'd just use the most recent version. If you experience trouble with Ruta in the latest Eclipse versions, best report it on the UIMA users' mailing list.

这篇关于UIMA Ruta,uimaFIT和DKPro:哪些版本可以一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆