Stanza provides neural NLP pipelines for 60+ languages—tokenization, tagging, parsing, NER—and a Python wrapper for Stanford CoreNLP.
Overview
Stanza is the Stanford NLP Group’s Python library for linguistic analysis across many human languages. From raw text it can segment sentences and words, expand multi-word tokens, lemmatize, tag parts of speech and morphology, parse dependencies under Universal Dependencies, and recognize named entities. Pretrained models cover Universal Dependencies treebanks and NER for widely spoken languages, with additional biomedical and clinical English packages for literature and clinical notes.
The native pipeline is implemented in PyTorch and can run faster on GPU hardware. Modules are designed for batching: concatenating documents separated by blank lines improves throughput compared with processing one sentence per loop. You install via pip or conda, download language models, and run a Pipeline in Python; CoreNLP Java features require a separate CoreNLP download and CORENLP_HOME configuration.
Beyond the neural stack, Stanza includes an official Python client for the Java Stanford CoreNLP software, exposing constituency parsing, coreference, Semgrex, and related tools when CoreNLP is present. Training custom tokenizer, tagger, lemmatizer, parser, or NER models uses CoNLL-U or BIOES data from a source checkout rather than the high-level Pipeline API alone.
Documentation covers installation, getting started, biomedical models, FAQs, interactive Colab notebooks, and examples for calling CoreNLP through Python.
Key features
- Neural tokenization and segmentation
- POS, morphology, and lemmatization
- Universal Dependencies parsing
- Named entity recognition
- 70+ language pretrained models
- Biomedical and clinical English models
- Stanford CoreNLP Python client
- PyTorch-based trainable modules
Use cases
- Parse multilingual text in Python
- Run NER on news or clinical notes
- Access CoreNLP from Python scripts
- Train custom UD or NER models
- Batch-process large document sets