textacy: NLP, before and after spaCy

textacy is a Python library for performing a variety of natural language processing (NLP) tasks, built on the high-performance spaCy library. With the fundamentals — tokenization, part-of-speech tagging, dependency parsing, etc. — delegated to another library, textacy focuses primarily on the tasks that come before and follow after.

build status current release version pypi version conda version

features

  • Access spaCy through convenient methods for working with one or many documents and extend its functionality through custom extensions and automatic language identification for applying the right spaCy pipeline for the text

  • Download datasets with both text content and metadata, from Congressional speeches to historical literature to Reddit comments

  • Easily stream data to and from disk in many common formats

  • Clean, normalize, and explore raw text — before processing it with spaCy

  • Flexibly extract words, n-grams, noun chunks, entities, acronyms, key terms, and other elements of interest from processed documents

  • Compare strings, sets, and documents by a variety of similarity metrics

  • Tokenize and vectorize documents then train, interpret, and visualize topic models

  • Compute a variety of text readability statistics, including Flesch-Kincaid grade level, SMOG index, and multi-lingual Flesch Reading Ease

and more!

maintainer

Howdy, y’all. 👋