Package com.yahoo.language.sentencepiece
Class SentencePieceConfig
- java.lang.Object
-
- com.yahoo.config.Node
-
- com.yahoo.config.InnerNode
-
- com.yahoo.config.ConfigInstance
-
- com.yahoo.language.sentencepiece.SentencePieceConfig
-
public final class SentencePieceConfig extends com.yahoo.config.ConfigInstance
This class represents the root node of sentence-piece Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. Configures com.yahoo.language.sentencepiece.SentencePieceEncoder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SentencePieceConfig.Builder
static class
SentencePieceConfig.Model
This class represents sentence-piece.model[]static interface
SentencePieceConfig.Producer
static class
SentencePieceConfig.Scoring
This class represents sentence-piece.scoring The scoring strategy to use when picking a segmentation.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONFIG_DEF_MD5
static java.lang.String
CONFIG_DEF_NAME
static java.lang.String
CONFIG_DEF_NAMESPACE
static java.lang.String[]
CONFIG_DEF_SCHEMA
static java.lang.String
CONFIG_DEF_VERSION
-
Constructor Summary
Constructors Constructor Description SentencePieceConfig(SentencePieceConfig.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
collapseUnknowns()
static java.lang.String
getDefMd5()
static java.lang.String
getDefName()
static java.lang.String
getDefNamespace()
static java.lang.String
getDefVersion()
java.util.List<SentencePieceConfig.Model>
model()
SentencePieceConfig.Model
model(int i)
SentencePieceConfig.Scoring.Enum
scoring()
-
Methods inherited from class com.yahoo.config.ConfigInstance
getConfigMd5, getDefName, getDefNamespace, serialize, serialize, setConfigMd5
-
-
-
-
Field Detail
-
CONFIG_DEF_MD5
public static final java.lang.String CONFIG_DEF_MD5
- See Also:
- Constant Field Values
-
CONFIG_DEF_NAME
public static final java.lang.String CONFIG_DEF_NAME
- See Also:
- Constant Field Values
-
CONFIG_DEF_NAMESPACE
public static final java.lang.String CONFIG_DEF_NAMESPACE
- See Also:
- Constant Field Values
-
CONFIG_DEF_VERSION
public static final java.lang.String CONFIG_DEF_VERSION
- See Also:
- Constant Field Values
-
CONFIG_DEF_SCHEMA
public static final java.lang.String[] CONFIG_DEF_SCHEMA
-
-
Constructor Detail
-
SentencePieceConfig
public SentencePieceConfig(SentencePieceConfig.Builder builder)
-
-
Method Detail
-
getDefMd5
public static java.lang.String getDefMd5()
-
getDefName
public static java.lang.String getDefName()
-
getDefNamespace
public static java.lang.String getDefNamespace()
-
getDefVersion
public static java.lang.String getDefVersion()
-
collapseUnknowns
public boolean collapseUnknowns()
- Returns:
- sentence-piece.collapseUnknowns
-
scoring
public SentencePieceConfig.Scoring.Enum scoring()
- Returns:
- sentence-piece.scoring
-
model
public java.util.List<SentencePieceConfig.Model> model()
- Returns:
- sentence-piece.model[]
-
model
public SentencePieceConfig.Model model(int i)
- Parameters:
i
- the index of the value to return- Returns:
- sentence-piece.model[]
-
-