mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-06-14 19:57:04 +08:00
feat: 词云支持关键词过滤(resolve #126)
This commit is contained in:
@@ -24,6 +24,7 @@ export function getWordFrequency(params: WordFrequencyParams): WordFrequencyResu
|
||||
customPosTags,
|
||||
enableStopwords = true,
|
||||
dictType = 'default',
|
||||
excludeWords,
|
||||
} = params
|
||||
|
||||
const db = openDatabase(sessionId)
|
||||
@@ -87,6 +88,7 @@ export function getWordFrequency(params: WordFrequencyParams): WordFrequencyResu
|
||||
customPosTags,
|
||||
enableStopwords,
|
||||
dictType: dictType as DictType,
|
||||
excludeWords,
|
||||
})
|
||||
|
||||
let totalWords = 0
|
||||
|
||||
Reference in New Issue
Block a user