/install funasr-punctuation-restore
\r \r
Funasr-Punctuation-Restore\r
\r
功能:使用 FunASR ct-punc 模型一键恢复标点(支持文本/文件/目录)。目录模式会在同级创建结构完全一致的 _punctuated 镜像目录(原目录不变)。支持 GPU 加速 + 自动清理显存。\r
\r
触发时机(Triggers)\r
- 用户提供一段没有标点或标点不全的文本,要求“加标点”“恢复标点”“整理标点”。\r
- 用户提供 .txt 文件路径或整个文件夹,要求批量处理。\r
- 常用于 ASR(语音转文字)后的后处理场景。\r
- 支持直接粘贴文本、单个文件、或整个目录。\r \r
支持的模型(推荐顺序)\r
- punc_ct-transformer_cn-en-common-vocab471067-large → 基于 Transformer 的中英文混合文本标点恢复模型,适合 ASR 结果自动加标点。\r \r
参数提取指南\r
当决定调用此技能时,请从用户上下文中提取以下参数:\r
--text "\x3C文本内容>"(如果用户直接提供了文本)\r--file "\x3C文件路径>"(如果用户提供了单个 .txt 文件路径)\r--dir "\x3C目录路径>"(如果用户提供了文件夹路径,会批量处理)\r \r
执行步骤\r
- 解析输入:识别用户是提供了文本、单个文件,还是整个目录。\r
- 默认目标:若未指定输出路径,默认在输入同级创建
[原文件名]_punctuated.txt或_punctuated目录(原文件/目录保持不变)。\r - 调用命令:使用以下兼容性命令启动脚本(优先 python3,失败则 python)。脚本会自动创建虚拟环境、检测 GPU 并安装对应版本。\r
\r
(python3 scripts/punctuation_restore.py (--text "\x3C文本内容>" | --file "\x3C文件路径>" | --dir "\x3C目录路径>")) || (python scripts/punctuation_restore.py (--text "\x3C文本内容>" | --file "\x3C文件路径>" | --dir "\x3C目录路径>"))
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install funasr-punctuation-restore - After installation, invoke the skill by name or use
/funasr-punctuation-restore - Provide required inputs per the skill's parameter spec and get structured output
What is funasr-punctuation-restore?
当用户想要**给文本恢复标点**、**ASR 转录结果加标点**、**无标点文本加标点**、**转录文本整理标点**、**批量给文件或目录加标点**时自动触发。 使用 FunASR ct-punc 模型,为一段文本、单个记事本文件(.txt)、或整个目录一键恢复中文/英文标点符号。 支持直接输入文本、单个文件路径... It is an AI Agent Skill for Claude Code / OpenClaw, with 246 downloads so far.
How do I install funasr-punctuation-restore?
Run "/install funasr-punctuation-restore" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is funasr-punctuation-restore free?
Yes, funasr-punctuation-restore is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does funasr-punctuation-restore support?
funasr-punctuation-restore is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created funasr-punctuation-restore?
It is built and maintained by 顶尖王牌程序员 (@wangminrui2022); the current version is v1.0.6.