Information Technology Reference
In-Depth Information
pasmei na arte das poéticas
sempre a expor e a pôr
12.4.5.2 Forcing Rhymes to Occur
While the metre is matched with the previous function, there are still no rhymes,
another important feature in poetry. For this purpose, the evaluation function is
changed to include a bonus for rhymes (
ˁ
) and a penalty for lines ending with
thesameword(
). The former is an additional score for pairs of lines in the same
stanza with the same termination, while the latter minimises the bias towards the
selection of the same word when matching a rhyme. The final score of a poem thus
becomes the following:
˃
Score poem
=
Score metre
+ (
# rhyme _ pairs
ˁ) (
# repetitions
˃)
An important difference between the G&T and the Ev strategies is that, in G&T,
bonuses and penalties are given for each sentence, at generation time. As for Ev, a
global score is attached to the full poem.
To increase the probability of rhymes, a higher number of generations should be
considered. Moreover, in the G&T we added a progressive multiplier
that increases
the maximum number of generations ( n ) for lines of higher order in a stanza, where
rhyme is expected. This is such that, for the i th line, n i
ˀ
=
+ (
ˀ
)
.
Rhymes are not always guaranteed for every line, as they depend not only on the
number of generations, but also on the domain words and on the available patterns
in the grammar. Yet, using our resources with G&T, a substantial amount of lines
ends up in rhyme. The following block of four, with two pairs of rhyming lines, was
obtained with the G&T and n
n
n
i
=
750,
ˀ =
0
.
35,
ʴ =
1,
ʽ =
0
.
01,
ˁ =
2,
˃ =
1.
e a arte navegação
arte de grande criação
sistema por apriorismos
estilo por minimalismos
12.4.5.3 Forcing a Rhyme Pattern
If it is nice to have rhymes in random lines of the poem, it is probablymore interesting
to control the lines where they occur. Therefore, we developed a variation of the G&T
strategy where: (i) the rhyme bonus is only added if the rhyme is in a predefined target
place; (ii) there is an additional multiplying factor
ˆ
for generating lines in rhyming
position.
Still, even with a high
factor, the rhyming pattern is less often matched than
simple rhymes, especially with the domain we defined earlier. The following is a
block of four with 8 syllables per verse and rhyming pattern ABAB , obtained with
ˆ
Search WWH ::




Custom Search