dkpro-core

UIMA Ruta, uimaFIT and DKPro: Which versions work together?

时光毁灭记忆、已成空白 提交于 2020-01-25 09:19:05
问题 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 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

Reusable version of DKPro Core pipeline

痴心易碎 提交于 2020-01-03 00:27:15
问题 I have set up DKPro Core as a web service to take an input and provide a tokenised output. The service itself is set up as a Jersey resource: @Path("/") public class MyResource { public MyResource() { // Nothing here } @GET public String generate(@QueryParam("q") final String input) { try { final JCasIterable en = iteratePipeline( createReaderDescription(StringReader.class, StringReader.PARAM_DOCUMENT_TEXT, input, StringReader.PARAM_LANGUAGE, "en") ,createEngineDescription(StanfordSegmenter

Reusable version of DKPro Core pipeline

让人想犯罪 __ 提交于 2019-12-06 16:31:27
I have set up DKPro Core as a web service to take an input and provide a tokenised output. The service itself is set up as a Jersey resource: @Path("/") public class MyResource { public MyResource() { // Nothing here } @GET public String generate(@QueryParam("q") final String input) { try { final JCasIterable en = iteratePipeline( createReaderDescription(StringReader.class, StringReader.PARAM_DOCUMENT_TEXT, input, StringReader.PARAM_LANGUAGE, "en") ,createEngineDescription(StanfordSegmenter.class) ,createEngineDescription(StanfordPosTagger.class) ,createEngineDescription(StanfordParser.class)

Change text in reusable pipeline in DKPro

你离开我真会死。 提交于 2019-12-06 15:18:38
问题 This questions describes how to reuse a pipeline in dkpro but if I only create one JCas and then try to change the text then I get the exception org.apache.uima.cas.CASRuntimeException: Data for Sofa feature setLocalSofaData() has already been set. How do I get around this? 回答1: The sofa data in the CAS can only be set once. It cannot be modified after it has been set. In order to re-use a CAS, call the reset() method on it. This clears all annotations and allows you to set the sofa/text

Change text in reusable pipeline in DKPro

拈花ヽ惹草 提交于 2019-12-04 21:39:22
This questions describes how to reuse a pipeline in dkpro but if I only create one JCas and then try to change the text then I get the exception org.apache.uima.cas.CASRuntimeException: Data for Sofa feature setLocalSofaData() has already been set. How do I get around this? The sofa data in the CAS can only be set once. It cannot be modified after it has been set. In order to re-use a CAS, call the reset() method on it. This clears all annotations and allows you to set the sofa/text again. To build a CAS incrementally, a common strategies is to add annotations to the CAS while adding text to a