脚本
//------------------------------------------------------------------------
// DKPRO - Imports
//------------------------------------------------------------------------
IMPORT PACKAGE de.tudarmstadt.ukp.dkpro.core.api.lexmorph.type.pos FROM GeneratedDKProCoreTypes AS pos;
IMPORT de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Lemma FROM GeneratedDKProCoreTypes;
UIMAFIT de.tudarmstadt.ukp.dkpro.core.stanfordnlp.StanfordSegmenter;
UIMAFIT de.tudarmstadt.ukp.dkpro.core.treetagger.TreeTaggerPosLemmaTT4J;//TreeTaggerPosTagger
//------------------------------------------------------------------------
//------------------------------------------------------------------------
// DKPRO - Execution
//-------------------------------------------------- ----------------------
Document{-CONTAINS(pos.POS)} -> {
Document{-> SETFEATURE("language", "en")}; //"de"
Document{-> EXEC(StanfordSegmenter)};
Document{-> EXEC(TreeTaggerPosLemmaTT4J, {pos.POS})};//(TreeTaggerPosTagger, {pos.POS})};
};
//------------------------------------------------------------------------
//------------------------------------------------------------------------
// DKPRO - Test
//------------------------------------------------------------------------
DECLARE DZC_DkProTest;
pos.NP{-> MARK(DZC_DkProTest)};
//------------------------------------------------------------------------
简而言之错误
org.apache.uima.analysis_engine.AnalysisEngineProcessException: Annotator processing failed.
Caused by: java.lang.NoSuchMethodError: de.tudarmstadt.ukp.dkpro.core.stanfordnlp.StanfordSegmenter.isWriteToken()Z