ELTE Poetry Corpus: A Machine Annotated Database of Canonical Hungarian Poetry
Paper · 2022 · Péter Horváth, Péter Kundráth, Balázs Indig et al.
Summary
A reader can hear a rhyme or notice an unusual rhythm in a poem. Finding out how often that feature occurs across an author’s work, or whether it recurs in the work of other poets, requires a way to identify the same feature across many texts. The ELTE Poetry Corpus provides that starting point for canonical Hungarian verse. It brings together the complete poems of 49 authors, amounting to 13,063 poems and roughly 2,7 million words. Its searchable linguistic annotation connects the organization of the poems with the grammar of their words and with selected features of their sound.
The authors start with documents from the Hungarian Electronic Library. They convert the poems into XML and check the markup for titles, stanzas, and lines against the source documents. Automatic stages then mark words and punctuation, identify dictionary forms and grammatical properties, and describe such features as syllable length, rhyme schemes, pairs of rhyming words, and alliteration. The corpus is available in TEI XML, a standard used for encoding texts, and in a second XML format that puts often queried information closer to the words and verse units it describes. A freely accessible search interface uses data from that second format.
The paper evaluates rhythm and rhyme in different ways. For quantitative rhythm, the sequence of short and long syllables in a line, the authors manually check samples grouped by the poets’ years of birth. Across the combined samples, 2.33% of lines have an incorrect rhythm annotation under the study’s rules. Many of the errors involve foreign words, especially proper names. For rhyme, the authors compare alternative rules by counting how many poems receive the same rhyme scheme in every stanza. The winning rule allows the final syllables to differ in vowel length, requires the penultimate syllables to have the same metrical length, and requires both endings to finish with the same broad sound class, vowel or consonant. That result measures regularity across stanzas. The rhythm result measures agreement with a manual check.
The interface lets readers put these layers together. A search can combine a word’s dictionary form, grammatical properties, and sound structure, then restrict the results to particular authors or rhyme schemes. Readers can retrieve passages, generate frequency lists, and export results for further analysis. The downloadable XML supports inquiries beyond the combinations offered in the interface.
Deep dive: ELTE Poetry Corpus: A Machine Annotated Database of Canonical Hungarian Poetry
The ELTE Poetry Corpus makes canonical Hungarian verse searchable by grammar, rhyme, and rhythm, with tests of its automatic annotations. · about 32 minutes to read
The problem and its context
From individual poems to a searchable collection
A researcher studying the sound of verse needs to know which parts of the text to compare. A line is the unit for the rhythm annotation in this paper. A stanza, a group of verse lines, is the unit for the rhyme scheme. The words within a stanza matter too, because a researcher may want to compare the grammatical or phonological properties of the words that rhyme. A collection that supplies only the poem texts leaves each of those decisions to whoever is doing the search.
The distinctions become especially important when a question crosses levels. A request for rhyming nouns needs a way to identify which words rhyme and which words are nouns. Counting those nouns by their dictionary forms also requires the different grammatical forms of a word to be grouped together. A request for alliterating adjective and noun combinations needs a comparable link between the sound pattern and the grammatical categories of the participating words. In each case, the items of interest are relations between annotated words, situated inside a larger literary structure.
This is a problem in corpus linguistics, the study of language through systematic examination of collections of texts. For poetry, an important part of making that examination possible is preserving the units in which the poem was written. A search for particular sounds near a line ending depends on knowing where the line ends. A count of recurring rhyme schemes depends on recovering the lines as members of the right stanzas. Titles, epigraphs, and notes also need to be distinguishable from lines of verse. Document structure is therefore part of the evidence for a sound query.
The authors describe a gap in the resources then available for Hungarian. They knew of no earlier large collection of Hungarian verse with automatically assigned annotations for sound devices. The Hungarian Gigaword Corpus and the Hungarian Historical Corpus gave them examples of general-purpose Hungarian resources. The Gigaword Corpus also informed aspects of the sound representation and search design. An older resource concerned specifically with verse, the Répertoire de la poésie hongroise ancienne, let users search for information about Hungarian poems written before 1600, including metrical properties. Its searchable descriptions did not extend to an annotated edition of the poems themselves.
The ELTE project brought these strands together. It treated the poem text as something a reader should be able to inspect directly and as data a search system could filter by linguistic and literary properties. That combination explains why the paper spends time on both the rules for sound annotation and the placement of information in the files. A rule supplies the judgment that two endings rhyme. The representation determines whether a query can readily retrieve that judgment alongside the words, their grammatical labels, and their stanza.
Examples from other poetry traditions
The authors found a close precedent in the Czech Poetry Corpus. It covers almost 80,000 poems from the 19th and early 20th centuries. Its annotations combine dictionary forms and morphosyntactic properties with phonological information, rhyme, and rhythm. The precedent matters because it shows how a corpus can collect information used by linguists and information used by scholars of verse in the same representation. A researcher can then ask how a lexical or grammatical feature is distributed across formal contexts without building a separate collection of verse forms.
The Corpus of Spanish Golden-Age Sonnets offered another point of comparison. It represents its texts in TEI XML and includes automatically generated annotations of rhythm. The ELTE authors drew on its design when considering how to encode verse. The Czech and Spanish examples addressed complementary parts of the task as the paper describes it. The Czech collection illustrated the breadth of linguistic and poetic annotation that could coexist. The Spanish collection was a precedent for representing a poetry corpus with metrical information in a shared text-encoding format.
The paper also discusses programs for verse analysis. For English, Scandroid and ZeuScansion analyzed rhythm and meter. Scansion is the analysis of a line’s metrical organization. AnalysePoem additionally addressed rhyme schemes. Such programs exemplify the task of inferring formal properties from the written verse itself. A searchable corpus adds a separate task. It has to keep the output associated with the appropriate poem, stanza, line, or word so that a reader can retrieve related examples together.
Other studies used automatically extracted features to ask questions about groups of poems. Kao and Jurafsky compared professional and amateur American poetry using properties that included vocabulary, alliteration, and rhyme pairs. Tanasescu and colleagues pursued automatic classification of English poems using meter and rhyme. The paper cites these projects as instances of what computational analysis of poetic form can support. Their questions differ from the ELTE project’s immediate aim, which was to provide an annotated Hungarian collection that could serve multiple kinds of inquiry.
Earlier computational work on Hungarian verse
Work on Hungarian verse already included several studies focused on particular authors or genres. The paper identifies Vilmos Voigt’s computational analysis of three sonnets as an early attempt to determine rhythm automatically. Jékel and Papp used a computer to collect phoneme statistics for the complete poems of Endre Ady. A phoneme is a sound unit that can distinguish words. Statistics over these units describe a different aspect of verse from metrical rhythm, where the relevant sequence in this study consists of short and long syllables.
Jékel and Szuromi studied rhythm in 300 poems by Sándor Petőfi using an analysis that was partly automatic and took several dimensions into account. Research on Dániel Berzsenyi used automatically measured lexical and phonemic properties, including word length and distributions of vowels and consonants. Maróthy and colleagues investigated rhyming in 26 Hungarian historical songs from the 16th century. The studies show the range of questions that motivated automatic analysis in Hungarian, from a particular rhythmic structure to the distribution of sounds across an author’s work.
The paper also mentions Lesi’s program for analyzing rhyme schemes, alliteration, and meter. The authors report that it was no longer accessible. Its combination of features was close to the range they wanted to support. Their project faced the additional work of drawing texts from existing documents, checking the structure, attaching the available sound and grammatical information, and making the resulting corpus accessible for reuse and search.
These precedents make the paper’s unit of contribution clearer. An automatic scansion procedure can return an analysis for a line. A study of an author can collect evidence about that author’s verse. An annotated corpus organizes those kinds of observations so that they can be found again under different questions. Here, the scope of those questions depends jointly on which poems the authors could include, which sound properties their rules record, and how the annotations can be retrieved.
The method, step by step
Building and indexing the ELTE Poetry Corpus
The steps in order.
Establishing the text and its structure
The source is the Hungarian Electronic Library, which holds documents containing the complete poetry of many public-domain authors. The project uses RTF documents when available and HTML when an RTF version is unavailable. Each format has its own conversion script. XQuery handles the RTF route, and Python handles the HTML route. Both produce a separate TEI XML file for each poem. They also create a teiHeader, which records information such as the work’s title, its author, and the document from which it came.
TEI XML gives the structure recognizable names. A head element holds the title. A stanza is placed in an lg element and its lines in l elements. Subtitles, epigraphs, separators, and notes about the time or place of composition are placed in p elements. These categories allow a program to distinguish material that accompanies the verse from material that participates in its line and stanza patterns. The distinction also allows accompanying text to remain available to the reader.
The initial conversion is called level0. The authors compare the output with the RTF or HTML originals, working in Oxygen XML Editor. This produces the checked structural version, level1. The paper gives two reasons for this review. Some document structures are special cases the scripts handle incorrectly, and inconsistencies in the source documents can also lead the scripts to put boundaries or labels in the wrong place. The material used for later annotation is thus the structural markup after review.
The review is consequential even though it concerns layout and hierarchy. If a stanza boundary falls in the wrong place, the set of endings compared for rhyme changes. If material such as an epigraph enters the verse as an ordinary line, it can change the rhyme scheme, the sequence of line lengths, or both. Conversely, a correctly segmented stanza provides a stable set of lines for any revised sound rules the authors might apply in the future.
The checked version is kept as an input from which later annotations can be regenerated. The paper describes this as a practical feature of the workflow. When an annotation program improves, a new pass can start from the manually reviewed structure. The work of comparing the poem files with their source documents is preserved, while the derived grammatical and phonological descriptions can be replaced through another run.
Adding words, punctuation, and grammar
At level2, the corpus adds grammatical information. The project uses the emtsv version of e-magyar, a pipeline for Hungarian natural language processing. A script retrieves text from the TEI file, passes it through e-magyar, and writes its tab-separated output back into TEI XML. That conversion returns the linguistic analysis to the context that gives it literary meaning. An annotated word remains part of a particular line in a particular stanza.
The first requirement is tokenization, which identifies the textual units to be analyzed. The resulting XML puts words in w elements and punctuation in pc elements. Punctuation has a join attribute indicating which side it adjoins. Keeping punctuation separate allows the corpus to attach grammatical annotations to the words while retaining information about how punctuation sits against the surrounding text.
For each word, lemma holds its lemma, the dictionary form used to group its grammatical variants. pos contains the result of part-of-speech tagging, such as assigning a word to a category like noun or adjective. msd records morphosyntactic features as feature–value pairs. These describe aspects of the word’s morphology and grammatical behavior more specifically than a category name can. The project takes the part-of-speech and morphosyntactic labels from the Universal Dependencies output available in e-magyar.
The file also gives stanzas, lines, words, and punctuation unique xml:id values. These identifiers provide an address for annotations that need to point to an occurrence. A word form may appear repeatedly in a poem. Its identifier specifies the instance at the end of a particular line or in a particular alliterating sequence. This distinction will become central when the sound annotations refer to the text from a separate part of the file.
The grammar and sound stages use different procedures. The corpus draws on an existing Hungarian grammatical analyzer for the word-level labels. The project’s Python program, hunpoem analyzer-TEI, supplies its sound annotations. The paper describes how the available texts are processed and how the rhyme rules are selected by comparison. It does not describe fitting the sound rules on a training split. The evidence used to decide which rhyme rule to adopt is a comparison of the rules’ output across poems.
Recording sound properties of words
At level3, hunpoem analyzer-TEI adds a description of each word’s sound structure. The fields record syllable count, vowel type, and a sequence describing consonants and vowels. The sequence uses a representation adapted from the Hungarian Gigaword Corpus. Each c represents a consonant. For vowels, b and B represent short and long back vowels, while f and F represent short and long front vowels. The case of the character thus conveys length within its vowel class.
For instance, the paper gives szerszámaival the sound-structure string cfccBcbfcbc. The string preserves the order of consonant and vowel positions and distinguishes the relevant vowel classes. It groups different consonants under the same symbol and can group distinct vowels under the same front or back classification. A search for such a string is therefore a search for a shared structural description. It can include different words whose sounds meet the same conditions.
In TEI, the project stores these details as standoff annotations, meaning that the description sits apart from the word and points back to it. A spanGrp holds span elements. The target of each span is the identifier of the word being described. The span’s subtype records its syllable count, its type records the vowel type, and the text of the span gives the phonological structure string. The paper uses this arrangement because the TEI specification does not allow the project’s phonological attributes directly on w elements.
There is a difference between this word description and the metrical value of a syllable in a line. The vowel symbol says whether the vowel is short or long. The rhythm assignment can also depend on consonants after the vowel. A word’s phonological pattern can be a useful filter in its own right, while a line’s rhythm answers a question about the sequence of syllable quantities in the verse.
Assigning quantitative rhythm
Quantitative rhythm is represented as an ordered sequence of short and long syllables. The program writes the syllable count in n on the line element and the rhythm string in real. In that string, 0 means a short syllable and 1 means a long syllable. Each character corresponds to a syllable in reading order. The result records the line’s sequence of quantities and can be read without assigning the line to a named meter.
The rules use the written vowel and the consonants that follow it. A short vowel produces a short syllable when there is no following consonant or when there is just one ordinary consonant. A long vowel makes its syllable long. A short vowel also occurs in a long syllable when it is followed by a long consonant or by multiple consonants. The program must therefore identify consonant units from the spelling before those conditions can be applied properly.
The rules also account for a convention at word boundaries. Multiple consonants at the beginning of the next word do not lengthen the preceding syllable when that syllable ends in a short vowel. The paper illustrates the sort of initial clusters involved with words such as krákog and strigula. For the scansion procedure, it matters where the cluster begins. The same general description of a short vowel followed by consonants would be too broad if it gave the same answer regardless of the word boundary.
A further practical issue is that a consonant can be represented with more than one written character. The evaluation singles out the handling of consonants written with two characters as a main challenge that the program addressed. Treating both characters as separate consonants could assign a long metrical value where the rule counts only one consonant. The rules as implemented did not require a pronunciation dictionary. Their operation depends on cues recoverable from the spelling and the metrical convention the authors chose to encode.
The output for each line becomes an input to rhyme analysis. In particular, the rhyme rules consult the quantity of the second-to-last syllable in candidate endings. A decision about a short vowel and its neighboring consonants can consequently influence both a line’s metrical string and a decision about which line endings belong together.
Finding rhyme schemes and linking words
The authors distinguish the rhyme scheme of a stanza from its recorded pairs of rhyming words. A scheme gives a label to each line in order. The same letter indicates that lines within that stanza rhyme. For example, the paper uses aabbcb to illustrate the format. The letter b relates positions that are separated in the stanza, while each position still has a single character in the scheme. This representation is stored in the stanza’s rhyme attribute.
A rhyme pair names actual word occurrences. In the TEI representation, the program uses a link in a linkGrp. The target attribute gives the identifiers of the two words. The distinction between a letter and a word identifier explains why the corpus keeps both forms of information. A researcher grouping stanzas by their pattern can use the string directly. A researcher studying the lemmas or grammatical categories of the words that rhyme needs the occurrences to which the links point.
Linking is restricted by distance and by the nearest rhyme in the forward direction. There can be up to four intervening lines. A word can be the later member of one pair and the earlier member of another. The paper illustrates this with aabbaa. The rhyme word in the second line links back to the first and forward to the fifth. The program does not create a separate pairing from the second line to the sixth, since the fifth is the closer forward match. The scheme still uses the same letter at the relevant positions. A query counting explicit pairs therefore counts the relations the program records under its linking policy.
The rule adopted for making the rhyme decisions requires matching final-syllable vowels while disregarding their length. It also requires the penultimate syllables to agree in metrical quantity. Finally, the last phonemes must either both be vowels or both be consonants. The condition concerns their categories, so the consonant case does not require the consonants themselves to match. The distinction between vowel length and syllable length matters here. The rule is lenient about the length of the final vowel and still insists on matching the metrical quantities of the preceding syllables.
The paper tests this rule against alternatives that adjust its treatment of the final sound class or of final-vowel length. Its account specifies the conditions and the criterion used to select among them. The outcome is the level of matching considered suitable for annotating the collection under that criterion.
Marking alliteration
Here, an alliteration is a sequence of words that repeat an initial phoneme, with room for an intervening word of a different onset. The annotation again uses a span inside a spanGrp. Its target lists the identifiers of the words in the sequence. A string in the type attribute describes the role of each position. The character a indicates a word that shares the initial sound, and n indicates an intervening word that does not share it.
The paper illustrates the representation with the pattern anaa. The first, third, and fourth words alliterate, and the second falls between members of that sound pattern. The intervening word remains part of the annotated stretch. This makes the span readable in its original order and makes the difference between membership in the stretch and participation in the sound repetition explicit.
There is also a rule for common function words. The articles a and az and the conjunctions s and és are treated as stop words for a two-word alliteration. A stop word here has restricted participation in the recognition rule. These words can still be members of a longer alliteration when at least two other words share the relevant initial sound. The condition controls which sequences the program creates annotations for. The resulting counts describe matches under that definition of alliteration.
The alliteration and rhyme links serve related but distinct purposes. A rhyme link connects word occurrences at line endings under the stanza and distance constraints. An alliteration span preserves a stretch of words with a pattern of participating and intervening positions. Both derive their meaning from the references back to individual words, where the grammatical analysis is already available.
Preparing files for queries
The final transformation produces level4. An XSLT stylesheet changes names and positions of elements and attributes and adds counts. XSLT specifies a transformation from one XML representation to another. Here the transformation takes a TEI file with several kinds of information stored in different places and creates a version designed around the fields a query will often need. The TEI files are also available for readers working with the standard format.
A major change is that phonological details move onto the word elements. In the final format, numSyll on a word gives its number of syllables, phonType gives the vowel type, and phonStruct holds the sound-structure string. In the TEI version, a search for a grammatical feature together with a phonological feature would need to connect the word and its standoff span by identifier. The revised XML places both kinds of information on the word. This is the sense in which the revised arrangement simplifies such queries.
The poem element carries several quantities that can be read directly. These include totals for stanzas, lines, words, and syllables, along with separate tallies for long syllables and short ones. Stanza and line elements receive additional counts suited to those units. The attributes make it possible to filter on these properties without first reconstructing the desired totals from all the elements below each poem, stanza, or line.
Poem-level patterns also gather information previously found in separate units. The poem’s rhyme string puts stanza schemes in order and uses vertical bars for stanza breaks. A repeated letter identifies rhyming lines only inside a stanza. The reuse of the same letter after a bar carries no rhyme comparison with the previous stanza. The poem’s syllable pattern records the syllable counts of lines and uses hyphens and vertical bars to retain the distinction between line and stanza boundaries.
The final format keeps rhyme pairs and alliterations as standoff structures while making their contents easier to query. For rhyme pairs, the element contains the word forms, with grammatical and phonological properties supplied as attributes. For alliteration, the element also gives the word forms, along with attributes for the participating words’ lemmas and grammatical properties. A search for a rhyme relation or an alliterating combination begins with the corresponding relation and already has access to properties of the words it connects.
The paper presents the resulting XML as easier to query and describes its layout as intended to speed execution. The practical design decision was to publish both forms. TEI retains the standard conventions used by the project. The query-oriented version makes some recurring combinations of fields directly accessible and supplies summaries at the levels where researchers may want to filter texts. The project’s repository supplies the annotated XML, including versions from different stages.
From the files to a search interface
The web interface searches a MariaDB SQL database created from level4 files. From a reader’s perspective, the database gives access to word occurrences, patterns extending across several tokens, and properties of the poems that contain them. Word form and lemma answer different questions. Searching a word form retrieves the spelling specified in the query. Searching by lemma gathers the forms the grammatical analysis associates with the same dictionary entry.
The interface allows grammatical and sound conditions to be combined. A search can specify part of speech and morphosyntactic features, and it can add conditions such as syllable count, vowel type, sound structure, or syllable length. For a multi-token pattern, the focus is a sequence of words with the specified properties. The interface can also restrict the collection by author or rhyme scheme, so the same word-level query can be examined within different groups of poems.
The results include frequency lists of forms or lemmas, and the interface can build a frequency list for a multi-word pattern. It can also report how many distinct forms or distinct lemmas are present in a selected part of the collection. The authors use the number of distinct lemmas as an indication of the vocabulary represented there. Search results, counts, and lists can be exported as TSV, a format that separates fields with tabs and can be opened in a spreadsheet. The XML distribution supports more elaborate inquiries that require access to details beyond the interface’s available searches.
Experiments and results
What the corpus contains
The collection described in the paper holds 13,063 poems by 49 authors and approximately 2,7 million words. The authors describe the holdings as the complete poems of the included writers. Those counts refer to the annotated corpus. The rhythm evaluation draws a sample of lines from it, and the rhyme experiment compares outputs on poems using the recurrence of stanza schemes. The paper also uses searches on the corpus to demonstrate what the annotations can retrieve. The three kinds of result have different units.
The study does not set up a common test in which earlier Hungarian, Czech, Spanish, or English systems compete. For rhythm, the reference is a manual judgment applying specified metrical rules to sampled lines. For rhyme, the comparison is among alternative rules in the authors’ own program. For the search examples, the numbers are frequencies of retrieved items. A frequency list can illustrate that the database brings grammatical and phonological information together without independently checking the annotations used to create the list.
Checking rhythm against human judgments
For the evaluation of quantitative rhythm, the authors divide the corpus into groups based on the poets’ years of birth. They randomly select 200 annotated lines per group. Within each group, each author contributes the same amount of material to the sample. The sampling unit is a line, and the basis for grouping is the writer’s birth year. A label such as 1505 - 1771 is consequently a range of author birth years, rather than a range of publication dates for the sampled poems.
Reviewers inspect the short and long syllable sequences and mark lines with errors in spreadsheets. They use the same metrical principles that the authors set out for automatic annotation. The review takes account of vowel length, the type and number of consonants following a short vowel, and the exception for consonant clusters at the start of the next word. An error rate is reported for lines with an incorrect annotation. It is a line-level result, with each checked line treated as a whole.
The manual check also makes a choice about nonmodern spelling. When a phoneme’s length in the source spelling differs from modern spelling, this is accepted as possible evidence of earlier pronunciation or of a poet’s deliberate usage. A difference of that kind does not count as an annotation error. The evaluation also leaves out special metrical rules of Hungarian verse before the mid-19th century. The benchmark is therefore a check on whether the implementation produces the selected kind of reading of the written line.
Quantitative rhythm annotation on sampled ELTE Poetry Corpus lines by author birth period
The middle birth cohort has the lowest line error rate, and the earliest cohort has the highest.
The numbers
| System or setting | line error % |
|---|---|
| 1505 - 1771 | 3.5 |
| 1772 - 1854 (this paper) | 1.5 |
| 1855 - 1909 | 2 |
The combined sample for 1505 - 1909 has a line error rate of 2.33%. Among the separate groups, the rate is 3.5% for 1505 - 1771, 1.5% for 1772 - 1854, and 2% for 1855 - 1909. The middle group has the lowest reported error rate. The ranking is informative about the samples under the stated criteria. The paper gives no basis for identifying birth period itself as a cause of the different rates.
The authors emphasize that the system could handle a consonant written with two characters as a single sound unit. This addressed an implementation problem with a direct effect on the rule for short vowels followed by consonants. They also report that many mistakes came from foreign words, most frequently proper names. That observation locates a recurring source of errors in mapping written forms to the sound properties needed for scansion. The paper does not assign a separate error rate to foreign words and names.
The unit of evaluation matters when interpreting the combined figure. The rate says how frequently sampled lines were marked incorrect. A line with an error may still have other syllables correctly annotated. The reported rate does not quantify how many syllables went wrong within each incorrect line, or which feature of each syllable caused the error. Its natural application is to questions about the reliability of complete line rhythms as represented in the corpus.
Comparing rhyme rules by stanza regularity
The rhyme experiment starts from a problem of choosing how much resemblance to require. A narrow rule can miss endings that a reader would regard as rhyming. A broad rule can group endings whose similarity is incidental. Either kind of mistake can disrupt the correspondence between stanza schemes within a poem. The authors count a poem as consistent when every stanza is assigned the same pattern. They compare the rules by how many poems meet that condition.
The first rule requires the same vowel in the final syllable, ignoring vowel length, and equal quantities for the two penultimate syllables. It imposes no additional condition that the endpoints both belong to the same broad sound class. The second rule retains those requirements and adds the condition that both final phonemes be vowels or both be consonants. The third retains the penultimate and endpoint-class requirements and also requires that the identity of the final vowels take their length into account.
Each rule produces stanza patterns through the same kind of annotation process. The question is whether its pattern strings recur throughout an individual poem. In the authors’ comparison, the second rule yields the largest count of consistently annotated poems. They use that rule for the corpus. Among the settings tested, the extra endpoint-class condition is associated with a higher regularity count than the first setting, while requiring agreement in final-vowel length yields a lower count than the selected setting.
A comparison of this kind measures a property of a poem’s collection of annotations. A poem can have a recurring assigned pattern even if some of the assignments would be questioned in a manual reading. A poem that deliberately changes its scheme can also receive an inconsistent result under the study’s criterion despite accurate annotation. The result establishes which rule performs best on the count the authors chose. It leaves open the rate of agreement with readers about individual rhymes.
Results produced by the search interface
The paper gives examples of frequency lists built from the annotations. One list groups rhyming nouns by lemma. It includes élet at 2585 occurrences, szem at 2362, világ at 2350, ég at 2099, and kéz at 2002. These are counts of occurrences in the search for rhyming nouns. The query uses the stored rhyme relation, category information that identifies the words as nouns, and the dictionary form that determines how occurrences are grouped.
The use of lemmas is important to the interpretation. A researcher who searched for a single written form would be asking how often that particular form appears in the relevant position. A researcher who groups by lemma asks how frequently the annotated noun, considered across its associated forms, appears in the results. The paper’s example shows the latter use. The rankings belong to that search and its representation of rhyme, rather than to an unfiltered list of frequent words in the collection.
Another list groups alliterating adjective and noun combinations by lemma. The examples are szép szem at 221 occurrences, szép szó at 129, nagy név at 93, kis kéz at 50, and szép szerelem at 30. Each result represents a combination of grammatical roles and a sound relation. The grouping by lemma makes the intended sequence of dictionary forms the item being counted. This is a different unit from the noun alone in the rhyme example, even when a word occurs in both lists.
These examples show the output of joining kinds of information that a reader might otherwise collect separately. The rhyme list depends on the program’s stanza and pair annotations. The alliteration list depends on the way participating words and intervening words are represented in a span, together with the grammatical labels. Both lists reflect what is in the collection and what the annotation procedures recognize. Their counts can be used to locate patterns for literary or linguistic inquiry, while the underlying texts remain available for inspection.
The interface can also return the number of distinct word forms and lemmas in a selected subcorpus. Such a count describes the set of texts returned by an author or other filter. An exported list can preserve either that aggregate information or the individual results from which it was produced. This is the practical sense in which the interface gives access to quantitative observations that would be difficult to collect by reading poems individually.
What the ablations show
The effect of changing the rhyme conditions
The paper gives no formal component ablation of the annotation pipeline. Its closest controlled comparison changes conditions in the rhyme decision, and its other main analysis examines rhythm errors across samples and identifies recurring difficulties with foreign spellings.
The move from the first rhyme rule to the second adds agreement between the categories of the last sounds. Both rules ignore final-vowel length while requiring the same vowel identity and equal penultimate syllable quantities. Under the second rule, an ending that finishes with a vowel and one that finishes with a consonant cannot be linked merely because their relevant vowel and quantity conditions agree. The increase in consistently annotated poems shows that this restriction helps according to the regularity criterion used in the paper.
The move from the second to the third rule tests a different source of leniency. The endpoint-class condition stays in place, and the penultimate quantity condition stays in place. The change is that a length difference between the final vowels now prevents them from counting as the same vowel for the comparison. The resulting rule produces fewer poems with a single repeated stanza scheme than the second rule. In this setup, allowing final vowels of different lengths improves the aggregate consistency score.
The two changes illustrate why the authors compare the rule sets. Both are ways of making the decision stricter, yet they do not have the same effect on the chosen score. The endpoint restriction improves it, and the additional final-vowel restriction reduces it relative to the winning rule. The comparison identifies where added specificity helps the repeated-pattern test. It does not establish how often the additional agreements or exclusions coincide with a reader’s judgment of a specific rhyme.
All the tested settings use penultimate syllable quantity. That condition never varies in the comparison, so the experiment cannot isolate what it contributes. It does reveal a dependency in the workflow. An error in assigning the quantity of a relevant syllable can change whether candidate lines satisfy any of the tested rhyme rules. The rhythm evaluation supplies evidence about the quality of complete line annotations under the chosen rules. It does not trace which rhythm errors actually changed a pair or stanza scheme.
What the rhythm analysis isolates
The rhythm study applies the same program and manual criteria to groups of authors from different birth periods. It checks whether the rules work across samples from the collection’s historical span. Because the authors adjust how lines are sampled and checked within each group, the reported percentages have a clear interpretation as group-specific sample results. The procedure leaves other differences among the groups, such as the words and names present in the sampled lines, as possible contributors to the observed error rates.
The discussion of consonants written with several characters and of foreign names gives a more concrete picture of performance. In the consonant case, correct treatment of a written sequence as a single consonant is necessary for the corresponding rule to work. In the names case, the implementation’s dependence on spelling presents a difficulty when written forms differ from what its Hungarian reading rules can handle. The authors identify these as an implementation success and a recurring source of error, respectively.
The paper does not report a comparison that turns the word-boundary exception off, replaces the spelling-based procedure with a pronunciation dictionary, or changes the treatment of historical spellings. It also presents no controlled comparison of the query performance of the XML formats. The quantitative comparisons tell readers about line annotation under the selected metrical conventions and about relative stanza regularity under different rhyme rules. The file descriptions explain what was changed to make queries easier to express.
Limitations
Limits the authors state
The authors define the manual rhythm check around a limited set of metrical rules. They explicitly exclude special rules used in Hungarian poetry before the mid-19th century. They also accept differences in written phoneme length from modern spelling when checking annotations. Their rationale is that those spellings may preserve older pronunciations or register a choice by the poet. The low line error rate applies to this evaluation convention. It cannot stand in for an assessment of every historical or interpretive scansion of the sampled lines.
They identify foreign words, mainly proper names, as a recurring difficulty. The automatic procedure works from spelling without a pronunciation dictionary. The rules therefore have to extract the information they need from the written form, and the paper records cases in which they fail. A reader interested in a particular line containing a name can consult the actual annotation and the line of verse. The aggregate rate gives no estimate specific to those cases.
The rhyme links have an explicit range and a nearest-match policy. Up to four lines can intervene between the members of a pair, and a word can link forward only to the closest rhyme word. The paper’s example shows that shared rhyme labels can extend over positions for which no direct pair is stored. This matters when a study counts rhyming words or pairs. A count from the links and a count based on all lines that share a rhyme label answer different questions about the same stanza.
The definition of alliteration also limits what the corpus records. It admits an intervening word that starts differently and restricts how designated articles and conjunctions participate. A frequency derived from this layer is conditional on those decisions. A study requiring strictly adjacent alliterating words or using a different account of function words would need to take the span’s position labels and word information into account.
The authors propose extending the rhyme procedure to try other rule sets when a poem receives inconsistent stanza schemes. They also name more authors, more annotation layers, and more query functions as future directions. Those plans identify the scope of the version evaluated in the paper. The reported rhyme result is for a selected rule applied across the collection. The authors do not present a tested procedure that chooses different rules for different poems or stanzas.
The interface addresses a defined range of searches. The authors point to the downloadable XML for researchers who need to make more complex inquiries. That division follows from the resource’s two forms of access. The interface exposes selected combinations of filters and summaries, while the files preserve the information a programmer can use to formulate other questions.
Limits apparent from the study design
The clearest constraint on the rhyme evaluation is that consistency is a substitute measure for annotation quality. It benefits a rule that recovers repeated schemes in poems written with such repetition. It can also reward a rule that repeatedly assigns the same mistaken scheme. Conversely, a poem with a genuine change in form can lower the regularity count even when the assigned schemes are correct. The experiment supports a choice among the tested rules for producing consistency. It supplies no manual accuracy estimate for individual pairs or stanza schemes.
This distinction would also matter for the authors’ proposed retry procedure. Trying alternatives can increase the opportunity to reproduce a pattern across stanzas. A genuine change of rhyme scheme remains possible in the source poem. Without an independent reference, a successful retry would show that the alternative rule found a repeated assignment. It would not establish whether the original variation was an annotation error or a feature of the poem. The paper provides the proposal, and the risk follows from the metric it proposes to improve.
The rhythm sample gives equal representation to authors within each birth-period group. This is useful when the aim is to inspect a range of writers. It may differ from the author distribution obtained by choosing lines at random across the full corpus, where writers with more lines could contribute more heavily. The combined result is therefore a rate for the combined samples under the stated sampling procedure. The paper does not present a separate estimate weighted by the number of lines each author contributes to the corpus.
Birth periods also permit a particular historical reading of the data. The sample describes poets grouped by when they were born. It does not measure change by the date each poem was written or by the dates of individual spellings in the texts. Differences among the reported error rates can suggest material for further examination. They do not identify a historical mechanism for why a line was easier or harder to annotate.
Coverage is a separate question from accuracy. The project contains a substantial collection of canonical Hungarian poetry, assembled from the public-domain author collections available to it through the Hungarian Electronic Library. The query results characterize that collection and any subcorpora selected from it. The coverage described in the paper provides no sampling basis for applying those frequencies to all Hungarian verse, contemporary poetry, or poems outside the collection. Using the results across authors within the corpus is a different inference from generalizing beyond its holdings.
The reported evaluation is also selective among layers. The structural markup was checked against source documents. The quantitative rhythm sequences received sampled manual evaluation, and the rhyme rules were compared automatically. The paper provides no comparable layer-specific accuracy study for the grammatical labels, phonological word descriptions, or alliteration spans. Queries that combine several layers can depend on any of these annotations being correct. The line rhythm error rate does not characterize the end-to-end reliability of such a query.
Finally, the paper explains how the custom XML arrangement makes information easier to retrieve. Moving phonological information onto a word and storing counts on poem or stanza elements reduces the work those particular expressions need to describe. The paper does not report timings that would establish the size of a speed improvement. The demonstrated results concern what the system can retrieve and count. The performance benefit is a design rationale supported by the layout, rather than a measured comparison of execution time.
What came after
The paper closes with plans to expand the author coverage, add annotation layers, extend the search interface, and revisit rhyme assignment when stanza patterns vary within a poem. These are directions the authors proposed. There are no documented later studies to describe here as carrying out those plans or building on the corpus.
Cite
Cite as Péter Horváth, Péter Kundráth, Balázs Indig, Zsófia Fellegi, Eszter Szlávich, Tímea Borbála Bajzát, Zsófia Sárközi-Lindner, Bence Vida, Aslihan Karabulut, Mária Timári and Gábor Palkó. 2022. ELTE Poetry Corpus: A Machine Annotated Database of Canonical Hungarian Poetry. Proceedings of the Thirteenth Language Resources and Evaluation Conference.
@inproceedings{horvath2022elte,
title = {{ELTE Poetry Corpus: A Machine Annotated Database of Canonical Hungarian Poetry}},
author = {Péter Horváth, Péter Kundráth, Balázs Indig, Zsófia Fellegi, Eszter Szlávich, Tímea Borbála Bajzát, Zsófia Sárközi-Lindner, Bence Vida, Aslihan Karabulut, Mária Timári and Gábor Palkó},
booktitle = {Proceedings of the Thirteenth Language Resources and Evaluation Conference},
year = {2022},
url = {https://aclanthology.org/2022.lrec-1.372/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/horvath-2022-elte-poetry-corpus-machine-annotated/