CleartkExtractor tokenExtraction1 =
new CleartkExtractor(
BaseToken.class,
// new FeatureFunctionExtractor(new CoveredTextExtractor(), new LowerCaseFeatureFunction()),
// new FeatureFunctionExtractor(new CoveredTextExtractor(), new BrownClusterFeatureFunction()),
new CoveredTextExtractor(),
//new CleartkExtractor.Covered(),
new CleartkExtractor.LastCovered(2),
new CleartkExtractor.Preceding(5),
new CleartkExtractor.Following(4),
new CleartkExtractor.Bag(new CleartkExtractor.Preceding(3)),
new CleartkExtractor.Bag(new CleartkExtractor.Following(3)),
new CleartkExtractor.Bag(new CleartkExtractor.Preceding(5)),
new CleartkExtractor.Bag(new CleartkExtractor.Following(5)),
new CleartkExtractor.Bag(new CleartkExtractor.Preceding(10)),
new CleartkExtractor.Bag(new CleartkExtractor.Following(10))
);
// CleartkExtractor posExtraction1 =
// new CleartkExtractor(
// BaseToken.class,
// new TypePathExtractor(BaseToken.class, "partOfSpeech"),
// new CleartkExtractor.LastCovered(2),
// new CleartkExtractor.Preceding(3),
// new CleartkExtractor.Following(2)
// );
this.tokenCleartkExtractors.add(tokenExtraction1);
//this.tokenCleartkExtractors.add(posExtraction1);
// this.contextFeatureExtractors.add(new CleartkExtractor(IdentifiedAnnotation.class,
// new CoveredTextExtractor(),
// //new TypePathExtractor(IdentifiedAnnotation.class, "stem"),
// new Preceding(2),
// new Following(2)));
// stab at dependency-based features
//List<Feature> features = new ArrayList<Feature>();
//ConllDependencyNode node1 = findAnnotationHead(jCas, arg1);
CombinedExtractor baseExtractorCuePhraseCategory =
new CombinedExtractor
(
new CoveredTextExtractor(),
new TypePathExtractor(AssertionCuePhraseAnnotation.class, "cuePhrase"),
new TypePathExtractor(AssertionCuePhraseAnnotation.class, "cuePhraseCategory"),
new TypePathExtractor(AssertionCuePhraseAnnotation.class, "cuePhraseAssertionFamily")
);
cuePhraseInWindowExtractor = new CleartkExtractor(
BaseToken.class,
new CoveredTextExtractor(),
new CleartkExtractor.Bag(new CleartkExtractor.Covered())
// AssertionCuePhraseAnnotation.class,
// baseExtractorCuePhraseCategory,
// new CleartkExtractor.Bag(new CleartkExtractor.Preceding(3)),
// new CleartkExtractor.Bag(new CleartkExtractor.Following(3)),