use of org.dkpro.tc.features.pair.core.style.TypeTokenPairFeatureExtractor in project dkpro-tc by dkpro.
the class TypeTokenPairFeatureExtractorTest method testExtract.
@Test
public void testExtract() throws TextClassificationException {
TypeTokenPairFeatureExtractor extractor = new TypeTokenPairFeatureExtractor();
Set<Feature> features = extractor.extract(jcas1, jcas2);
assertEquals(1, features.size());
for (Feature feature : features) {
assertFeature("DiffTypeTokenRatio", 1.33, feature, 0.1);
}
}
Aggregations