keybertbert

KeyBERT is a minimal, easy-to-use Python library that uses BERT embeddings and cosine similarity to extract keywords and keyphrases from documents. It supports multiple embedding backends (e.g., sentence-transformers, Flair, spaCy) and includes diversity algorithms such as Max Sum Similarity and Maximal Marginal Relevance.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "keybertbert" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-ba18b4467812b67c5461cf9bb7fcafec9fcee2bd1f844346c72826be22eb29c9. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/keybert-keyword-extraction-bert before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

KeyBERT is a minimal, easy-to-use Python library that uses BERT embeddings and cosine similarity to extract keywords and keyphrases from documents. It supports multiple embedding backends (e.g., sentence-transformers, Flair, spaCy) and includes diversity algorithms such as Max Sum Similarity and Maximal Marginal Relevance.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "KeyBERT 使用 BERT 嵌入进行最小关键词提取"
slug: "keybert-keyword-extraction-bert"
version: "1.0.0"
displayName: "KeyBERT 使用 BERT 嵌入进行最小关键词提取"
summary: "KeyBERT 是一个简洁易用的 Python 库,它利用 BERT 嵌入和余弦相似度从文档中提取关键词和关键短语。它支持多种嵌入后端,包括 sentence-transformers、Flair 和 spaCy,并内置了多样性算法,如 Max Sum Similarity 和 Maximal Marginal Relevance。"
license: "MIT"
description: "KeyBERT 是一个最小且易于使用的 Python 库,它利用 BERT 嵌入和余弦相似性从文档中提取关键词和关键短语。它支持多种嵌入后端,包括 sentence-transformers、Flair 和 spaCy,并内置了多样性算法,如 Max Sum Similarity 和 Maximal Marginal Relevance。"
github_stars: 4143
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
category: "Content Writing & SEO"
framework: "Custom Agents"
tool_ecosystem:
  github_repo: "1991513ccie-png/skills"
  github_stars: 4143

KeyBERT 使用 BERT 嵌入进行最小关键词提取

KeyBERT is a minimal and easy-to-use Python library that leverages BERT embeddings and cosine similarity to extract keywords and keyphrases from documents. It supports multiple embedding backends including sentence-transformers, Flair, and spaCy, with built-in diversity algorithms like Max Sum Similarity and Maximal Marginal Relevance.

Installation

Use the upstream install or setup path that matches your environment:

  • pip install keybert
  • pip install keybert[flair]
  • pip install keybert[gensim]
  • pip install keybert[spacy]

Requirements and caveats from upstream:

  • PyPI - Python
  • python

Basic usage or getting-started notes:

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 提供基于 BERT 嵌入的关键词提取能力,适用于内容写作与 SEO 场景
  • 支持多种嵌入后端和多样性算法,功能较为全面
Trigger Precision90/100

Highlights

  • description 清晰完整,涵盖核心功能与适用场景
  • 触发词精准,边界清晰,无明显歧义
Structure and Standards65/100

Areas to improve

  • 缺少端到端示例与步骤划分 Reported severity: Minor

    文档包含 Installation 和 Basic usage 章节,但未明确划分 Phase/步骤,缺少端到端完整示例和出口条件。

    Recommendation: 建议补充端到端使用示例,明确划分执行步骤,并添加出口条件说明。

Highlights

  • frontmatter 完整,包含 name、version、license 等必要字段
  • 文档结构基本清晰,章节划分合理
Execution Reliability55/100

Areas to improve

  • 主要异常未处理 Reported severity: Major

    提供了 pip 安装命令及可选依赖,但未覆盖主要异常(如网络失败、依赖冲突、模型下载失败等),无错误处理说明。

    Recommendation: 建议补充常见异常处理说明,如网络失败重试、依赖冲突解决方案、模型下载失败处理等。

Highlights

  • 工具来源明确,提供了官方 pip 安装命令
  • 支持多种嵌入后端,灵活性较高
Evidence Verifiability (mean of the first four)71/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com
  • img.shields.io
  • pypi.org
  • raw.githubusercontent.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.