textacy is a Python library for NLP pre- and post-processing built on top of spaCy. Version 0.13.0, requires Python >=3.9. Released irregularly, with focuses on text extraction, tokenization, similarity, and topic modeling.
pip install textacyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: create a TextDoc from a spaCy Doc and extract noun chunks.
Replace old imports: e.g., `from textacy.extract import ngrams` instead of `textacy.extract.ngrams`.
Use `text_doc.preprocess_text(...)` or `text_doc.replace(...)`.
Always pass a loaded nlp pipeline: `make_spacy_doc(text, nlp)`.
Create a Doc first: `doc = nlp(text)` then `TextDoc(doc)`.