Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/google/sentencepiece
/ functions
Functions
367 in github.com/google/sentencepiece
⨍
Functions
367
◇
Types & classes
60
↓ 3 callers
Method
SetVocabulary
src/sentencepiece_processor.cc:131
↓ 3 callers
Method
StartWorkers
src/deps/threadpool.h:17
↓ 3 callers
Method
bos_node
src/unigram_model.cc:79
↓ 3 callers
Method
eos_node
src/unigram_model.cc:81
↓ 3 callers
Method
status
src/sentencepiece_processor.cc:123
↓ 2 callers
Method
Add
src/trainer_interface.cc:135
↓ 2 callers
Method
Add
src/util.h:335
↓ 2 callers
Method
Clear
src/unigram_model.cc:89
↓ 2 callers
Function
DecodeUTF8
mblen sotres the number of bytes consumed after decoding.
src/util.cc:22
↓ 2 callers
Function
Digamma
src/unigram_model_trainer.cc:41
↓ 2 callers
Method
Free
`Free` doesn't free the object but reuse the allocated memory chunks.
src/freelist.h:35
↓ 2 callers
Method
GetPieceSize
src/sentencepiece_processor_test.cc:72
↓ 2 callers
Function
GetRandomGenerator
src/util.cc:158
↓ 2 callers
Function
GetScript
src/unicode_script.cc:37
↓ 2 callers
Function
InsertIfNotPresent
src/util.h:246
↓ 2 callers
Function
InsertOrDie
src/util.h:261
↓ 2 callers
Method
LoadFromSerializedProto
src/sentencepiece_processor.cc:69
↓ 2 callers
Function
MakeBaseModelProto
src/char_model_test.cc:30
↓ 2 callers
Function
MakeBaseModelProto
src/word_model_test.cc:31
↓ 2 callers
Method
PopulateMarginal
src/unigram_model.cc:181
↓ 2 callers
Function
PrintProto
src/spec_parser.h:100
↓ 2 callers
Function
RunTrainer
src/char_model_trainer_test.cc:35
↓ 2 callers
Function
STLDeleteElements
src/util.h:314
↓ 2 callers
Method
Sample
src/unigram_model.cc:329
↓ 2 callers
Method
SetOutput
src/pretokenizer_for_training_test.cc:35
↓ 2 callers
Function
StrError
src/util.cc:172
↓ 2 callers
Method
min_score
Returns the minimum score in sentence pieces. min_score() - 10 is used for the cost of unknown sentence.
src/unigram_model.h:132
↓ 2 callers
Method
size
Returns the number of allocated elements.
src/freelist.h:46
↓ 2 callers
Method
total_size
src/trainer_interface.cc:156
↓ 1 callers
Method
DecodePiecesAsSerializedProto
src/sentencepiece_processor.cc:539
↓ 1 callers
Method
Encode
///////////////////////////////////////////////////////// Simple API.
src/sentencepiece_processor.cc:208
↓ 1 callers
Method
EncodeAsSerializedProto
src/sentencepiece_processor.cc:518
↓ 1 callers
Function
ExpandUnnormalized
Given an NFKD-normalized string, returns a set of all strings which are normalized into the same `nfkd`. `norm2orig` is the normalized to un-normalize
src/builder.cc:96
↓ 1 callers
Function
FingerprintCat
src/util.h:307
↓ 1 callers
Method
Finish
src/trainer_interface.cc:123
↓ 1 callers
Method
Get
src/util.cc:143
↓ 1 callers
Method
GetScript
src/unicode_script.cc:28
↓ 1 callers
Function
InitTable
src/unicode_script_map.h:21
↓ 1 callers
Method
IsBigram
src/bpe_model_trainer.h:52
↓ 1 callers
Function
IsValidDecodeUTF8
src/util.h:201
↓ 1 callers
Function
LoadModelProto
src/sentencepiece_processor.cc:704
↓ 1 callers
Function
MakeHeader
src/compile_charsmap_main.cc:100
↓ 1 callers
Method
NBestEncode
src/sentencepiece_processor.cc:256
↓ 1 callers
Method
NBestEncodeAsSerializedProto
src/sentencepiece_processor.cc:532
↓ 1 callers
Function
RandomString
src/model_interface_test.cc:238
↓ 1 callers
Method
ReadAll
src/filesystem.cc:55
↓ 1 callers
Method
ResetVocabulary
src/sentencepiece_processor.cc:161
↓ 1 callers
Function
RunTrainer
src/word_model_trainer_test.cc:35
↓ 1 callers
Method
SampleEncodeAsSerializedProto
src/sentencepiece_processor.cc:525
↓ 1 callers
Method
SetPrefixMatcher
src/normalizer.h:72
↓ 1 callers
Function
SimpleItoa
src/util.h:172
↓ 1 callers
Function
ToHexData
src/compile_charsmap_main.cc:70
↓ 1 callers
Function
ToHexUInt64Array
src/compile_charsmap_main.cc:36
↓ 1 callers
Function
ToLogProb
src/unigram_model_trainer.cc:54
↓ 1 callers
Function
ToNFC
src/builder.cc:85
↓ 1 callers
Function
ToNFKC
src/builder.cc:81
↓ 1 callers
Function
ToNFKD
src/builder.cc:77
↓ 1 callers
Function
VerifySpec
src/trainer_interface.cc:52
↓ 1 callers
Method
max_score
Returns the maximum score in sentence pieces. max_score() is used for the cost of user defined symbols.
src/unigram_model.h:136
↓ 1 callers
Function
mix
hash
src/util.h:268
↓ 1 callers
Method
prefix_matcher
src/model_interface.h:68
↓ 1 callers
Method
total_size
src/util.h:348
Method
AddNewPair
src/bpe_model_trainer.cc:128
Method
ApplyExtraOptions
static
src/sentencepiece_processor.cc:620
Method
BuildNFKCMap
static
src/builder.cc:297
Method
BuildNFKC_CFMap
static
src/builder.cc:455
Method
BuildNmtNFKCMap
src/builder.cc:355
Method
BuildNmtNFKC_CFMap
static
src/builder.cc:470
Method
BuildTrie
src/unigram_model.cc:435
Method
Builder
src/builder.h:38
Method
CompileCharsMap
static
src/builder.cc:156
Method
ComputeFreq
src/bpe_model_trainer.cc:81
Method
Create
Instantiate Trainer instance from trainer_spec and normalization_spec
src/trainer_factory.cc:26
Method
Create
Instantiate Model instance from |model_proto|
src/model_factory.cc:26
Method
DecodeIds
src/sentencepiece_processor.h:279
Method
DecodeIdsAsSerializedProto
src/sentencepiece_processor.cc:546
Function
DecodePOD
src/util.h:114
Method
DecodePieces
src/sentencepiece_processor.h:274
Method
DecodePos
Decodes sid, left and right bigram index from uint64.
src/bpe_model_trainer.h:75
Method
DecodePrecompiledCharsMap
static
src/normalizer.cc:265
Method
DecompileCharsMap
static
src/builder.cc:223
Method
Delete
src/util.cc:153
Method
Encode
src/char_model.cc:28
Method
Encode
src/word_model.cc:28
Method
Encode
src/unigram_model.cc:501
Method
Encode
src/sentencepiece_processor_test.cc:470
Method
Encode
src/unigram_model_trainer.h:53
Method
EncodeAsIds
src/sentencepiece_processor.h:244
Method
EncodeAsPieces
src/sentencepiece_processor.h:239
Function
EncodePOD
src/util.h:123
Method
EncodePos
Encodes sid, left and right bigram index into uint64. Encoded value keeps the order of sid, left and right.
src/bpe_model_trainer.h:65
Method
EncodePrecompiledCharsMap
static
src/normalizer.cc:254
Method
FinalizeSentencePieces
src/unigram_model_trainer.cc:423
Method
FreeList
src/freelist.h:28
Method
GetCharSymbol
src/bpe_model_trainer.cc:31
Method
GetNextIndex
src/bpe_model_trainer.cc:112
Method
GetNormalizerSpec
static
src/sentencepiece_trainer.cc:59
Method
GetPairSymbol
src/bpe_model_trainer.cc:48
Method
GetPieceSize
src/sentencepiece_processor_test.cc:474
Method
GetPieceSize
Returns the size of sentence pieces, which is the same as the size of vocabulary for NMT.
src/model_interface.h:101
← previous
next →
101–200 of 367, ranked by callers