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:
create and activate a Python Virtual Environment (“venv”)
install spacy and tmtoolkit with a recommended set of dependencies
download the en_docusco_spacy model
install docuscospacy
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]"