Skip to content
Back to skills

Keyword Extractor

ASecurity

'关键词提取标注工具。读取包含文本字段的表格或JSONL语料,为每条记录提取核心关键词并写入新增关键词字段。

  • 539 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 11, 2026
toolspythonbash

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 4 files and shows the line behind each finding

Scanned September 11, 2026

npx -y skills add cas-bigdatalab/piflow --skill keyword_extractor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Keyword Extractor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Keyword Extractor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cas-bigdatalab-keyword-extractor/badge)](https://www.skillsdirectory.com/skills/cas-bigdatalab-keyword-extractor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: keyword_extractor
description: '关键词提取标注工具。读取包含文本字段的表格或JSONL语料,为每条记录提取核心关键词并写入新增关键词字段。

  当用户提到关键词提取、关键词抽取、文本关键词、标签提取等需求时使用此skill。

  即使用户没有明确说出"keyword_extractor",只要任务涉及从文本内容中提取重要词汇或短语作为标签,就应该使用此skill。

  不负责按预置领域关键词库做相关性筛选、文本清洗、分词结果展开或章节切分。

  '
name_zh: 关键词提取算子
input_params:
- name: input
  type: string
  required: true
  description: 输入文件路径(支持CSV/TSV/JSON等)
- name: output
  type: string
  required: true
  description: 输出文件路径
- name: text_field
  type: string
  required: true
  description: 文本字段名
- name: label_field
  type: string
  required: false
  default: keywords
  description: 输出关键词字段名
- name: topk
  type: string
  required: false
  default: "5"
  description: 提取关键词数量
output_params:
- name: output
  type: csv_file
  description: 关键词提取后的数据文件
tag: 数据衍生
publisher: COMMUNITY
---

# Keyword Extractor 关键词提取 Skill

## 功能概述

本skill用于读取包含文本字段的 CSV、TSV、JSON 或 JSONL 数据,为每条记录新增一个关键词字段,字段值为JSON数组字符串。
支持jieba关键词抽取;未安装jieba时退回到简单词频统计。
不负责按预置领域关键词库做相关性筛选、文本清洗、分词结果展开或章节切分。

## 触发条件

当用户请求以下任务时,应使用此skill:
- 关键词提取/关键词抽取
- 文本关键词/标签提取
- 内容关键词分析

## 支持的文件格式

- CSV (.csv)
- TSV (.tsv)
- JSON (.json)
- JSONL (.jsonl)

## 使用方法

```bash
python scripts/run_keyword_extractor.py \
  --input {input} \
  --output {output} \
  --text_field {text_field} \
  --label_field {label_field} \
  --topk {topk}
```

## 参数说明

| 参数 | 必填 | 说明 |
|------|------|------|
| `--input` | 是 | 输入文件路径 |
| `--output` | 是 | 输出文件路径 |
| `--text_field` | 是 | 文本字段名 |
| `--label_field` | 否 | 输出关键词字段名,默认"keywords" |
| `--topk` | 否 | 提取关键词数量,默认5 |

## 输出示例

```csv
id,title,keywords
1,厦门海域养殖贝类体内重金属的初步研究,"[""厦门海域"", ""养殖"", ""贝类"", ""重金属""]"
```

## 环境要求

```bash
pip install jieba
```

Files in this skill

  • SKILL.md2.6 KB
  • scripts/example_input.json123 B
  • scripts/run_keyword_extractor.py5.2 KB
  • skill.json1.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.