MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / tokenizer

Function tokenizer

smallthinker/tools/server/bench/script.js:33–33  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

31
32const data = new SharedArray('conversations', function () {
33 const tokenizer = (message) => message.split(/[\s,'".?]/)
34
35 return JSON.parse(open(dataset_path))
36 // Filter out the conversations with less than 2 turns.

Callers 1

script.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected