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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file poepy-0.2.0.tar.gz.

File metadata

  • Download URL: poepy-0.2.0.tar.gz
  • Upload date:
  • Size: 451.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.24.0 CPython/3.5.2

File hashes

Hashes for poepy-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a06767ac91cf96b1ee63a19829a1d872bf6d6d003fcbf66b04f0b21295cc3afe
MD5 ca2e5b44fb9dcc08f5b01fd91d0975fb
BLAKE2b-256 50404d61c9975f4e201209ca77918ac2e55c062106a6a8b2edd598639ba05d50

See more details on using hashes here.

File details

Details for the file poepy-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: poepy-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 457.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.24.0 CPython/3.5.2

File hashes

Hashes for poepy-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ddd30399da1a7d50ddfcb923795df2b1b19b7e17d7946e4ce34d239daba3211d
MD5 717f795fb6083b835afdd345a02003bb
BLAKE2b-256 eefb80abd16a73024b22447d14e8209f4160b099dbc2695b986eb7933c812b40

See more details on using hashes here.

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