jieba 和 word-cloud,Jieba 服务和词云插件,能用就行

3 个赞

实现非常糙但
无标题

1 个赞

nodejs-file-downloader 忘加进依赖了,太晚了,明天再修,遇到问题可以手动 yarn add

1 个赞

啊? jieba ?

速速支持 Koishi Context 服务!!

2 个赞

速速 cordis.Service

1 个赞

用法不和 pupeteer 一样的

1 个赞

已经有了,如果你是指 ctx.jieba.cut 之类的话

2 个赞

怎么只能记录命令啊

1 个赞

啥呀,指令当然会记录,因为也是当做信息的,但只能记录指令是不是有点逆天了,你样本量太小了吧

1 个赞

确实是样本量太少了,在私群测试,因为只有指令是英文的所以没注意到。不是只记录指令,是只记录英文和数字

1 个赞

只记录英文?
你是不是jieba没开?(
jieba用来给中文分词的,我有过效果

1 个赞

jieba有开但没配置,另外问下装了jieba后居然更新和安装不了插件,是特别情况吗,看了npm的日志才发现,卸了恢复正常。部署在zerotermux debian上

Log files:
/root/.npm/_logs/2023-09-01T03_50_55_603Z-debug-0.log

npm resolution error report

While resolving: koishi-plugin-word-cloud@0.4.0
Found: koishi-plugin-jieba@0.3.4
node_modules/koishi-plugin-jieba
koishi-plugin-jieba@“0.3.4” from the root project
Could not resolve dependency:
peer koishi-plugin-jieba@“^0.2.0” from koishi-plugin-word-cloud@0.4.0
node_modules/koishi-plugin-word-cloud
koishi-plugin-word-cloud@“0.4.0” from the root project
Conflicting peer dependency: koishi-plugin-jieba@0.2.6
node_modules/koishi-plugin-jieba
peer koishi-plugin-jieba@“^0.2.0” from koishi-plugin-word-cloud@0.4.0
node_modules/koishi-plugin-word-cloud
koishi-plugin-word-cloud@“0.4.0” from the root project
Fix the upstream dependency conflict, or retry
this command with --force or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.

2 个赞

啊,有这种事? 你是不是又把 jieba 的二进制目录设置到 node_modules 那里了

1 个赞

我是不是应该检测一下用户会不会自己把二进制目录设置到 node_modules 来自己造成不安全环境(,你的 error report 写着 Found: koishi-plugin-jieba@0.3.4
node_modules/koishi-plugin-jieba

如果你想知道为什么不能用了可以看看 GitHub 上的好玩文章:零占用的 Koishi - #2,来自 ilharp

1 个赞

那么二进制目录该怎么设置呢,能通过koishi进行设置吗

1 个赞

默认就不在 node_modules 里边的吧,二进制目录是通过插件配置设置的,我那时候理解错了,其实你的报告问题主要还是你有俩 jieba,用用 --force,我过后把 word-cloud 用的 jieba 版本提一提

1 个赞

我打算完全用 skia-canvas 重写一遍词云插件,等着吧,如果你想反馈更多问题可以加群,论坛我也不是天天看,http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=UHpjqEFmerOM2dm3Tfvrt0ZJpLu71iTb&authKey=Mb5mplU9E5GZG%2FRxIIyqg98gfuuxQjLzMfzedigiQzX14LZGEJcQ2V0muWSlREhO&noverify=0&group_code=957500313

1 个赞

请问下,使用cloud命令输出来的图一片空白,使用–full参数后正常
查看log发现了这个报错

重载了几次canvas都这样
我尝试着去下载了报错中提到的字体lxgw-wenkai-lite-v1.300丢到了报错在提到的目录

使用cloud还是一片空白

请问有什么办法解决呀

2 个赞

Release v1.300 23/05/01 · lxgw/LxgwWenKai-Lite · GitHub 下载 tar.gz 文件丢到 font 目录下

1 个赞

哦哦,原来要下的是这个,正常了,感谢大佬

2 个赞