use of org.dkpro.tc.features.pair.core.AlwaysZeroPairFeatureExtractor in project dkpro-tc by dkpro.
the class BaselinePairFeatureTest method extractTest.
@Test
public void extractTest() throws Exception {
AnalysisEngineDescription desc = createEngineDescription(BreakIteratorSegmenter.class);
AnalysisEngine engine = createEngine(desc);
PairFeatureExtractor extractor = new AlwaysZeroPairFeatureExtractor();
Set<Feature> features = runExtractor(engine, extractor);
assertEquals(1, features.size());
for (Feature feature : features) {
assertFeature("BaselineFeature", 0, feature);
}
}
Aggregations