Constructs a new SentencePiece.
Optionalproperties: ISentencePieceProperties to set
SentencePiece piece.
SentencePiece score.
SentencePiece type.
Converts this SentencePiece to JSON.
JSON object
StaticcreateCreates a new SentencePiece instance using the specified properties.
Optionalproperties: ISentencePieceProperties to set
SentencePiece instance
StaticdecodeDecodes a SentencePiece message from the specified reader or buffer.
Reader or buffer to decode from
Optionallength: numberMessage length if known beforehand
SentencePiece
StaticdecodeDecodes a SentencePiece message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
SentencePiece
StaticencodeEncodes the specified SentencePiece message. Does not implicitly verify messages.
SentencePiece message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticencodeEncodes the specified SentencePiece message, length delimited. Does not implicitly verify messages.
SentencePiece message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticfromCreates a SentencePiece message from a plain object. Also converts values to their respective internal types.
Plain object
SentencePiece
StaticgetGets the default type url for SentencePiece
OptionaltypeUrlPrefix: stringyour custom typeUrlPrefix(default "type.googleapis.com")
The default type url
StatictoCreates a plain object from a SentencePiece message. Also converts values to other types if specified.
SentencePiece
Optionaloptions: IConversionOptionsConversion options
Plain object
StaticverifyVerifies a SentencePiece message.
Plain object to verify
null if valid, otherwise the reason why it is not
Represents a SentencePiece.