MCPcopy Create free account

hub / github.com/alasdairforsythe/tokenmonster / functions

Functions381 in github.com/alasdairforsythe/tokenmonster

↓ 1 callersFunctionconvertStringToUTF16
(s string)
go/tokenmonster.go:221
↓ 1 callersFunctionconvertStringToUTF16
* 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 callersMethoddecodeSerialized
(b []byte, encodingLength uint8, buffer []byte)
go/tokenmonster.go:836
↓ 1 callersMethoddecode_raw
tokenmonster-cpp/src/tokenmonster.cpp:1403
↓ 1 callersFunctiondecode_utf8
tokenmonster-cpp/src/tokenmonster.cpp:43
↓ 1 callersMethoddeserialize
tokenmonster-cpp/src/tokenmonster.cpp:1365
↓ 1 callersMethoddetokenize_bytes
(tokens)
javascript/tokenmonster.js:789
↓ 1 callersFunctiondisplayString1
(key, capcode)
javascript/tokenmonster.js:100
↓ 1 callersFunctiondisplayString2
(key, capcode)
javascript/tokenmonster.js:144
↓ 1 callersFunctionencode_llama_token
(token, space_char)
yaml_guide/convert_llamatokenizer.py:12
↓ 1 callersFunctionencode_tokens
(encoding, text_from_file)
benchmark/tiktoken_test.py:17
↓ 1 callersMethodeof
tokenmonster-cpp/src/tokenmonster.cpp:179
↓ 1 callersFunctiongen128bytes
(list []bool, usingCapcode uint8)
go/tokenmonster.go:339
↓ 1 callersFunctiongen128bytes
(list []bool)
training/trainvocab.go:215
↓ 1 callersFunctiongen256bytes
(list []bool, usingCapcode uint8)
go/tokenmonster.go:349
↓ 1 callersFunctiongen256bytes
(list []bool)
training/trainvocab.go:225
↓ 1 callersFunctiongenExtendedbytes
(list []bool, usingCapcode uint8, normalizer norm.Normalizer)
go/tokenmonster.go:327
↓ 1 callersFunctiongenExtendedbytes
(list []bool)
training/trainvocab.go:203
↓ 1 callersFunctiongenUTF8bytes
(list []bool, usingCapcode uint8)
go/tokenmonster.go:301
↓ 1 callersFunctiongenUTF8bytes
(list []bool)
training/trainvocab.go:177
↓ 1 callersFunctionhasSuffixPos
(ungreedySuffixesB [][]byte, key []byte, charset uint8, usingCapcode uint8)
go/tokenmonster.go:287
↓ 1 callersFunctionhasSuffixPos
(key []byte)
training/trainvocab.go:163
↓ 1 callersMethodid_to_token
tokenmonster-cpp/src/tokenmonster.cpp:3237
↓ 1 callersFunctionincompleteUTF16Bytes
(bytes)
javascript/tokenmonster.js:855
↓ 1 callersFunctionincompleteUTF8Bytes
(bytes)
javascript/tokenmonster.js:817
↓ 1 callersFunctionisDelimiterConsistent
(r rune)
training/getalltokens.go:327
↓ 1 callersFunctionisOther
(r rune)
training/getalltokens.go:306
↓ 1 callersFunctionisProcessRunning
(processID string)
training/tokenmonsterserver.go:115
↓ 1 callersFunctionis_int
(obj)
python/tokenmonster.py:1295
↓ 1 callersMethodload
tokenmonster-cpp/src/tokenmonster.cpp:1287
↓ 1 callersFunctionloadTokensFromFile
(filename string)
training/exportvocab.go:20
↓ 1 callersFunctionload_text_from_file
(file_path)
benchmark/tiktoken_test.py:9
↓ 1 callersFunctionload_text_from_file
(file_path)
benchmark/llama_test.py:9
↓ 1 callersFunctionmain
()
training/dataset_helpers/download_code_samples.py:75
↓ 1 callersFunctionmain
()
training/dataset_helpers/extract_text_from_jsonl_parquet.py:71
↓ 1 callersFunctionmake_corpus
tokenmonster-cpp/tests/bench.cpp:39
↓ 1 callersFunctionmake_vocab
tokenmonster-cpp/tests/unit.cpp:50
↓ 1 callersFunctionmergeBytes
(list [][]byte, new []byte)
training/trainvocab.go:235
↓ 1 callersFunctionnormalizeSafe
normalizes but avoids double encoding with capcode
go/tokenmonster.go:256
↓ 1 callersFunctionnormalize_and_capcode
tokenmonster-cpp/src/tokenmonster.cpp:483
↓ 1 callersFunctionnormalize_bytes
tokenmonster-cpp/src/tokenmonster.cpp:428
↓ 1 callersFunctionprint_tokens
tokenmonster-cpp/tests/dump.cpp:22
↓ 1 callersFunctionprocess_all_files
(output_file=None, max_size=None)
training/dataset_helpers/extract_text_from_jsonl_parquet.py:51
↓ 1 callersFunctionprocess_language
(lang)
training/dataset_helpers/download_code_samples.py:23
↓ 1 callersFunctionquotemarks
tokenmonster-cpp/src/tokenmonster.cpp:340
↓ 1 callersFunctionreadUint56
(buf []byte)
training/tokenmonsterserver.go:84
↓ 1 callersFunctionremove_mn
tokenmonster-cpp/src/tokenmonster.cpp:231
↓ 1 callersMethodsave
Saves the current vocabulary to a file. Parameters: filename (string): The filename to save the vocabulary to.
python/tokenmonster.py:870
↓ 1 callersFunctionsaveTokensToFile
(filename string, data [][]byte)
training/mergetokens.go:55
↓ 1 callersFunctionsaveTokensToFile
(filename string, obj *pansearch.Counter)
training/getalltokens.go:186
↓ 1 callersFunctionsaveTokensToFile
(filename string, data [][]byte, scores []float32, usingCapcode uint8, charsetFlag uint8, normalize uint8, lev
training/exportvocab.go:62
↓ 1 callersFunctionstripOpenClose
(tok []byte, r rune, n int)
training/getalltokens.go:437
↓ 1 callersMethodtoken_to_id
tokenmonster-cpp/src/tokenmonster.cpp:3242
↓ 1 callersMethodtokenize
(data []byte)
go/tokenmonster.go:1017
↓ 1 callersMethodtokenizeCount
(data []byte)
go/tokenmonster.go:1281
↓ 1 callersMethodtokenizeToSerialized16
(data []byte, buffer []byte)
go/tokenmonster.go:1545
↓ 1 callersMethodtokenizeToSerialized24
(data []byte, buffer []byte)
go/tokenmonster.go:1817
↓ 1 callersMethodtokenizeToSerialized32
(data []byte, buffer []byte)
go/tokenmonster.go:2089
↓ 1 callersMethodtokenize_bytes
(text)
javascript/tokenmonster.js:464
↓ 1 callersMethodtokenize_normalized
tokenmonster-cpp/src/tokenmonster.cpp:1723
↓ 1 callersFunctiontrim_and_add_leading_space
tokenmonster-cpp/src/tokenmonster.cpp:267
↓ 1 callersFunctiontrim_bytes
tokenmonster-cpp/src/tokenmonster.cpp:254
↓ 1 callersFunctionunix_lines
tokenmonster-cpp/src/tokenmonster.cpp:302
↓ 1 callersFunctionworker
* 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 callersFunctionworkerBalanced
(max int, jobs <-chan [][]byte, ret chan<- [][]byte)
training/getalltokens.go:1181
↓ 1 callersFunctionworkerClean
(max int, jobs <-chan [][]byte, ret chan<- [][]byte)
training/getalltokens.go:1163
↓ 1 callersFunctionworkerConsistent
(max int, jobs <-chan [][]byte, ret chan<- [][]byte)
training/getalltokens.go:1199
↓ 1 callersFunctionworkerStrict
(max int, jobs <-chan [][]byte, ret chan<- [][]byte)
training/getalltokens.go:1217
↓ 1 callersFunctionwriteFloat32
(buf []byte, v float32)
training/tokenmonsterserver.go:95
↓ 1 callersFunctionwrite_bytes8
tokenmonster-cpp/tests/unit.cpp:35
↓ 1 callersFunctionwrite_float32
tokenmonster-cpp/tests/unit.cpp:29
↓ 1 callersFunctionwrite_uint32
tokenmonster-cpp/tests/unit.cpp:22
↓ 1 callersFunctionyamlParse
(data []byte)
go/tokenmonster.go:3831
↓ 1 callersFunctionzombieController
(parentPID string)
training/tokenmonsterserver.go:144
MethodAddSpecialToken
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
MethodAddSpecialTokens
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
MethodAddToken
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
MethodAddTokens
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
MethodDecode
Decodes tokens IDs back into bytes.
go/tokenmonster.go:701
MethodDecoder
tokenmonster-cpp/include/tokenmonster/tokenmonster.hpp:54
MethodDecoder
()
javascript/tokenmonster.js:250
MethodDeleteToken
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
MethodDeleteTokenID
Deletes a single token from the vocabulary by specifying the ID. Modifying a vocabulary does not change existing token IDs.
go/tokenmonster.go:2799
MethodDeleteTokens
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
MethodDeserialize
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
MethodFlush
Flushes the remainder from the Decoder instance These will any trailing incomplete UTF-8 sequences or capcode encoding marks
go/tokenmonster.go:456
MethodIdToToken
Returns the encoded token for the token ID, or nil if it does not exist.
go/tokenmonster.go:2470
FunctionLoad
Load the vocabulary from a local file.
go/tokenmonster.go:2656
MethodModifyVocabulary
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
MethodModifyVocabularyFromYAML
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
FunctionNewVocab
--------- GENERATE & MODIFY --------- NewVocab makes a fresh vocabulary from a custom list of tokens. If you generated your vocabulary with TokenMonst
go/tokenmonster.go:2742
FunctionNewVocabFromYAML
NewVocabFromYAML makes a fresh vocabulary from a YAML file.
go/tokenmonster.go:2768
MethodNumSpecialTokens
Returns the number of special tokens in the vocabulary.
go/tokenmonster.go:2445
MethodReader
tokenmonster-cpp/src/tokenmonster.cpp:133
MethodResetTokenIds
Resets all the IDs of the tokens to be assigned alphabetically, starting from 0, with no gaps.
go/tokenmonster.go:2805
MethodResize
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
MethodSingleByteTokens
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
MethodTokens
Returns a slice of all tokens in the vocabulary (excluding UNK), in their encoded capcode form.
go/tokenmonster.go:2457
MethodVocab
tokenmonster-cpp/src/tokenmonster.cpp:1284
MethodVocab
tokenmonster-cpp/include/tokenmonster/tokenmonster.hpp:78
← previousnext →201–300 of 381, ranked by callers