mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 05:47:11 +00:00
增加了“最新词云”功能 (#465)
* 增加了"最新词云"功能 * fix bug * fix bug... * fix bug......
This commit is contained in:
parent
c00b6d85d2
commit
220a3f155d
3 changed files with 55 additions and 7 deletions
|
|
@ -1,9 +1,9 @@
|
|||
import { Tokenizer } from './tokenizer.js'
|
||||
import { render } from '../common.js'
|
||||
|
||||
export async function makeWordcloud (e, groupId) {
|
||||
export async function makeWordcloud (e, groupId, duration = 0) {
|
||||
let tokenizer = new Tokenizer()
|
||||
let topK = await tokenizer.getTodayKeywordTopK(groupId, 100)
|
||||
let topK = await tokenizer.getKeywordTopK(groupId, 100, duration)
|
||||
let list = JSON.stringify(topK)
|
||||
// let list = topK
|
||||
console.log(list)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue