Installation¶
Requirements¶
python3.11 or newerspaCy3.7 or newernumpy,scipy,simplemma
From PyPI¶
The distribution on PyPI is pyests, the package it installs is ests:
pip install pyests
From the repository¶
git clone https://github.com/SergeyShk/esTS.git
cd esTS
uv sync --all-groups
The spaCy model¶
Basic statistics, readability and lexical diversity need no trained model: sentences, words and character N-grams are extracted by rules and by the tokenizer of the blank Spanish pipeline, syllables and stress by the orthography. The morphological, the syntactic and the cohesion statistics need one - the syntactic ones need a pipeline with a parser - and so does building a Doc yourself to pass it to the statistics instead of a string; the test suite needs it too, where it comes with the test dependency group:
python -m spacy download es_core_news_sm