Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alasdairforsythe/tokenmonster
/ functions
Functions
381 in github.com/alasdairforsythe/tokenmonster
⨍
Functions
381
◇
Types & classes
47
↓ 1 callers
Function
convertStringToUTF16
(s string)
go/tokenmonster.go:221
↓ 1 callers
Function
convertStringToUTF16
* func norm_UTF16_NFD(input []byte) ([]byte, error) { // Assume LittleEndian by default endian := uni.LittleEndian bomPolicy := uni.IgnoreBOM if l
training/trainvocab.go:400
↓ 1 callers
Method
decodeSerialized
(b []byte, encodingLength uint8, buffer []byte)
go/tokenmonster.go:836
↓ 1 callers
Method
decode_raw
tokenmonster-cpp/src/tokenmonster.cpp:1403
↓ 1 callers
Function
decode_utf8
tokenmonster-cpp/src/tokenmonster.cpp:43
↓ 1 callers
Method
deserialize
tokenmonster-cpp/src/tokenmonster.cpp:1365
↓ 1 callers
Method
detokenize_bytes
(tokens)
javascript/tokenmonster.js:789
↓ 1 callers
Function
displayString1
(key, capcode)
javascript/tokenmonster.js:100
↓ 1 callers
Function
displayString2
(key, capcode)
javascript/tokenmonster.js:144
↓ 1 callers
Function
encode_llama_token
(token, space_char)
yaml_guide/convert_llamatokenizer.py:12
↓ 1 callers
Function
encode_tokens
(encoding, text_from_file)
benchmark/tiktoken_test.py:17
↓ 1 callers
Method
eof
tokenmonster-cpp/src/tokenmonster.cpp:179
↓ 1 callers
Function
gen128bytes
(list []bool, usingCapcode uint8)
go/tokenmonster.go:339
↓ 1 callers
Function
gen128bytes
(list []bool)
training/trainvocab.go:215
↓ 1 callers
Function
gen256bytes
(list []bool, usingCapcode uint8)
go/tokenmonster.go:349
↓ 1 callers
Function
gen256bytes
(list []bool)
training/trainvocab.go:225
↓ 1 callers
Function
genExtendedbytes
(list []bool, usingCapcode uint8, normalizer norm.Normalizer)
go/tokenmonster.go:327
↓ 1 callers
Function
genExtendedbytes
(list []bool)
training/trainvocab.go:203
↓ 1 callers
Function
genUTF8bytes
(list []bool, usingCapcode uint8)
go/tokenmonster.go:301
↓ 1 callers
Function
genUTF8bytes
(list []bool)
training/trainvocab.go:177
↓ 1 callers
Function
hasSuffixPos
(ungreedySuffixesB [][]byte, key []byte, charset uint8, usingCapcode uint8)
go/tokenmonster.go:287
↓ 1 callers
Function
hasSuffixPos
(key []byte)
training/trainvocab.go:163
↓ 1 callers
Method
id_to_token
tokenmonster-cpp/src/tokenmonster.cpp:3237
↓ 1 callers
Function
incompleteUTF16Bytes
(bytes)
javascript/tokenmonster.js:855
↓ 1 callers
Function
incompleteUTF8Bytes
(bytes)
javascript/tokenmonster.js:817
↓ 1 callers
Function
isDelimiterConsistent
(r rune)
training/getalltokens.go:327
↓ 1 callers
Function
isOther
(r rune)
training/getalltokens.go:306
↓ 1 callers
Function
isProcessRunning
(processID string)
training/tokenmonsterserver.go:115
↓ 1 callers
Function
is_int
(obj)
python/tokenmonster.py:1295
↓ 1 callers
Method
load
tokenmonster-cpp/src/tokenmonster.cpp:1287
↓ 1 callers
Function
loadTokensFromFile
(filename string)
training/exportvocab.go:20
↓ 1 callers
Function
load_text_from_file
(file_path)
benchmark/tiktoken_test.py:9
↓ 1 callers
Function
load_text_from_file
(file_path)
benchmark/llama_test.py:9
↓ 1 callers
Function
main
()
training/dataset_helpers/download_code_samples.py:75
↓ 1 callers
Function
main
()
training/dataset_helpers/extract_text_from_jsonl_parquet.py:71
↓ 1 callers
Function
make_corpus
tokenmonster-cpp/tests/bench.cpp:39
↓ 1 callers
Function
make_vocab
tokenmonster-cpp/tests/unit.cpp:50
↓ 1 callers
Function
mergeBytes
(list [][]byte, new []byte)
training/trainvocab.go:235
↓ 1 callers
Function
normalizeSafe
normalizes but avoids double encoding with capcode
go/tokenmonster.go:256
↓ 1 callers
Function
normalize_and_capcode
tokenmonster-cpp/src/tokenmonster.cpp:483
↓ 1 callers
Function
normalize_bytes
tokenmonster-cpp/src/tokenmonster.cpp:428
↓ 1 callers
Function
print_tokens
tokenmonster-cpp/tests/dump.cpp:22
↓ 1 callers
Function
process_all_files
(output_file=None, max_size=None)
training/dataset_helpers/extract_text_from_jsonl_parquet.py:51
↓ 1 callers
Function
process_language
(lang)
training/dataset_helpers/download_code_samples.py:23
↓ 1 callers
Function
quotemarks
tokenmonster-cpp/src/tokenmonster.cpp:340
↓ 1 callers
Function
readUint56
(buf []byte)
training/tokenmonsterserver.go:84
↓ 1 callers
Function
remove_mn
tokenmonster-cpp/src/tokenmonster.cpp:231
↓ 1 callers
Method
save
Saves the current vocabulary to a file. Parameters: filename (string): The filename to save the vocabulary to.
python/tokenmonster.py:870
↓ 1 callers
Function
saveTokensToFile
(filename string, data [][]byte)
training/mergetokens.go:55
↓ 1 callers
Function
saveTokensToFile
(filename string, obj *pansearch.Counter)
training/getalltokens.go:186
↓ 1 callers
Function
saveTokensToFile
(filename string, data [][]byte, scores []float32, usingCapcode uint8, charsetFlag uint8, normalize uint8, lev
training/exportvocab.go:62
↓ 1 callers
Function
stripOpenClose
(tok []byte, r rune, n int)
training/getalltokens.go:437
↓ 1 callers
Method
token_to_id
tokenmonster-cpp/src/tokenmonster.cpp:3242
↓ 1 callers
Method
tokenize
(data []byte)
go/tokenmonster.go:1017
↓ 1 callers
Method
tokenizeCount
(data []byte)
go/tokenmonster.go:1281
↓ 1 callers
Method
tokenizeToSerialized16
(data []byte, buffer []byte)
go/tokenmonster.go:1545
↓ 1 callers
Method
tokenizeToSerialized24
(data []byte, buffer []byte)
go/tokenmonster.go:1817
↓ 1 callers
Method
tokenizeToSerialized32
(data []byte, buffer []byte)
go/tokenmonster.go:2089
↓ 1 callers
Method
tokenize_bytes
(text)
javascript/tokenmonster.js:464
↓ 1 callers
Method
tokenize_normalized
tokenmonster-cpp/src/tokenmonster.cpp:1723
↓ 1 callers
Function
trim_and_add_leading_space
tokenmonster-cpp/src/tokenmonster.cpp:267
↓ 1 callers
Function
trim_bytes
tokenmonster-cpp/src/tokenmonster.cpp:254
↓ 1 callers
Function
unix_lines
tokenmonster-cpp/src/tokenmonster.cpp:302
↓ 1 callers
Function
worker
* Bitwise stuff: Things that I need: 1 ends with a letter 2 begins with a letter 4 begins with a space OR characterToken OR wordToken 8 ends on c
training/trainvocab.go:505
↓ 1 callers
Function
workerBalanced
(max int, jobs <-chan [][]byte, ret chan<- [][]byte)
training/getalltokens.go:1181
↓ 1 callers
Function
workerClean
(max int, jobs <-chan [][]byte, ret chan<- [][]byte)
training/getalltokens.go:1163
↓ 1 callers
Function
workerConsistent
(max int, jobs <-chan [][]byte, ret chan<- [][]byte)
training/getalltokens.go:1199
↓ 1 callers
Function
workerStrict
(max int, jobs <-chan [][]byte, ret chan<- [][]byte)
training/getalltokens.go:1217
↓ 1 callers
Function
writeFloat32
(buf []byte, v float32)
training/tokenmonsterserver.go:95
↓ 1 callers
Function
write_bytes8
tokenmonster-cpp/tests/unit.cpp:35
↓ 1 callers
Function
write_float32
tokenmonster-cpp/tests/unit.cpp:29
↓ 1 callers
Function
write_uint32
tokenmonster-cpp/tests/unit.cpp:22
↓ 1 callers
Function
yamlParse
(data []byte)
go/tokenmonster.go:3831
↓ 1 callers
Function
zombieController
(parentPID string)
training/tokenmonsterserver.go:144
Method
AddSpecialToken
Adds a single special token to the vocabulary. A special token is special because only this token is allowed to tokenize text containing this. If any
go/tokenmonster.go:2786
Method
AddSpecialTokens
Add multiple special tokens and optionally resize. Enter `size` 0 to not resize. Modifying a vocabulary does not change existing token IDs.
go/tokenmonster.go:2820
Method
AddToken
Adds a single token to the vocabulary. Modifying a vocabulary does not change existing token IDs. All normalization and capcode is applied automatical
go/tokenmonster.go:2777
Method
AddTokens
Adds multiple regular and optionally special tokens. You can use `size` to resize the vocabulary to keep it at a specific size. Enter `size` 0 to not
go/tokenmonster.go:2813
Method
Decode
Decodes tokens IDs back into bytes.
go/tokenmonster.go:701
Method
Decoder
tokenmonster-cpp/include/tokenmonster/tokenmonster.hpp:54
Method
Decoder
()
javascript/tokenmonster.js:250
Method
DeleteToken
Deletes a single token from the vocabulary. Tokens to delete can be capcoded encoded or not, it will look for both. Modifying a vocabulary does not ch
go/tokenmonster.go:2793
Method
DeleteTokenID
Deletes a single token from the vocabulary by specifying the ID. Modifying a vocabulary does not change existing token IDs.
go/tokenmonster.go:2799
Method
DeleteTokens
Delete multiple tokens and optionally resize. Tokens to delete can be capcoded encoded or not, it will look for both. Enter `size` 0 to not resize. Mo
go/tokenmonster.go:2828
Method
Deserialize
Deserializes tokens encoded in a bytes stream into a slice of uint32 token IDs. `encodingLength` must be one of: 0, 2, 3, 4. If you enter `encodingLen
go/tokenmonster.go:745
Method
Flush
Flushes the remainder from the Decoder instance These will any trailing incomplete UTF-8 sequences or capcode encoding marks
go/tokenmonster.go:456
Method
IdToToken
Returns the encoded token for the token ID, or nil if it does not exist.
go/tokenmonster.go:2470
Function
Load
Load the vocabulary from a local file.
go/tokenmonster.go:2656
Method
ModifyVocabulary
Add regular & special tokens, delete tokens and resize, all in one. Modifying a vocabulary does not change existing token IDs. Pass resetTokenIds = tr
go/tokenmonster.go:2835
Method
ModifyVocabularyFromYAML
Add regular & special tokens, delete tokens and resize, all in one. Modifying a vocabulary does not change existing token IDs. Pass resetTokenIds = tr
go/tokenmonster.go:2842
Function
NewVocab
--------- GENERATE & MODIFY --------- NewVocab makes a fresh vocabulary from a custom list of tokens. If you generated your vocabulary with TokenMonst
go/tokenmonster.go:2742
Function
NewVocabFromYAML
NewVocabFromYAML makes a fresh vocabulary from a YAML file.
go/tokenmonster.go:2768
Method
NumSpecialTokens
Returns the number of special tokens in the vocabulary.
go/tokenmonster.go:2445
Method
Reader
tokenmonster-cpp/src/tokenmonster.cpp:133
Method
ResetTokenIds
Resets all the IDs of the tokens to be assigned alphabetically, starting from 0, with no gaps.
go/tokenmonster.go:2805
Method
Resize
Resize the vocabulary by deleting the worst scoring tokens. You can also resize the vocabulary to be larger if any tokens have previously been deleted
go/tokenmonster.go:2849
Method
SingleByteTokens
A slice that contains all the single byte tokens in the vocabulary. Note that this is returned as only a slice of bytes, not a slice of slice of bytes
go/tokenmonster.go:2525
Method
Tokens
Returns a slice of all tokens in the vocabulary (excluding UNK), in their encoded capcode form.
go/tokenmonster.go:2457
Method
Vocab
tokenmonster-cpp/src/tokenmonster.cpp:1284
Method
Vocab
tokenmonster-cpp/include/tokenmonster/tokenmonster.hpp:78
← previous
next →
201–300 of 381, ranked by callers