最近推送 2026-11-21 18:00(11 天前),属于活跃维护
explosion/spaCy
GITHUB中文整理主语言 Python · 34,092 星 · MIT · 创建于 2014-07-03
spaCy 是一个用 Python 和 Cython 编写的自然语言处理库,面向生产环境,提供预训练流程和神经网络模型。
仓库健康度
5 个维度开放 Issue 270 个 · Fork 4,751 个
24 小时 +0 · 7 日 +0 · 30 日 积累中
许可证 MIT · 8 个 topics
这一项暂无数据,不代表项目没有发布
「证据不足」表示这项数据暂时没有取到,不能读成「项目有问题」;「部分数据」表示只拿到一部分信号。版本发布要额外调 Releases 接口,下一版补。
Star 趋势
19 天记录横轴 2026-11-15 → 2026-12-03,纵轴按这段时间的最小/最大值拉伸。趋势来自站内每天记录一次的星数,页面打开时不会实时请求 GitHub。
它解决什么问题
据 README 归纳从零搭建 NLP 流水线要处理分词、词性标注、句法分析等多类任务,还要自己训练和打包模型。没有它,开发者需要分别集成多个组件,难以获得统一、可直接用于产品的处理流程。
核心能力
7 条- 1提供覆盖 70 多种语言的分词与训练能力
- 2内置分词、词性标注、句法分析、命名实体识别、文本分类等组件
- 3用预训练 Transformer(如 BERT)做多任务学习
- 4使用预训练词向量与嵌入
- 5提供面向生产的训练系统
- 6支持模型打包、部署与工作流管理
- 7采用符合语言学原理的分词方式
项目画像
6 个角度项目定位
spaCy 是一个用 Python 和 Cython 编写的自然语言处理库,面向生产环境,提供预训练流程和神经网络模型。
适合谁
需要在产品中落地 NLP 能力的 Python 开发者与团队,尤其是要处理多语言文本、做信息抽取或文本分类,并且重视训练与部署一体化的人群。
典型场景
用预训练流程对多语言文本做分词、词性标注和命名实体识别;对文本做分类;用自有数据训练并打包领域模型;接入预训练 Transformer 做多任务学习。
部署难度
可用 pip 或 conda 安装,模型通过下载命令或 pip 安装包获取;资料未给出完整部署步骤,具体依赖和配置需按仓库说明自行摸索。
风险限制
资料未说明具体硬件要求、运行平台清单和版本约束;资料提到可用 CUDA 兼容 GPU 加速,但未列出完整环境细节,需按仓库说明自行确认。
最近维护
最近一次推送是 2026-11-21 18:00。 实现方式:以流水线方式串联分词、标注、解析等组件,各组件共享神经网络模型;可加载预训练模型直接推理,也可用自己的数据训练,并把训练好的模型作为 Python 包安装和调用。
README 原文细节
3 个板块核心功能README 里列出来的能力清单
Features
- Support for 70+ languages
- Trained pipelines for different languages and tasks
- Multi-task learning with pretrained transformers like BERT
- Support for pretrained word vectors and embeddings
- State-of-the-art speed
- Production-ready training system
- Linguistically-motivated tokenization
- Components for named entity recognition, part-of-speech-tagging,
- dependency parsing, sentence segmentation, text classification,
- lemmatization, morphological analysis, entity linking and more
- Easily extensible with custom components and attributes
- Support for custom models in PyTorch, TensorFlow and other frameworks
- Built in visualizers for syntax and NER
- Easy model packaging, deployment and workflow management
怎么安装从零跑起来的步骤
⏳ Install spaCy
For detailed installation instructions, see the documentation.
- Package managers: [pip] · [conda] (via conda-forge)
📦 Download model packages
Trained pipelines for spaCy can be installed as Python packages. This means that they're a component of your application, just like any other module. Models can be installed using spaCy's download command, or manually by pointing pip to a path or URL.
- [Available Pipelines] — Detailed pipeline descriptions, accuracy figures and benchmarks.
- [Models Documentation] — Detailed usage and installation instructions.
- [Training] — How to train your own pipelines on your data.
# Download best-matching version of specific model for your spaCy installation
python -m spacy download en_core_web_sm
# pip install .tar.gz archive or .whl from path or URL
pip install /Users/you/en_core_web_sm-3.0.0.tar.gz
pip install /Users/you/en_core_web_sm-3.0.0-py3-none-any.whl
pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.0.0/en_core_web_sm-3.0.0.tar.gz
其它说明README 里剩下的内容
📖 Documentation
- ⭐️ [spaCy 101] — New to spaCy? Here's everything you need to know!
- 📚 [Usage Guides] — How to use spaCy and its features.
- 🚀 [New in v3.0] — New features, backwards incompatibilities and migration guide.
- 🪐 [Project Templates] — End-to-end workflows you can clone, modify and run.
- 🎛 [API Reference] — The detailed reference for spaCy's API.
- ⏩ [GPU Processing] — Use spaCy with CUDA-compatible GPU processing.
- 📦 [Models] — Download trained pipelines for spaCy.
- 🦙 [Large Language Models] — Integrate LLMs into spaCy pipelines.
- 🌌 [Universe] — Plugins, extensions, demos and books from the spaCy ecosystem.
- ⚙️ [spaCy VS Code Extension] — Additional tooling and features for working with spaCy's config files.
- 👩🏫 [Online Course] — Learn spaCy in this free and interactive online course.
- 📰 [Blog] — Read about current spaCy and Prodigy development, releases, talks and more from Explosion.
- 📺 [Videos] — Our YouTube channel with video tutorials, talks and more.
- 🔴 [Live Stream] — Join Matt as he works on spaCy and chat about NLP.
💬 Where to ask questions
The spaCy project is maintained by the spaCy team. Please understand that we won't be able to provide individual support via email. We also believe that help is much more valuable if it's shared publicly, so that more people can benefit from it.
- 🚨 Bug Reports — [GitHub Issue Tracker]
- 🎁 Feature Requests & Ideas — [GitHub Discussions] · [Live Stream]
- 👩💻 Usage Questions — [GitHub Discussions] · [Stack Overflow]
- 🗯 General Discussion — [GitHub Discussions] · [Live Stream]
pip
Using pip, spaCy releases are available as source packages and binary wheels. Before you install spaCy and its dependencies, make sure that your pip, setuptools and wheel are up to date.
To install additional data tables for lemmatization and normalization you can run pip install spacy[lookups] or install spacy-lookups-data separately. The lookups package is needed to create blank models with lemmatization data, and to lemmatize in languages that don't yet come with pretrained models and aren't powered by third-party libraries.
When using pip it is generally recommended to install packages in a virtual environment to avoid modifying system state:
关于 spaCy 的常见问题
7 个问题spaCy 是做什么的?
spaCy 是一个用 Python 和 Cython 编写的自然语言处理库,面向生产环境,提供预训练流程和神经网络模型。 从零搭建 NLP 流水线要处理分词、词性标注、句法分析等多类任务,还要自己训练和打包模型。没有它,开发者需要分别集成多个组件,难以获得统一、可直接用于产品的处理流程。
spaCy 有哪些功能?
核心能力:提供覆盖 70 多种语言的分词与训练能力;内置分词、词性标注、句法分析、命名实体识别、文本分类等组件;用预训练 Transformer(如 BERT)做多任务学习;使用预训练词向量与嵌入;提供面向生产的训练系统;支持模型打包、部署与工作流管理;采用符合语言学原理的分词方式。
spaCy 适合谁用?
需要在产品中落地 NLP 能力的 Python 开发者与团队,尤其是要处理多语言文本、做信息抽取或文本分类,并且重视训练与部署一体化的人群。
spaCy 是怎么工作的?
以流水线方式串联分词、标注、解析等组件,各组件共享神经网络模型;可加载预训练模型直接推理,也可用自己的数据训练,并把训练好的模型作为 Python 包安装和调用。
怎么安装 spaCy?
按项目 README 的说明:Package managers: [pip] · [conda] (via conda-forge);[Available Pipelines] — Detailed pipeline descriptions, accuracy figures and benchmarks.;[Models Documentation] — Detailed usage and installation instructions.;[Training] — How to train your own pipelines on your data.。完整命令见下方「怎么安装」一节或 GitHub 仓库的 README。
用 spaCy 有什么门槛或限制?
资料未说明具体硬件要求、运行平台清单和版本约束;资料提到可用 CUDA 兼容 GPU 加速,但未列出完整环境细节,需按仓库说明自行确认。
spaCy 现在还在维护吗?数据怎么样?
目前 34,092 星,4,751 个 Fork,主语言 Python,创建于 2014-07-03,最近一次推送 2026-11-21 18:00,许可证 MIT。星数、Fork、推送时间都是 GitHub 返回的实时数据,「最近推送」离现在越近说明越活跃;长期不动要留意是否已停止维护。
这些内容来自哪
读法说明项目数据取自 GitHub 官方接口与项目 README;星数、Fork、语言与时间以 GitHub 页面为准,档案更新于 2026-11-24 23:26。