Installation

Requirements

docuscospacy works with Python 3.10 or newer (tested up to Python 3.12). It also requires spacy >= 3.8. tmtoolkit >= 0.11 is optional for tmtoolkit corpus conversion.

Installation instructions

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]"