Search in sources :

Example 1 with UnorderedSequentialPairsFeatureExtractor

use of io.anserini.ltr.feature.UnorderedSequentialPairsFeatureExtractor in project Anserini by castorini.

the class BigramFeaturesTest method getMixedChain.

private FeatureExtractors getMixedChain() {
    FeatureExtractors chain = new FeatureExtractors();
    chain.add(new OrderedSequentialPairsFeatureExtractor(2));
    chain.add(new OrderedSequentialPairsFeatureExtractor(4));
    chain.add(new OrderedSequentialPairsFeatureExtractor(6));
    chain.add(new UnorderedSequentialPairsFeatureExtractor(2));
    chain.add(new UnorderedSequentialPairsFeatureExtractor(4));
    chain.add(new UnorderedSequentialPairsFeatureExtractor(6));
    return chain;
}
Also used : FeatureExtractors(io.anserini.ltr.feature.FeatureExtractors) OrderedSequentialPairsFeatureExtractor(io.anserini.ltr.feature.OrderedSequentialPairsFeatureExtractor) UnorderedSequentialPairsFeatureExtractor(io.anserini.ltr.feature.UnorderedSequentialPairsFeatureExtractor)

Example 2 with UnorderedSequentialPairsFeatureExtractor

use of io.anserini.ltr.feature.UnorderedSequentialPairsFeatureExtractor in project Anserini by castorini.

the class BigramFeaturesTest method getUnorderedChain.

private FeatureExtractors getUnorderedChain() {
    FeatureExtractors chain = new FeatureExtractors();
    chain.add(new UnorderedSequentialPairsFeatureExtractor(2));
    chain.add(new UnorderedSequentialPairsFeatureExtractor(4));
    chain.add(new UnorderedSequentialPairsFeatureExtractor(6));
    return chain;
}
Also used : FeatureExtractors(io.anserini.ltr.feature.FeatureExtractors) UnorderedSequentialPairsFeatureExtractor(io.anserini.ltr.feature.UnorderedSequentialPairsFeatureExtractor)

Aggregations

FeatureExtractors (io.anserini.ltr.feature.FeatureExtractors)2 UnorderedSequentialPairsFeatureExtractor (io.anserini.ltr.feature.UnorderedSequentialPairsFeatureExtractor)2 OrderedSequentialPairsFeatureExtractor (io.anserini.ltr.feature.OrderedSequentialPairsFeatureExtractor)1