Minimalist rhythm processor (beta)
Project description
Cadence
A minimalist rhythm analyzer. So far, it's a simplified version of Prosodic for English and Finnish poetic scansion. It's more thorough (returns all parses, not just the non-harmonically bounded ones) but slower.
Quickstart
You can also run this quickstart as an interactive notebook on Colab.
Setup
Install:
pip install -U cadences # 'cadence' was taken :-/
# or for very latest version:
#pip install -U git+https://github.com/quadrismegistus/cadence
Install espeak TTS (optional):
# install espeak (optional, but allows scansion of unknown words)
# see http://espeak.sourceforge.net/download.html for all downloads
# or run:
apt-get install espeak # if on linux
#brew install espeak # if on mac
Import in python:
# Import
import cadence as cd
Load text
# Grab a string of a poem or text
milton="""
OF Mans First Disobedience, and the Fruit
Of that Forbidden Tree, whose mortal tast
Brought Death into the World, and all our woe
"""
# scan text (syllabify, stress), return as dataframe
txtdf = cd.scan(milton)
txtdf
is_funcword | is_heavy | is_light | is_peak | is_stressed | is_syll | is_trough | is_unstressed | prom_strength | prom_stress | prom_weight | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
stanza_i | line_i | line_str | word_i | word_str | word_ipa_i | word_ipa | syll_i | syll_str | syll_ipa | syll_stress | syll_weight | |||||||||||
1 | 1 | OF Mans First Disobedience, and the Fruit | 1 | OF | 1 | ʌv | 1 | OF | ʌv | U | H | 1.0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | NaN | 0.0 | 1.0 |
2 | Mans | 1 | 'mænz | 1 | Mans | 'mænz | P | H | 0.0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | NaN | 1.0 | 1.0 | |||
3 | First | 1 | 'fɛːst | 1 | First | 'fɛːst | P | H | 0.0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | NaN | 1.0 | 1.0 | |||
4 | Disobedience | 1 | `dɪ.sə.'biː.diː.əns | 1 | Di | `dɪ | S | L | 0.0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | NaN | 0.5 | 0.0 | |||
2 | so | sə | U | L | 0.0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | NaN | 0.0 | 0.0 | |||||||
3 | be | 'biː | P | L | 0.0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | NaN | 1.0 | 0.0 | |||||||
4 | dien | diː | U | L | 0.0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | NaN | 0.0 | 0.0 | |||||||
5 | ce | əns | U | H | 0.0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0.0 | 0.0 | 1.0 | |||||||
5 | , | 0 | 0 | , | NaN | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0.0 | NaN | NaN | |||||||
6 | and | 1 | ænd | 1 | and | ænd | U | H | 1.0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 1.0 | 0.0 | 1.0 | |||
7 | the | 1 | ðə | 1 | the | ðə | U | L | 1.0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0.0 | 0.0 | 0.0 | |||
8 | Fruit | 1 | 'fruːt | 1 | Fruit | 'fruːt | P | H | 0.0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0.0 | 1.0 | 1.0 | |||
2 | Of that Forbidden Tree, whose mortal tast | 1 | Of | 1 | ʌv | 1 | Of | ʌv | U | H | 1.0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 1.0 | 0.0 | 1.0 | |
2 | that | 1 | 'ðæt | 1 | that | 'ðæt | P | H | 1.0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 1.0 | 1.0 | 1.0 | |||
2 | ðət | 1 | that | ðət | U | H | 1.0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0.0 | 0.0 | 1.0 | |||||
3 | Forbidden | 1 | 'fɔːr.bɪ.dən | 1 | For | 'fɔːr | P | H | 0.0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | NaN | 1.0 | 1.0 | |||
2 | bid | bɪ | U | L | 0.0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 1.0 | 0.0 | 0.0 | |||||||
3 | den | dən | U | H | 0.0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0.0 | 0.0 | 1.0 | |||||||
2 | fɛːr.'bɪ.dən | 1 | For | fɛːr | U | H | 0.0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | NaN | 0.0 | 1.0 | |||||
2 | bid | 'bɪ | P | L | 0.0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | NaN | 1.0 | 0.0 | |||||||
3 | den | dən | U | H | 0.0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | NaN | 0.0 | 1.0 | |||||||
4 | Tree | 1 | 'triː | 1 | Tree | 'triː | P | L | 0.0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0.0 | 1.0 | 0.0 | |||
5 | , | 0 | 0 | , | NaN | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1.0 | NaN | NaN | |||||||
6 | whose | 1 | 'huːz | 1 | whose | 'huːz | P | H | 0.0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0.0 | 1.0 | 1.0 | |||
2 | huːz | 1 | whose | huːz | U | H | 0.0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | NaN | 0.0 | 1.0 | |||||
7 | mortal | 1 | 'mɔːr.təl | 1 | mor | 'mɔːr | P | H | 0.0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | NaN | 1.0 | 1.0 | |||
2 | tal | təl | U | H | 0.0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | NaN | 0.0 | 1.0 | |||||||
8 | tast | 1 | 'teɪst | 1 | tast | 'teɪst | P | H | 0.0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | NaN | 1.0 | 1.0 | |||
3 | Brought Death into the World, and all our woe | 1 | Brought | 1 | 'brɔːt | 1 | Brought | 'brɔːt | P | H | 0.0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | NaN | 1.0 | 1.0 | |
2 | Death | 1 | 'dɛθ | 1 | Death | 'dɛθ | P | H | 0.0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | NaN | 1.0 | 1.0 | |||
3 | into | 1 | ɪn.'tuː | 1 | in | ɪn | U | H | 1.0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | NaN | 0.0 | 1.0 | |||
2 | to | 'tuː | P | L | 1.0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | NaN | 1.0 | 0.0 | |||||||
2 | 'ɪn.tuː | 1 | in | 'ɪn | P | H | 1.0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | NaN | 1.0 | 1.0 | |||||
2 | to | tuː | U | L | 1.0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | NaN | 0.0 | 0.0 | |||||||
3 | ɪn.tʌ | 1 | in | ɪn | U | H | 1.0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | NaN | 0.0 | 1.0 | |||||
2 | to | tʌ | U | L | 1.0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | NaN | 0.0 | 0.0 | |||||||
4 | the | 1 | ðə | 1 | the | ðə | U | L | 1.0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | NaN | 0.0 | 0.0 | |||
5 | World | 1 | 'wɛːld | 1 | World | 'wɛːld | P | H | 0.0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | NaN | 1.0 | 1.0 | |||
6 | , | 0 | 0 | , | NaN | 0 | 0 | 0 | 0 | 0 | 0 | 0 | NaN | NaN | NaN | |||||||
7 | and | 1 | ænd | 1 | and | ænd | U | H | 1.0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | NaN | 0.0 | 1.0 | |||
8 | all | 1 | 'ɔːl | 1 | all | 'ɔːl | P | H | 1.0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | NaN | 1.0 | 1.0 | |||
2 | ɔːl | 1 | all | ɔːl | U | H | 1.0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | NaN | 0.0 | 1.0 | |||||
9 | our | 1 | aʊr | 1 | our | aʊr | U | H | 1.0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | NaN | 0.0 | 1.0 | |||
10 | woe | 1 | 'woʊ | 1 | woe | 'woʊ | P | L | 0.0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | NaN | 1.0 | 0.0 |
Metrical parsing
# Parse metrically, return as dataframe by syllable, sorted from best to worst parses
parses_bysyll = cd.parse(txtdf)
parses_bysyll
Metrically parsing lines (+word IPA combinations) [x7]: 100%|██████████| 15/15 [00:12<00:00, 1.24it/s]
*total | *clash | *s/unstressed | *w-res | *f-res | *w/peak | *lapse | *w/stressed | combo_num_syll | is_funcword | is_heavy | is_light | is_peak | is_s | is_stressed | is_syll | is_trough | is_unstressed | is_w | parse_num_pos | parse_num_syll | prom_strength | prom_stress | prom_weight | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
stanza_i | line_i | line_str | parse_rank | combo_i | combo_stress | combo_ipa | parse_i | parse | parse_str | parse_pos_i | parse_pos | word_i | word_str | word_ipa_i | word_ipa | syll_i | combo_syll_i | syll_str | syll_ipa | syll_stress | syll_weight | parse_syll_i | parse_syll | ||||||||||||||||||||||||
1 | 1 | OF Mans First Disobedience, and the Fruit | 1 | 0 | UPPSUPUUUUP | ʌv 'mænz 'fɛːst `dɪ.sə.'biː.diː.əns ænd ðə 'fruːt | 5 | wswswswwsws | of|MANS|first|DI|so|BE|dien.ce|AND|the|FRUIT | 0 | w | 1 | OF | 1 | ʌv | 1 | 0 | OF | ʌv | U | H | 0 | w | 0.0 | 0 | 0 | NaN | NaN | 0 | 0 | 0 | 11 | 1.0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 10 | 11 | NaN | 0.0 | 1.0 |
1 | s | 2 | Mans | 1 | 'mænz | 1 | 1 | Mans | 'mænz | P | H | 1 | s | 0.0 | 0 | 0 | NaN | NaN | 0 | 0 | 0 | 11 | 0.0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 10 | 11 | NaN | 1.0 | 1.0 | ||||||||||
2 | w | 3 | First | 1 | 'fɛːst | 1 | 2 | First | 'fɛːst | P | H | 2 | w | 1.0 | 0 | 0 | NaN | NaN | 0 | 0 | 1 | 11 | 0.0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 10 | 11 | NaN | 1.0 | 1.0 | ||||||||||
3 | s | 4 | Disobedience | 1 | `dɪ.sə.'biː.diː.əns | 1 | 3 | Di | `dɪ | S | L | 3 | s | 0.0 | 0 | 0 | NaN | NaN | 0 | 0 | 0 | 11 | 0.0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 10 | 11 | NaN | 0.5 | 0.0 | ||||||||||
4 | w | 4 | Disobedience | 1 | `dɪ.sə.'biː.diː.əns | 2 | 4 | so | sə | U | L | 4 | w | 0.0 | 0 | 0 | NaN | NaN | 0 | 0 | 0 | 11 | 0.0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 10 | 11 | NaN | 0.0 | 0.0 | ||||||||||
... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | |
3 | Brought Death into the World, and all our woe | 1068 | 3 | PPPUUPUUUP | 'brɔːt 'dɛθ 'ɪn.tuː ðə 'wɛːld ænd ɔːl aʊr 'woʊ | 143 | swwsswwssw | BROUGHT|death.in|TO.THE|world.and|ALL.OUR|woe | 3 | ww | 5 | World | 1 | 'wɛːld | 1 | 5 | World | 'wɛːld | P | H | 5 | w | 2.0 | 0 | 0 | NaN | 1.0 | 0 | 0 | 1 | 10 | 0.0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 6 | 10 | NaN | 1.0 | 1.0 | |
7 | and | 1 | ænd | 1 | 6 | and | ænd | U | H | 6 | w | 1.0 | 0 | 0 | NaN | 1.0 | 0 | 0 | 0 | 10 | 1.0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 6 | 10 | NaN | 0.0 | 1.0 | ||||||||||||
4 | ss | 8 | all | 2 | ɔːl | 1 | 7 | all | ɔːl | U | H | 7 | s | 4.0 | 0 | 1 | 1.0 | 1.0 | 0 | 1 | 0 | 10 | 1.0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 6 | 10 | NaN | 0.0 | 1.0 | ||||||||||
9 | our | 1 | aʊr | 1 | 8 | our | aʊr | U | H | 8 | s | 4.0 | 0 | 1 | 1.0 | 1.0 | 0 | 1 | 0 | 10 | 1.0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 6 | 10 | NaN | 0.0 | 1.0 | ||||||||||||
5 | w | 10 | woe | 1 | 'woʊ | 1 | 9 | woe | 'woʊ | P | L | 9 | w | 1.0 | 0 | 0 | NaN | NaN | 0 | 0 | 1 | 10 | 0.0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 6 | 10 | NaN | 1.0 | 0.0 |
28088 rows × 24 columns
# Summarize syllable-level parses up to lines (summing violation counts, etc)
parses_byline = cd.to_lines(parses_bysyll) # set keyword `agg` to `np.mean` to average instead
parses_byline
*total | *clash | *s/unstressed | *w-res | *f-res | *w/stressed | *lapse | *w/peak | combo_num_syll | is_funcword | is_heavy | is_light | is_peak | is_s | is_stressed | is_syll | is_trough | is_unstressed | is_w | parse_num_pos | parse_num_syll | prom_strength | prom_stress | prom_weight | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
stanza_i | line_i | line_str | parse_rank | combo_i | combo_stress | combo_ipa | parse_i | parse | parse_str | ||||||||||||||||||||||||
1 | 1 | OF Mans First Disobedience, and the Fruit | 1 | 0 | UPPSUPUUUUP | ʌv 'mænz 'fɛːst `dɪ.sə.'biː.diː.əns ænd ðə 'fruːt | 5 | wswswswwsws | of|MANS|first|DI|so|BE|dien.ce|AND|the|FRUIT | 3.0 | 0 | 1 | 0.0 | 0.0 | 1 | 1 | 0 | 11 | 3.0 | 6 | 5 | 1 | 5 | 5 | 11 | 3 | 6 | 6 | 10 | 11 | 1.0 | 4.5 | 6.0 |
8 | wswswsswsws | of|MANS|first|DI|so|BE.DIEN|ce|AND|the|FRUIT | 3.0 | 0 | 2 | 0.0 | 0.0 | 1 | 0 | 0 | 11 | 3.0 | 6 | 5 | 1 | 6 | 5 | 11 | 3 | 6 | 5 | 10 | 11 | 1.0 | 4.5 | 6.0 | |||||||
3 | 0 | UPPSUPUUUUP | ʌv 'mænz 'fɛːst `dɪ.sə.'biː.diː.əns ænd ðə 'fruːt | 2 | wswswswswws | of|MANS|first|DI|so|BE|dien|CE|and.the|FRUIT | 4.0 | 0 | 1 | 0.0 | 0.0 | 1 | 1 | 1 | 11 | 3.0 | 6 | 5 | 1 | 5 | 5 | 11 | 3 | 6 | 6 | 10 | 11 | 1.0 | 4.5 | 6.0 | |||
13 | wswswwswsws | of|MANS|first|DI|so.be|DIEN|ce|AND|the|FRUIT | 4.0 | 0 | 2 | 0.0 | 0.0 | 2 | 0 | 0 | 11 | 3.0 | 6 | 5 | 1 | 5 | 5 | 11 | 3 | 6 | 6 | 10 | 11 | 1.0 | 4.5 | 6.0 | |||||||
5 | 0 | UPPSUPUUUUP | ʌv 'mænz 'fɛːst `dɪ.sə.'biː.diː.əns ænd ðə 'fruːt | 0 | wswswswswsw | of|MANS|first|DI|so|BE|dien|CE|and|THE|fruit | 5.0 | 0 | 2 | 0.0 | 0.0 | 2 | 0 | 1 | 11 | 3.0 | 6 | 5 | 1 | 5 | 5 | 11 | 3 | 6 | 6 | 11 | 11 | 1.0 | 4.5 | 6.0 | |||
... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | |
3 | Brought Death into the World, and all our woe | 1061 | 5 | PPUUUPUUUP | 'brɔːt 'dɛθ ɪn.tʌ ðə 'wɛːld ænd ɔːl aʊr 'woʊ | 65 | wwswsswssw | brought.death|IN|to|THE.WORLD|and|ALL.OUR|woe | 21.0 | 1 | 4 | 4.0 | 6.0 | 3 | 3 | 0 | 10 | 6.0 | 7 | 3 | 0 | 5 | 4 | 10 | 0 | 6 | 5 | 7 | 10 | 0.0 | 4.0 | 7.0 | |
88 | wwsswwssww | brought.death|IN.TO|the.world|AND.ALL|our.woe | 21.0 | 1 | 4 | 1.0 | 7.0 | 4 | 4 | 0 | 10 | 6.0 | 7 | 3 | 0 | 4 | 4 | 10 | 0 | 6 | 6 | 5 | 10 | 0.0 | 4.0 | 7.0 | |||||||
143 | swwsswwssw | BROUGHT|death.in|TO.THE|world.and|ALL.OUR|woe | 21.0 | 0 | 4 | 3.0 | 7.0 | 3 | 4 | 0 | 10 | 6.0 | 7 | 3 | 0 | 5 | 4 | 10 | 0 | 6 | 5 | 6 | 10 | 0.0 | 4.0 | 7.0 | |||||||
164 | sswsswwssw | BROUGHT.DEATH|in|TO.THE|world.and|ALL.OUR|woe | 21.0 | 1 | 4 | 3.0 | 7.0 | 2 | 4 | 0 | 10 | 6.0 | 7 | 3 | 0 | 6 | 4 | 10 | 0 | 6 | 4 | 6 | 10 | 0.0 | 4.0 | 7.0 | |||||||
1068 | 3 | PPPUUPUUUP | 'brɔːt 'dɛθ 'ɪn.tuː ðə 'wɛːld ænd ɔːl aʊr 'woʊ | 143 | swwsswwssw | BROUGHT|death.in|TO.THE|world.and|ALL.OUR|woe | 22.0 | 1 | 4 | 3.0 | 7.0 | 4 | 3 | 0 | 10 | 6.0 | 7 | 3 | 0 | 5 | 5 | 10 | 0 | 5 | 5 | 6 | 10 | 0.0 | 5.0 | 7.0 |
2780 rows × 24 columns
Metrical analysis
# Show best parse(s) for each line (parses can be tied for first)
parses_byline.query('parse_rank==1')
*total | *clash | *s/unstressed | *w-res | *f-res | *w/stressed | *lapse | *w/peak | combo_num_syll | is_funcword | is_heavy | is_light | is_peak | is_s | is_stressed | is_syll | is_trough | is_unstressed | is_w | parse_num_pos | parse_num_syll | prom_strength | prom_stress | prom_weight | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
stanza_i | line_i | line_str | parse_rank | combo_i | combo_stress | combo_ipa | parse_i | parse | parse_str | ||||||||||||||||||||||||
1 | 1 | OF Mans First Disobedience, and the Fruit | 1 | 0 | UPPSUPUUUUP | ʌv 'mænz 'fɛːst `dɪ.sə.'biː.diː.əns ænd ðə 'fruːt | 5 | wswswswwsws | of|MANS|first|DI|so|BE|dien.ce|AND|the|FRUIT | 3.0 | 0 | 1 | 0.0 | 0.0 | 1 | 1 | 0 | 11 | 3.0 | 6 | 5 | 1 | 5 | 5 | 11 | 3 | 6 | 6 | 10 | 11 | 1.0 | 4.5 | 6.0 |
8 | wswswsswsws | of|MANS|first|DI|so|BE.DIEN|ce|AND|the|FRUIT | 3.0 | 0 | 2 | 0.0 | 0.0 | 1 | 0 | 0 | 11 | 3.0 | 6 | 5 | 1 | 6 | 5 | 11 | 3 | 6 | 5 | 10 | 11 | 1.0 | 4.5 | 6.0 | |||||||
2 | Of that Forbidden Tree, whose mortal tast | 1 | 3 | UPUPUPUPUP | ʌv 'ðæt fɛːr.'bɪ.dən 'triː huːz 'mɔːr.təl 'teɪst | 0 | wswswswsws | of|THAT|for|BID|den|TREE|whose|MOR|tal|TAST | 1.0 | 0 | 0 | 0.0 | 0.0 | 0 | 0 | 1 | 10 | 2.0 | 8 | 2 | 2 | 5 | 5 | 10 | 1 | 5 | 5 | 10 | 10 | 2.0 | 5.0 | 8.0 | |
3 | Brought Death into the World, and all our woe | 1 | 0 | PPUPUPUPUP | 'brɔːt 'dɛθ ɪn.'tuː ðə 'wɛːld ænd 'ɔːl aʊr 'woʊ | 0 | wswswswsws | brought|DEATH|in|TO|the|WORLD|and|ALL|our|WOE | 1.0 | 0 | 0 | 0.0 | 0.0 | 1 | 0 | 0 | 10 | 6.0 | 7 | 3 | 0 | 5 | 6 | 10 | 0 | 4 | 5 | 10 | 10 | 0.0 | 6.0 | 7.0 |
# Show best parse(s) for line 1, syllable-level information
parses_bysyll.query('line_i==1 and parse_rank==1')
*total | *clash | *s/unstressed | *w-res | *f-res | *w/peak | *lapse | *w/stressed | combo_num_syll | is_funcword | is_heavy | is_light | is_peak | is_s | is_stressed | is_syll | is_trough | is_unstressed | is_w | parse_num_pos | parse_num_syll | prom_strength | prom_stress | prom_weight | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
stanza_i | line_i | line_str | parse_rank | combo_i | combo_stress | combo_ipa | parse_i | parse | parse_str | parse_pos_i | parse_pos | word_i | word_str | word_ipa_i | word_ipa | syll_i | combo_syll_i | syll_str | syll_ipa | syll_stress | syll_weight | parse_syll_i | parse_syll | ||||||||||||||||||||||||
1 | 1 | OF Mans First Disobedience, and the Fruit | 1 | 0 | UPPSUPUUUUP | ʌv 'mænz 'fɛːst `dɪ.sə.'biː.diː.əns ænd ðə 'fruːt | 5 | wswswswwsws | of|MANS|first|DI|so|BE|dien.ce|AND|the|FRUIT | 0 | w | 1 | OF | 1 | ʌv | 1 | 0 | OF | ʌv | U | H | 0 | w | 0.0 | 0 | 0 | NaN | NaN | 0 | 0 | 0 | 11 | 1.0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 10 | 11 | NaN | 0.0 | 1.0 |
1 | s | 2 | Mans | 1 | 'mænz | 1 | 1 | Mans | 'mænz | P | H | 1 | s | 0.0 | 0 | 0 | NaN | NaN | 0 | 0 | 0 | 11 | 0.0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 10 | 11 | NaN | 1.0 | 1.0 | ||||||||||
2 | w | 3 | First | 1 | 'fɛːst | 1 | 2 | First | 'fɛːst | P | H | 2 | w | 1.0 | 0 | 0 | NaN | NaN | 0 | 0 | 1 | 11 | 0.0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 10 | 11 | NaN | 1.0 | 1.0 | ||||||||||
3 | s | 4 | Disobedience | 1 | `dɪ.sə.'biː.diː.əns | 1 | 3 | Di | `dɪ | S | L | 3 | s | 0.0 | 0 | 0 | NaN | NaN | 0 | 0 | 0 | 11 | 0.0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 10 | 11 | NaN | 0.5 | 0.0 | ||||||||||
4 | w | 4 | Disobedience | 1 | `dɪ.sə.'biː.diː.əns | 2 | 4 | so | sə | U | L | 4 | w | 0.0 | 0 | 0 | NaN | NaN | 0 | 0 | 0 | 11 | 0.0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 10 | 11 | NaN | 0.0 | 0.0 | ||||||||||
5 | s | 4 | Disobedience | 1 | `dɪ.sə.'biː.diː.əns | 3 | 5 | be | 'biː | P | L | 5 | s | 0.0 | 0 | 0 | NaN | NaN | 0 | 0 | 0 | 11 | 0.0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 10 | 11 | NaN | 1.0 | 0.0 | ||||||||||
6 | ww | 4 | Disobedience | 1 | `dɪ.sə.'biː.diː.əns | 4 | 6 | dien | diː | U | L | 6 | w | 0.0 | 0 | 0 | NaN | NaN | 0 | 0 | 0 | 11 | 0.0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 10 | 11 | NaN | 0.0 | 0.0 | ||||||||||
5 | 7 | ce | əns | U | H | 7 | w | 1.0 | 0 | 0 | NaN | NaN | 0 | 1 | 0 | 11 | 0.0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 10 | 11 | 0.0 | 0.0 | 1.0 | ||||||||||||||||
7 | s | 6 | and | 1 | ænd | 1 | 8 | and | ænd | U | H | 8 | s | 1.0 | 0 | 1 | NaN | NaN | 0 | 0 | 0 | 11 | 1.0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 10 | 11 | 1.0 | 0.0 | 1.0 | ||||||||||
8 | w | 7 | the | 1 | ðə | 1 | 9 | the | ðə | U | L | 9 | w | 0.0 | 0 | 0 | NaN | NaN | 0 | 0 | 0 | 11 | 1.0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 10 | 11 | 0.0 | 0.0 | 0.0 | ||||||||||
9 | s | 8 | Fruit | 1 | 'fruːt | 1 | 10 | Fruit | 'fruːt | P | H | 10 | s | 0.0 | 0 | 0 | NaN | NaN | 0 | 0 | 0 | 11 | 0.0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 10 | 11 | 0.0 | 1.0 | 1.0 | ||||||||||
8 | wswswsswsws | of|MANS|first|DI|so|BE.DIEN|ce|AND|the|FRUIT | 0 | w | 1 | OF | 1 | ʌv | 1 | 0 | OF | ʌv | U | H | 0 | w | 0.0 | 0 | 0 | NaN | NaN | 0 | 0 | 0 | 11 | 1.0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 10 | 11 | NaN | 0.0 | 1.0 | |||||||
1 | s | 2 | Mans | 1 | 'mænz | 1 | 1 | Mans | 'mænz | P | H | 1 | s | 0.0 | 0 | 0 | NaN | NaN | 0 | 0 | 0 | 11 | 0.0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 10 | 11 | NaN | 1.0 | 1.0 | ||||||||||
2 | w | 3 | First | 1 | 'fɛːst | 1 | 2 | First | 'fɛːst | P | H | 2 | w | 1.0 | 0 | 0 | NaN | NaN | 0 | 0 | 1 | 11 | 0.0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 10 | 11 | NaN | 1.0 | 1.0 | ||||||||||
3 | s | 4 | Disobedience | 1 | `dɪ.sə.'biː.diː.əns | 1 | 3 | Di | `dɪ | S | L | 3 | s | 0.0 | 0 | 0 | NaN | NaN | 0 | 0 | 0 | 11 | 0.0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 10 | 11 | NaN | 0.5 | 0.0 | ||||||||||
4 | w | 4 | Disobedience | 1 | `dɪ.sə.'biː.diː.əns | 2 | 4 | so | sə | U | L | 4 | w | 0.0 | 0 | 0 | NaN | NaN | 0 | 0 | 0 | 11 | 0.0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 10 | 11 | NaN | 0.0 | 0.0 | ||||||||||
5 | ss | 4 | Disobedience | 1 | `dɪ.sə.'biː.diː.əns | 3 | 5 | be | 'biː | P | L | 5 | s | 0.0 | 0 | 0 | NaN | NaN | 0 | 0 | 0 | 11 | 0.0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 10 | 11 | NaN | 1.0 | 0.0 | ||||||||||
4 | 6 | dien | diː | U | L | 6 | s | 1.0 | 0 | 1 | NaN | NaN | 0 | 0 | 0 | 11 | 0.0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 10 | 11 | NaN | 0.0 | 0.0 | ||||||||||||||||
6 | w | 4 | Disobedience | 1 | `dɪ.sə.'biː.diː.əns | 5 | 7 | ce | əns | U | H | 7 | w | 0.0 | 0 | 0 | NaN | NaN | 0 | 0 | 0 | 11 | 0.0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 10 | 11 | 0.0 | 0.0 | 1.0 | ||||||||||
7 | s | 6 | and | 1 | ænd | 1 | 8 | and | ænd | U | H | 8 | s | 1.0 | 0 | 1 | NaN | NaN | 0 | 0 | 0 | 11 | 1.0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 10 | 11 | 1.0 | 0.0 | 1.0 | ||||||||||
8 | w | 7 | the | 1 | ðə | 1 | 9 | the | ðə | U | L | 9 | w | 0.0 | 0 | 0 | NaN | NaN | 0 | 0 | 0 | 11 | 1.0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 10 | 11 | 0.0 | 0.0 | 0.0 | ||||||||||
9 | s | 8 | Fruit | 1 | 'fruːt | 1 | 10 | Fruit | 'fruːt | P | H | 10 | s | 0.0 | 0 | 0 | NaN | NaN | 0 | 0 | 0 | 11 | 0.0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 10 | 11 | 0.0 | 1.0 | 1.0 |
# Top 10 parses for first line
parses_byline.query('line_i==1 and parse_rank<=10')
*total | *clash | *s/unstressed | *w-res | *f-res | *w/stressed | *lapse | *w/peak | combo_num_syll | is_funcword | is_heavy | is_light | is_peak | is_s | is_stressed | is_syll | is_trough | is_unstressed | is_w | parse_num_pos | parse_num_syll | prom_strength | prom_stress | prom_weight | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
stanza_i | line_i | line_str | parse_rank | combo_i | combo_stress | combo_ipa | parse_i | parse | parse_str | ||||||||||||||||||||||||
1 | 1 | OF Mans First Disobedience, and the Fruit | 1 | 0 | UPPSUPUUUUP | ʌv 'mænz 'fɛːst `dɪ.sə.'biː.diː.əns ænd ðə 'fruːt | 5 | wswswswwsws | of|MANS|first|DI|so|BE|dien.ce|AND|the|FRUIT | 3.0 | 0 | 1 | 0.0 | 0.0 | 1 | 1 | 0 | 11 | 3.0 | 6 | 5 | 1 | 5 | 5 | 11 | 3 | 6 | 6 | 10 | 11 | 1.0 | 4.5 | 6.0 |
8 | wswswsswsws | of|MANS|first|DI|so|BE.DIEN|ce|AND|the|FRUIT | 3.0 | 0 | 2 | 0.0 | 0.0 | 1 | 0 | 0 | 11 | 3.0 | 6 | 5 | 1 | 6 | 5 | 11 | 3 | 6 | 5 | 10 | 11 | 1.0 | 4.5 | 6.0 | |||||||
3 | 0 | UPPSUPUUUUP | ʌv 'mænz 'fɛːst `dɪ.sə.'biː.diː.əns ænd ðə 'fruːt | 2 | wswswswswws | of|MANS|first|DI|so|BE|dien|CE|and.the|FRUIT | 4.0 | 0 | 1 | 0.0 | 0.0 | 1 | 1 | 1 | 11 | 3.0 | 6 | 5 | 1 | 5 | 5 | 11 | 3 | 6 | 6 | 10 | 11 | 1.0 | 4.5 | 6.0 | |||
13 | wswswwswsws | of|MANS|first|DI|so.be|DIEN|ce|AND|the|FRUIT | 4.0 | 0 | 2 | 0.0 | 0.0 | 2 | 0 | 0 | 11 | 3.0 | 6 | 5 | 1 | 5 | 5 | 11 | 3 | 6 | 6 | 10 | 11 | 1.0 | 4.5 | 6.0 | |||||||
5 | 0 | UPPSUPUUUUP | ʌv 'mænz 'fɛːst `dɪ.sə.'biː.diː.əns ænd ðə 'fruːt | 0 | wswswswswsw | of|MANS|first|DI|so|BE|dien|CE|and|THE|fruit | 5.0 | 0 | 2 | 0.0 | 0.0 | 2 | 0 | 1 | 11 | 3.0 | 6 | 5 | 1 | 5 | 5 | 11 | 3 | 6 | 6 | 11 | 11 | 1.0 | 4.5 | 6.0 | |||
21 | wswsswswsws | of|MANS|first|DI.SO|be|DIEN|ce|AND|the|FRUIT | 5.0 | 0 | 3 | 0.0 | 0.0 | 2 | 0 | 0 | 11 | 3.0 | 6 | 5 | 1 | 6 | 5 | 11 | 3 | 6 | 5 | 10 | 11 | 1.0 | 4.5 | 6.0 | |||||||
170 | swswwswwsws | OF|mans|FIRST|di.so|BE|dien.ce|AND|the|FRUIT | 5.0 | 0 | 2 | 0.0 | 0.0 | 2 | 1 | 0 | 11 | 3.0 | 6 | 5 | 1 | 5 | 5 | 11 | 3 | 6 | 6 | 9 | 11 | 1.0 | 4.5 | 6.0 | |||||||
173 | swswwsswsws | OF|mans|FIRST|di.so|BE.DIEN|ce|AND|the|FRUIT | 5.0 | 0 | 3 | 0.0 | 0.0 | 2 | 0 | 0 | 11 | 3.0 | 6 | 5 | 1 | 6 | 5 | 11 | 3 | 6 | 5 | 9 | 11 | 1.0 | 4.5 | 6.0 | |||||||
9 | 0 | UPPSUPUUUUP | ʌv 'mænz 'fɛːst `dɪ.sə.'biː.diː.əns ænd ðə 'fruːt | 6 | wswswswwsww | of|MANS|first|DI|so|BE|dien.ce|AND|the.fruit | 6.0 | 0 | 1 | 0.0 | 1.0 | 2 | 2 | 0 | 11 | 3.0 | 6 | 5 | 1 | 4 | 5 | 11 | 3 | 6 | 7 | 9 | 11 | 1.0 | 4.5 | 6.0 | |||
9 | wswswsswsww | of|MANS|first|DI|so|BE.DIEN|ce|AND|the.fruit | 6.0 | 0 | 2 | 0.0 | 1.0 | 2 | 1 | 0 | 11 | 3.0 | 6 | 5 | 1 | 5 | 5 | 11 | 3 | 6 | 6 | 9 | 11 | 1.0 | 4.5 | 6.0 | |||||||
162 | swswsswwsws | OF|mans|FIRST|di|SO.BE|dien.ce|AND|the|FRUIT | 6.0 | 0 | 3 | 0.0 | 0.0 | 2 | 1 | 0 | 11 | 3.0 | 6 | 5 | 1 | 6 | 5 | 11 | 3 | 6 | 5 | 9 | 11 | 1.0 | 4.5 | 6.0 |
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
cadences-0.1.9.tar.gz
(1.3 MB
view hashes)