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

Function existsDictOnDisk

packages/node-runtime/src/nlp/segmenter.ts:41–44  ·  view source on GitHub ↗
(dictId: string)

Source from the content-addressed store, hash-verified

39}
40
41function existsDictOnDisk(dictId: string): boolean {
42 if (!_nlpDir) return false
43 return fs.existsSync(path.join(_nlpDir, `${dictId}.dict`))
44}
45
46function tryLoadDictFromDisk(dictId: string): Buffer | null {
47 if (!_nlpDir) return null

Callers 1

getJiebaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected