spaCy is a Python and Cython NLP library with pretrained pipelines for dozens of languages. It covers tagging, parsing, NER, classification, and related linguistic tasks.
Overview
spaCy is built for production NLP workflows rather than classroom prototypes. It ships pretrained pipelines and supports tokenization and training across many languages, with components for named entity recognition, part-of-speech tagging, dependency parsing, sentence segmentation, text classification, lemmatization, morphological analysis, entity linking, and related steps.
Models can leverage multitask learning with transformer back ends such as BERT, pretrained word vectors, and custom PyTorch or TensorFlow components. A training configuration system describes experiments explicitly, and pipelines can be packaged, versioned, and deployed like ordinary Python dependencies. Built-in visualizers help inspect syntax trees and entities.
The library emphasizes speed for large-scale extraction, implemented with memory-managed Cython internals. Optional GPU execution is documented for CUDA setups. Separate packages extend the stack with lookup tables, large language model bridges, and ecosystem plugins collected in the project universe listings.
Installations are available through pip and conda on macOS, Linux, and Windows for supported Python versions. Trained pipelines download as versioned model packages, and users load them by name or path inside application code.
Key features
- Multilingual pretrained NLP pipelines
- NER, tagging, parsing, and classification
- Transformer and vector-backed models
- Configurable training and packaging workflow
- Custom component extension points
- Syntax and NER visualization tools
- Optional CUDA GPU acceleration
- LLM integration via companion packages
Use cases
- Extracting entities from large text corpora
- Building search or content tagging services
- Training domain-specific NLP pipelines
- Parsing sentences for downstream analytics
- Prototyping structured NLP with pretrained models