爱意满满的作品展示区。
cmos

Rime/雾凇拼音:敏感词/NSFW 词屏蔽工具

  •  
  •   cmos · Jan 28 · 1671 views
    This topic created in 113 days ago, the information mentioned may be changed or developed.

    原载于自己的博客( https://pa.ci/444.html ),觉得可能也有人需要,故转载到 V2EX 上让更多的人能通过搜索引擎发现。

    Rime/雾凇拼音中包含的敏感词( NSFW 词)总是会在各种场合下出现,不适合工作中使用。所以使用 Golang 写了一个简易的 NSFW 词屏蔽软件。

    以下是简要的使用说明,更多详细内容可以前往GitHub: IceMinus查看。

    使用说明

    安装

    推荐在release 页面下载预编译的二进制文件。

    或自行编译,例如:

    git clone https://github.com/uselibrary/iceminus.git
    cd iceminus
    # 编译 Windows 版本
    env GOOS=windows GOARCH=amd64 go build -o bin/iceminus_windows_amd64.exe .
    

    使用说明

    下载后运行 iceminus ,指定要处理的目录,以 Windows 为例:

    ./iceminus.exe --path C:\Users\USERNAME\AppData\Roaming\Rime\cn_dicts # USERNAME 替换为你的用户名
    

    程序将扫描该目录下的所有 YAML 文件,查找包含敏感词的行,并在行首添加注释符号 # 以屏蔽这些条目。

    随后,请执行 Rime 的重新部署以应用更改。

    sunnywx
        1
    sunnywx  
       Jan 28
    正好需要
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1152 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 18:12 · PVG 02:12 · LAX 11:12 · JFK 14:12
    ♥ Do have faith in what you're doing.