Skip to main content

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


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)

Uploaded Source

Built Distribution

poepy-0.2.0-py2.py3-none-any.whl (457.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page