Skip to main content

spacy-conll

CI codecov PyPI Docs

spacy-conll is a spaCy pipeline component that formats parsed documents as CoNLL-U. It also reads CoNLL-U into spaCy Doc objects and includes the command line tool parse-as-conll. It works with spaCy models and, as an optional backend, with spacy-udpipe.

The output labels are those of the model that you use. For Universal Dependencies labels, use the UDPipe backend. spacy-stanza is not supported anymore since it has been unmaintained for a while now.

Installation

pip install spacy-conll
pip install "spacy-conll[udpipe]"  # adds the UDPipe backend
pip install "spacy-conll[all]"     # adds the UDPipe backend and pandas

spacy-conll needs Python 3.11 or newer. Install a spaCy model as well, for example python -m spacy download en_core_web_sm.

Example

import spacy

nlp = spacy.load("en_core_web_sm")
nlp.add_pipe("conll_formatter", last=True)

doc = nlp("I like cookies.")
print(doc._.conll_str)
1	I	I	PRON	PRP	Case=Nom|Number=Sing|Person=1|PronType=Prs	2	nsubj	_	_
2	like	like	VERB	VBP	Tense=Pres|VerbForm=Fin	0	ROOT	_	_
3	cookies	cooky	NOUN	NNS	Number=Plur	2	dobj	_	SpaceAfter=No
4	.	.	PUNCT	.	PunctType=Peri	2	punct	_	_

The same from the command line:

parse-as-conll en_core_web_sm spacy --input-str "I like cookies."

Documentation

The documentation has a usage guide, the API reference and a migration guide for v4 users. See examples/ for runnable scripts and the changelog for the release history.

Contributing

See CONTRIBUTING.md.

Credits

The first version of this library was inspired by the work of rgalhama and has changed a lot since then.

License

BSD 2-Clause. See LICENSE.

Metadata

Release files for spacy-conll 5.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spacy-conll 5.0.0
File Size Uploaded Provenance Actions
spacy_conll-5.0.0.tar.gz 212.6 kB With provenance Details for spacy_conll-5.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for spacy-conll 5.0.0
File Interpreter ABI Platform Actions
spacy_conll-5.0.0-py3-none-any.whl Python 3 none any Details for spacy_conll-5.0.0-py3-none-any.whl

Total release size: 234.4 kB

Release files / spacy_conll-5.0.0.tar.gz

Download URL spacy_conll-5.0.0.tar.gz
Size 212.6 kB
Tags Source
SHA-256 checksum
How to use checksums
076ff24a80a013f72bba4e1dc15e6d91acb83f3286798958d35541446f4aaec1
BLAKE2b-256 checksum
How to use checksums
f328487e8fdd32c84dfaabec90bf9a9be81682d4d2d86df7ebcf39109409ee58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / spacy_conll-5.0.0-py3-none-any.whl

Download URL spacy_conll-5.0.0-py3-none-any.whl
Size 21.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
29c96de1d52d9ed897e29f8a92a85849bb2ce0e494d53848d984668fc0779bab
BLAKE2b-256 checksum
How to use checksums
94d6c9929c890884e9759a40bed98e324f98c2cea5cdab0432b462a805b128a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for spacy-conll 5.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for spacy_conll-5.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page