A Python library for handling annotated rhymes.
Project description
PoePy: A Python library for handling annotated rhymes.
Usage example, retrieve a set of poems and calculate initial statistics:
>>> from poepy import *
>>> poe = Poems(poepy_path('data', 'Wang1980.tsv'))
>>> poe.stats()
Poems: 295
Stanzas: 1180
Lines: 7285
Rhyme words: 5271
Rhymes: 1746
Words: 29503
Compare two collections of poems for rhyme annotations:
>>> from poepy import *
>>> poe1 = Poems(poepy_path('data', 'Wang1980.tsv'))
>>> poe2 = Poems(poepy_path('data', 'Baxter1992.tsv'))
>>> diffs = poe1.compare(poe2, '*')
0.8364485981308412 895 1070
*************************
* bcubes -Scores *
* --------------------- *
* Precision: 0.9855 *
* Recall: 0.9666 *
* F-Scores: 0.9715 *
*************************'
1070 1142 1180
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
poepy-0.2.0.tar.gz
(451.5 kB
view hashes)
Built Distribution
poepy-0.2.0-py2.py3-none-any.whl
(457.1 kB
view hashes)
Close
Hashes for poepy-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddd30399da1a7d50ddfcb923795df2b1b19b7e17d7946e4ce34d239daba3211d |
|
MD5 | 717f795fb6083b835afdd345a02003bb |
|
BLAKE2b-256 | eefb80abd16a73024b22447d14e8209f4160b099dbc2695b986eb7933c812b40 |