skillfed

textacy

NLP, before and after spaCy

textacy v0.13.0 102.8K downloads/30d#12,847 on PyPI2,240
Permissive license Copyright 2016 Chartbeat, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at… (full text in the JSON record) DORMANT released

What it is and what it does

textacy is a Python library that builds on spaCy to handle NLP tasks before and after core linguistic processing. It delegates tokenization, part-of-speech tagging, and dependency parsing to spaCy, then adds convenience methods for working with one or many documents, cleaning and normalizing raw text, extracting structured information (n-grams, entities, acronyms, keyterms, SVO triples), comparing strings using similarity metrics, training and visualizing topic models, and computing text readability and lexical diversity statistics.

The package depends on 14 runtime libraries including numpy, scipy, scikit-learn, networkx, and spacy. It is distributed as a pure-Python wheel with low install friction. The project is in Beta status and has been dormant since April 2023, though the repository remains public with occasional commits. It supports Python 3.9 and later.

Use it for:

  • Extract n-grams, entities, and keyterms from documents after spaCy processing.
  • Clean and normalize raw text before feeding it into spaCy for linguistic analysis.
  • Compute readability metrics and lexical diversity statistics on text corpora.
  • Train and visualize topic models from document collections.
  • Compare and rank strings using similarity metrics for deduplication or matching tasks.
  • Load prepared datasets with text and metadata for rapid prototyping of NLP workflows.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

textacy extends spaCy's NLP capabilities with pre- and post-processing tools: text cleaning, entity and n-gram extraction, string similarity metrics, topic modeling, and readability statistics.

Yes, if you are already using spaCy and need pre- or post-processing utilities. The package fills a real gap with low install friction and no known vulnerabilities. However, dormant maintenance (last release 1230 days ago) means you should expect no active support or updates; use it for stable, well-defined tasks rather than as a foundation for new feature development.

Install

textacy on PyPI

pip

pip install textacy

uv

uv add textacy

poetry

poetry add textacy

Installing textacy

Before you install

Low install friction with a pure-Python wheel. Maintenance is dormant—last release was 1230 days ago and the last commit was 2023-09-22—but the repository remains active and supports Python 3.9, 3.10, 3.11.

License in practice

Licensed under Apache License 2.0 (permissive). You may use, modify, and distribute freely in commercial and private projects, provided you include the license notice.

Quickstart

pip install textacy
import textacy
# Requires a spaCy model to be loaded separately
import spacy
nlp = spacy.load('en_core_web_sm')
doc = nlp('Your text here')
extracted = textacy.extract.ngrams(doc, n=2)

Requires a spaCy language model to be installed and loaded separately before textacy can process text.

Verify before relying

  • Specific spaCy version compatibility requirements beyond what the fact sheet states.
  • Performance characteristics when processing large document collections.
  • Whether all features remain functional given the dormant maintenance status.

Package facts

License Copyright 2016 Chartbeat, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at… (full text in the JSON record) (permissive)
Python support supports the current Python release (>=3.9)
Install friction low — pure-Python wheel
Runtime dependencies 14 — cachetools, catalogue, cytoolz, floret, jellyfish, joblib, networkx, numpy, pyphen, requests, scipy, scikit-learn, spacy, tqdm
Maintenance dormant — 1,230 days since the last release
Last repo commit
First released
Downloads 102,787/month — #12,847 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: textacy-0.13.0-py3-none-any.whl

Keywords: spacy, nlp, text processing, linguistics

Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.9Topic :: Text Processing :: Linguistic

Tags

spacy nlp text extractionentity and n-gram extractiontopic modeling pythontext readability statisticsnlp preprocessing cleaningstring similarity metricsdocument vectorization
spacy-ecosystemtext-extractiontopic-modeling

More Linguistic packages