Search in sources :

Example 1 with OrderedSequentialPairsFeatureExtractor

use of io.anserini.ltr.feature.OrderedSequentialPairsFeatureExtractor 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 OrderedSequentialPairsFeatureExtractor

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

the class BigramFeaturesTest method getOrderedChain.

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

Aggregations

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