View source on GitHub
|
Methods
GetRootAs
@classmethodGetRootAs( buf, offset=0 )
GetRootAsSentencePieceTokenizerOptions
@classmethodGetRootAsSentencePieceTokenizerOptions( buf, offset=0 )
This method is deprecated. Please switch to GetRootAs.
Init
Init(
buf, pos
)
SentencePieceModel
SentencePieceModel(
j
)
SentencePieceModelIsNone
SentencePieceModelIsNone()
SentencePieceModelLength
SentencePieceModelLength()
SentencePieceTokenizerOptionsBufferHasIdentifier
@classmethodSentencePieceTokenizerOptionsBufferHasIdentifier( buf, offset, size_prefixed=False )
VocabFile
VocabFile(
j
)
VocabFileIsNone
VocabFileIsNone()
VocabFileLength
VocabFileLength()
View source on GitHub