JCasUtil.indexCovered(jcas, Sentence.class, AssertionCuePhraseAnnotation.class);
CombinedExtractor baseExtractorCuePhraseCategory =
new CombinedExtractor
(
new CoveredTextExtractor(),
new TypePathExtractor(AssertionCuePhraseAnnotation.class, "cuePhrase"),
new TypePathExtractor(AssertionCuePhraseAnnotation.class, "cuePhraseCategory"),
new TypePathExtractor(AssertionCuePhraseAnnotation.class, "cuePhraseAssertionFamily")
);
CleartkExtractor cuePhraseInWindowExtractor =
new CleartkExtractor(
AssertionCuePhraseAnnotation.class,
baseExtractorCuePhraseCategory,
new CleartkExtractor.Bag(new CleartkExtractor.Preceding(5)),
new CleartkExtractor.Bag(new CleartkExtractor.Following(5))
);
// new CleartkExtractor.Ngram(new CleartkExtractor.Preceding(5), new CleartkExtractor.Following(5)));
//new CoveredTextExtractor(),
// new CleartkExtractor.Covered());
// new CleartkExtractor.Preceding(5),
// new CleartkExtractor.Following(5));
CleartkExtractor tokenExtraction1 =
new CleartkExtractor(
BaseToken.class,
new CoveredTextExtractor(),
//new CleartkExtractor.Covered(),
new CleartkExtractor.LastCovered(2),
new CleartkExtractor.Preceding(5),
new CleartkExtractor.Following(4),
new CleartkExtractor.Bag(new CleartkExtractor.Preceding(10)),