MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / segmentText

Function segmentText

packages/node-runtime/src/nlp/word-frequency.ts:128–130  ·  view source on GitHub ↗
(text: string, locale: SupportedLocale, minLength?: number)

Source from the content-addressed store, hash-verified

126 * 单文本分词
127 */
128export function segmentText(text: string, locale: SupportedLocale, minLength?: number): string[] {
129 return segment(text, locale, { minLength })
130}

Callers 2

registerNlpRoutesFunction · 0.90
handlerFunction · 0.50

Calls 1

segmentFunction · 0.90

Tested by

no test coverage detected