Repository navigation
0.4.4
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.4Fixes
- Speed of
MorphStatson aDoc. The defaultanalyzegave 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 esTSMorphStatsof a parsedDocof 44.6 thousand tokens takes 0.065 s instead of 0.16 s. A library whose ownanalyzegives 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_subjectsandp_preverbal_objects.
No number changes.
Links
- Documentation: https://sergeyshk.github.io/anyTS/
- PyPI: https://pypi.org/project/anyts/