inception-project / inception

INCEpTION provides a semantic annotation platform offering intelligent annotation assistance and knowledge management.
https://inception-project.github.io
Apache License 2.0
593 stars 151 forks source link

Error accepting recommendations #1376

Closed UWinch closed 5 years ago

UWinch commented 5 years ago

Describe the bug Accepting recommendations results in error:

BratAnnotationEditor - Error: CAS does not contain any [de.tudarmstadt.ukp.dkpro.core.api.lexmorph.type.pos.POS] at [28,29]
java.lang.IllegalArgumentException: CAS does not contain any [de.tudarmstadt.ukp.dkpro.core.api.lexmorph.type.pos.POS] at [28,29]
    at org.apache.uima.fit.util.CasUtil.selectSingleAt(CasUtil.java:329) ~[uimafit-core-2.4.0.jar:2.4.0]
    at de.tudarmstadt.ukp.inception.recommendation.service.RecommendationServiceImpl.upsertFeature(RecommendationServiceImpl.java:625) ~[classes/:?]
    at de.tudarmstadt.ukp.inception.recommendation.service.RecommendationServiceImpl$$FastClassBySpringCGLIB$$7b2c1577.invoke(<generated>) ~[classes/:?]
    at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.1.9.RELEASE.jar:5.1.9.RELEASE]
    at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684) ~[spring-aop-5.1.9.RELEASE.jar:5.1.9.RELEASE]
    at de.tudarmstadt.ukp.inception.recommendation.service.RecommendationServiceImpl$$EnhancerBySpringCGLIB$$949cd2bd.upsertFeature(<generated>) ~[classes/:?]
    at de.tudarmstadt.ukp.inception.recommendation.RecommendationEditorExtension.actionAcceptRecommendation(RecommendationEditorExtension.java:163) ~[classes/:?]

To Reproduce Steps to reproduce the behavior:

  1. Configure project with opnenlp pos recommender for POS tags
  2. Open document to get some suggestions.
  3. Accept suggestion.
  4. See error

Please complete the following information:

reckart commented 5 years ago

Does this also happen in 0.11.1?

UWinch commented 5 years ago

I tested a bit more and it seems that no recommendations can be accepted at the moment for 0.11.1 and 0.12.0.