feat: 乱七八糟的的统计词云

This commit is contained in:
ikechan8370 2023-04-20 17:07:33 +08:00
parent 7f773dcfc4
commit 3cfbe9eae7
7 changed files with 188 additions and 4 deletions

View file

@ -0,0 +1,11 @@
import { Tokenizer } from './tokenizer.js'
import { render } from '../common.js'
export async function makeWordcloud (e, groupId) {
let tokenizer = new Tokenizer()
let topK = await tokenizer.getTodayKeywordTopK(groupId, 100)
let list = JSON.stringify(topK)
// let list = topK
console.log(list)
await render(e, 'chatgpt-plugin', 'wordcloud/index', { list })
}