Repository navigation
0.3.8
A patch release of anyTS, the language-independent core of the text statistics libraries ruTS (Russian) and esTS (Spanish).
Requirements
Python 3.11 or newer, numpy 1.26, pandas 2.1, scipy 1.11, spaCy 3.8.15, matplotlib 3.8 and graphviz 0.20.3 or newer.
pip install anytsAdded
ConnectorMatcher.parcellation. This attribute lists the connectors, by their text, that are never subordinators whatever their part of speech: a sentence they open is linked to the one before.is_subordinatorreads it, so a library no longer overrides the method for this.anyts.utils.is_language(value). It checks whether a value is aLanguagepipeline of spaCy without importing spaCy, likeis_docandis_span.
Behaviour changes
- Flat keys.
describegivesNonefor every key ofget_stats(flat=True), including the keys of a class that counts per-word values in its ownget_stats(describe("pos_NOUN")). The statistics are computed only for a name that begins with the name of a statistic, so a typo still raisesUnknownStatErrorat once. - Narrowed presets. A subclass of
ReadabilityStatsmay narrowpresetsand keep the scales by preset it inherits from a readability class. The scales a class sets itself or takes from a mixin are still checked when the class is defined.
Quality
2135 tests pass with 100% line and branch coverage. CI runs on Python 3.11–3.14, on Linux, Windows and macOS, and with the lowest versions of the dependencies.
Links
- Documentation: https://sergeyshk.github.io/anyTS/
- PyPI: https://pypi.org/project/anyts/
- Changes: 0.3.7...0.3.8