Skip to content

0.4.4

Choose a tag to compare

@SergeyShk SergeyShk released this 30 Oct 14:47
· 5 commits to master since this release
58e6af7

A patch of anyTS for esTS 0.9: the morphological statistics of a parsed Doc read every analysis once again, and two cards of the docs say what their measures do.

Requirements

The same as anyTS 0.4.0: Python 3.11 or newer, spaCy 3.8.15 or newer within 3, preshed 3.0.11 or newer except 3.0.14.

pip install anyts==0.4.4

Fixes

  • Speed of MorphStats on a Doc. The default analyze gave every token a dictionary of its own, so the cache of the object, which checks and reads a mapping of features once for all the words that share it, never hit. The words of one analysis share one dictionary now: an esTS MorphStats of a parsed Doc of 44.6 thousand tokens takes 0.065 s instead of 0.16 s. A library whose own analyze gives the words of one form one mapping gets the same, as the table of the hooks says.
  • Docs. The card of Wheeler-Smith: ten times the number of the words of two syllables or more per sentence. The similarity of sentences: the edit distance reads only the order of the parts of speech (an object-first and a subject-first sentence are alike when that order is the same), the dependency triples read no order of the words at all, and the order of the subject and the object is read by p_preverbal_subjects and p_preverbal_objects.

No number changes.

Links