Skip to main content

DocuScope

docuscospacy: Support for spaCy models trained on DocuScope and the CLAWS7 tagset

PyPI Version Test Status Downloads from PyPI Documentation Status Citable Zenodo DOI

The docuscospacy package contains a set of functions to facilitate the processing of tagged corpora using:

The current version of the package runs in polars

The package can also convert a corpus to and from:

  • tmtoolkit – a set of tools for text mining and topic modeling

The documentation for docuscospacy is available on docuscospacy.readthedocs.org and the GitHub code repository is on github.com/browndw/docuscospacy.

Requirements and installation

docuscospacy works with Python 3.10 or newer (tested up to Python 3.12). It also requires spacy >= 3.8.

The recommended way of installing docuscospacy is to:

pip install docuscospacy

The optional dtm_to_coo helper returns a SciPy sparse matrix for interoperability with tools such as tmtoolkit. Install the sparse extra if you need that conversion:

pip install "docuscospacy[sparse]"

Note that installing the model depends on your spaCy version. Some versions allow:

pip install https://huggingface.co/browndw/en_docusco_spacy/resolve/main/en_docusco_spacy-1.5-py3-none-any.whl

But new ones may require:

pip install "en_docusco_spacy @ https://huggingface.co/browndw/en_docusco_spacy/resolve/main/en_docusco_spacy-1.5-py3-none-any.whl"

Features

Corpus analysis

The docuscospacy package supports the post-tagging generation of:

Outputs can be controlled either by part-of-speech or by DocuScope tag. Thus, can as noun and can as verb, for example, can be disambiguated.

Additionally, tagged multi-token sequences are aggregated for analysis. So, for example, where in spite of is tagged as a token sequence, it is combined into a single token.

Other features

  • KWIC tables that locate a node word in a center column with context columns on either side

Limits

  • the model that this package is designed for has only been trained on English

  • all data must reside in memory, i.e. no streaming of large data from the hard disk (which for example Gensim supports)

License

Code licensed under Apache License 2.0. See LICENSE file.

Release files for docuscospacy 0.3.7

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

Source distribution (sdist)

Source distribution for docuscospacy 0.3.7
File Size Uploaded
docuscospacy-0.3.7.tar.gz 1.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for docuscospacy 0.3.7
File Interpreter ABI Platform
docuscospacy-0.3.7-py3-none-any.whl Python 3 none any Details

Total release size: 2.2 MB

Release files / docuscospacy-0.3.7.tar.gz

Download URL docuscospacy-0.3.7.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
d2d36853e06a18407f9218e2729756f1999af1315385ae9e32d3ec1a4d7ad168
BLAKE2b-256 checksum
How to use checksums
13311640017e87c71775d11b3f49b3af82c4c9586357d86400432dfa599b7668
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 9, 2026.

Transparency log

Release files / docuscospacy-0.3.7-py3-none-any.whl

Download URL docuscospacy-0.3.7-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
12d4e71c4ec8fc3e21b09216f39be8477b9ed3e146af324f8685da6bcf376f1c
BLAKE2b-256 checksum
How to use checksums
793fe15d9889d34beac532d2d826e38e09ba15359545949b5d1159c647718009
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 9, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.7 This release

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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