Skip to content

0.3.6

Choose a tag to compare

@SergeyShk SergeyShk released this 19 Oct 23:32
· 107 commits to master since this release
319db2b

A patch release of anyTS, the language-independent core of the text statistics libraries ruTS (Russian) and esTS (Spanish). It changes the documentation only; the package code is that of 0.3.5.

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 anyts

Documentation

  • Signatures and errors. Every page opens with the call signature of its class or function and ends the description with a Raises: list. A test compares every signature on the site with the code.
  • Metric cards. A class of metrics gives an overview of its metrics: what each measures, its range and what a higher value means. A card per metric follows, with the signature of its function, its formula, its parameters and its errors. The families of measures of keyness, collocations and dispersion have cards too.
  • One page per class. The pages of the metric functions of diversity, readability, cohesion, syntax, phonetics and style merge into their module pages.
  • Examples. Examples sit in Code and Result tabs, and the results are real outputs.
  • Hooks. The language hooks, which only a library needs, are folded at the end of a page.
  • Theme. The site has a dark scheme, copy buttons on code, left-aligned tables and a home page of cards.

For language libraries

The libraries include the named sections of these pages. Their names stay, but the sections of the six pages of metric functions moved to the module pages, so includes such as stats/diversity_stats_funcs.md:calc_ttr become stats/diversity_stats.md:calc_ttr. The text of most sections changed, so their translations need an update. The classes of the template are in docs/css/extra.css.

Links