aboutsummaryrefslogtreecommitdiffstats
path: root/linguistics-components/src/main/java/com/yahoo/language/sentencepiece/Scoring.java
blob: d9f13ac7a549febebb33a1d1a86e48f35c66e44b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.language.sentencepiece;

/**
 * The scoring strategy to use for picking segments
 *
 * @author bratseth
 */
public enum Scoring {

    /** Find the segmentation that has the highest score */
    highestScore,

    /** Find the segmentation that has the fewest segments, resolve ties by score sum */
    fewestSegments

}