User talk:Ruoian27

From dandi08

Jump to: navigation, search

Hi Ian,

thanks for being so proactive and putting up your project idea! i put this into the Python Projects category. if that is not OK, feel free to move it.

Judy



Added Sandbox, not that you seem to need it. :) Zemanl 11:11, 21 October 2008 (PDT)


Ian,

Hey. I'm glad it helped. I posted my comments up on the talk page.

Best, Carrie Rivcar18

[edit] poetrygen.py

Well hello. I never really check the wiki, so I only just got your messages. The training mode is actually broken, which is something I hadn't realized before. The whole code base really sucks anyway, and should be totally rewritten in a more OO style, since the whole thing isn't abstracted out at all.

habnabit@ender ~/isledict0.2/poetrygen $ ls
isledict0.2.txt poetrygen.py    pyparsing.py    pyparsing.pyc   rhymes.db       rhymewords.db
habnabit@ender ~/isledict0.2/poetrygen $ cp ../training.txt .
habnabit@ender ~/isledict0.2/poetrygen $ python poetrygen.py \
    --limerick -N2 --rhyme-db=rhymes.db --rhymewords-db=rhymewords.db -T
Parsing isledict...
Saving cached dictionary files...
Setting up chains...
Saving cached chains...
Parsing pattern...

Determining rhymes...
Filling out lines...

 1  gestalt reassessed than of tosses
 2  tieu underplayed or his mosses
 3  revell a mc walla
 4  latrine did with chawla
 5  tejada disproved du will losses
---

Determining rhymes...
Couldn't find a rhyme for 'kimrey'.
Determining rhymes...
Filling out lines...

 1  proscribes salmeron with or feeny
 2  suburbans abkhazian le reaney
 3  vancouver man winger
 4  restrain salim swinger
 5  frymire incomplete tamil keeny

training.txt can be any plaintext English document delimited with only spaces and newlines. I use a piece of bad fanfiction. Galaar28