MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / fallbackTokenize

Function fallbackTokenize

packages/node-runtime/src/nlp/fts-tokenizer.ts:28–34  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

26}
27
28function fallbackTokenize(text: string): string {
29 return text
30 .toLowerCase()
31 .split(/\s+/)
32 .filter((t) => t.length > 0)
33 .join(' ')
34}
35
36function escapeToken(token: string): string {
37 return `"${token.replace(/"/g, '""')}"`

Callers 1

tokenizeForFtsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected