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

Function tag

apps/desktop/main/worker/query/advanced/languagePreference.ts:16–19  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

14function createWorkerNlpProvider(dictType: DictType = 'default'): NlpProvider {
15 return {
16 tag(text: string): PosTagResult[] {
17 const jieba = getJieba(dictType)
18 return jieba.tag(text)
19 },
20 isStopword(word: string, locale: string): boolean {
21 return isStopword(word, locale)
22 },

Callers

nothing calls this directly

Calls 2

getJiebaFunction · 0.90
tagMethod · 0.80

Tested by

no test coverage detected