(text: string)
| 14 | function 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 | }, |