Linguistic Resources and Topic Models for the Analysis of Persian Poems
Paper · 2013 · Ehsaneddin Asgari and Jean-Cédric Chappelier
Summary
A study of vocabulary in Persian poetry has to decide what counts as a word before it can ask which words tend to occur together. A verb may appear in several written forms, an older construction may be absent from a dictionary of modern usage, and the same spelling may support different readings. The demands of verse add another complication. Poets can alter a familiar form or rearrange a construction to preserve the rhythm. Ehsaneddin Asgari and Jean-Cédric Chappelier address these problems in a study of ghazals, poems composed in rhythmic couplets. Their collection comes from Ganjoor and represents 30 poets across a long span of Persian literary history.
The authors build a lexicon of about 1.8 million terms and use it to prepare the poems for analysis. The lexicon combines dictionary material with verb forms generated using modern and historical grammar, including alternatives documented in poetry. It helps the authors recognize words whose parts are separated inconsistently and map inflected forms to their dictionary forms. Where a spelling supports more than one reading, their procedure can retain several possibilities. They then apply topic modeling to the resulting vocabulary. Each topic is a distribution that gives greater weight to some words than to others, and each couplet can draw on several topics. The authors use performance on held-out text to settle on 500 topics as a suitable scale for the collection.
Some of the learned vocabulary patterns appear across many poets, while others are concentrated in particular authors. Reading selected patterns in the order of the poets’ lifetimes brings out both shared tendencies and individual peaks. Vocabulary associated with Joseph and with mirrors sometimes follows a similar course, which the authors interpret through the association of Joseph with beauty. Mirror vocabulary also has a separate peak associated with Bidel Dehlave. In another part of the study, the authors add expert-supplied metre information to the couplets as vocabulary markers. A metre previously associated with grief and complaint turns up in topics whose words suggest suffering, crying, and love expressed through images of burning.
The study shows how an analysis of recurring vocabulary can guide literary interpretation at the scale of a collection. The preparation work and the literary reading serve different purposes. The lexicon makes comparisons across spelling and grammatical variants possible, while the patterns of co-occurrence give the authors material to interpret alongside existing accounts of individual poets and Persian prosody. The chronology follows the poets represented in the collection, and the metre analysis looks for associations with supplied labels. Those choices define what the findings can establish.
Deep dive: Linguistic Resources and Topic Models for the Analysis of Persian Poems
Asgari and Chappelier use a Persian lexicon and topic modeling to trace how vocabulary in ghazals varies across poets, periods, and metres. · about 32 minutes to read
The problem and its context
Why the ghazal is a distinctive unit of study
A ghazal is made up of couplets, each divided into parts called hemistichs. The poem’s metre comes from the regular pattern of heavy and light syllables, which every hemistich in the same ghazal follows. Rhyme and refrain also shape the form. These features matter as soon as a researcher tries to use rules written for ordinary prose. Keeping a syllable in the right place or preserving a rhyme can matter enough for a poet to depart from an expected arrangement of words. A form that looks irregular in isolation may have a clear function in the verse.
The paper describes a tradition in which a ghazal can have an overall subject while individual couplets develop their own ideas. That makes the couplet both a meaningful span of text and a practical unit for examining co-occurrence. Words used together in a couplet may belong to the same image, participate in a contrast, or evoke a shared story. The short span gives such relationships a chance to stand out. A poem-wide list of words would pool the vocabulary of its different couplets and give a different view of how the expressions are related.
The couplet also sets a limit on what nearby words can explain. Its implications can change with the rest of the poem, and the same expression can depend on metaphor, personification, alliteration, paradox, or the coincidence of different meanings in the same written form. The authors approach semantics through recurring word associations. For instance, an association between a word for sweetness and other words for tastes offers one kind of evidence about its use. An association between that same written word and names from a story offers another. A literary reading can ask why a poet might want both possibilities to be present.
Metre provides a related line of inquiry. The paper cites earlier work describing about 300 metres in Persian poetry, of which 270 are rare, with the bulk of poems drawing on 30 metres. The distribution matters because the authors are studying a collection that contains established metrical patterns recurring across many texts. They also cite a study by Vahidian Kamyar that assigns characteristic feelings to particular metres. An analysis of the vocabulary accompanying those metres gives a way to examine a literary account of rhythm and emotion using the words poets use alongside the rhythms.
What existing resources could contribute
The authors needed a way to recognize vocabulary spanning modern and historical Persian. They report that the electronic lexica they considered were largely oriented toward newspaper text. A resource derived from that material could help with common Persian forms, but its coverage of older vocabulary and forms particular to verse was uncertain. The paper cites the morphology resource of Sagot and Walther as a point of comparison for the size of the lexicon, alongside several resources used directly to construct it.
Different sources supplied different parts of the solution. Dadegan supplied verb roots. Accounts of modern and historical grammar supplied patterns for forming verbs, and work on constructions used by poets helped identify variations that matter in verse. The Dehkhoda Online Dictionary provided broad dictionary coverage. Virastyar supplied some newer borrowings absent from Dehkhoda. Even with that combination, the project still had to decide how a word on the page would be matched to the material in the lexicon. A dictionary entry could be present while a difference in spacing or character encoding kept the text from matching it.
Existing software covered some of the preparation tasks. Lucene already included Persian and Arabic character normalizers, which the authors used together because each handled a different part of the variation they encountered. The available PerStem program offered a way to reduce Persian words to stems. The authors found that it could stop too early when a string at the end of a word admitted competing analyses. Their response was to construct an affix inventory and a stripping procedure suited to the forms they encountered, then consult the lexicon to retrieve possible dictionary forms. The paper distinguishes stemming, which can work through relatively simple rules for removing material, from lemmatization, which uses linguistic and lexical information to recover a dictionary form.
For the analysis itself, the study draws on prior work in probabilistic topic modeling, including Buntine’s research, Blei’s overview, and Latent Dirichlet Allocation, or LDA. The practical attraction is that a recurring vocabulary pattern can be inferred without asking a reader to classify every couplet in advance. A researcher can then use those inferred patterns to compare groups of text. In this study the groups of interest come from poet identities, the placement of poets in time, and the expert metre labels attached to much of the collection.
These resources come with different assumptions about the material they describe. A grammar may account for a construction without telling a program how a transcriber spaced it. A dictionary may record both readings of a spelling without indicating which a poet intended. A work of prosody associates rhythm with a literary effect, while the computational analysis observes the terms that occur with an annotated rhythm. The authors’ task was to connect those kinds of evidence well enough to investigate recurring patterns in the poems.
The method, step by step
From lines of verse to observations of vocabulary
The procedure begins with the text of the ghazals and their divisions into couplets. Each hemistich provides a short span within which the authors can check whether word boundaries look plausible. The couplet is the unit used to examine combinations of vocabulary and the unit to which the experiment with metre attaches its marker. The data also retain information about the poet, so a pattern learned from the words can be examined across the writers represented in the collection.
Word boundaries need attention before the statistical analysis. A full space can separate words, but it can also appear where the parts of a verb belong together. A half-space, which changes whether adjacent Persian letters join, can be written inconsistently or omitted. A lexicon is useful here because the authors can ask whether consecutive pieces that look separate in the transcription match a single known form. They can also ask whether several written variants reduce to the same underlying item. These decisions determine the observations from which LDA estimates which terms tend to occur together.
From Ganjoor ghazals to topic comparisons
The steps in order.
The last step covers analyses with different inputs. Poet and lifetime information is used to inspect learned patterns. In the metre experiment, the authors fit LDA again on couplets whose vocabulary has been augmented with metre markers. The markers have to enter before estimation so that a marker can acquire weight within a topic alongside the actual words.
Build a lexicon that can recognize historical and poetic forms
The verb lexicon begins with 4,162 infinitives from Dadegan. The authors use their associated verb roots and generate forms according to Persian grammars. In the system described in the paper, a verb generally has a past and a present root. A conjugated form uses the appropriate root and can add a sequence of elements such as prefixes and attached pronouns. The authors enter the generated forms into the lexicon with their corresponding lemmas, so that recognizing a form in the poem gives access to its underlying lexical identity.
The main complication is that the pieces of a verb can interact where they join. The authors illustrate the problem with ârâstan, which means to decorate or attire. Its present root is ârâ. The prefix be supplies the relevant imperative construction, but the actual form inserts a y sound at the join. The resulting byârâ shows the kind of form a generator would miss if it simply placed the prefix next to the root. The paper calls such intervening sounds mediators.
Written identity between two roots can make a rule based on spelling unreliable. The authors compare the present root ju of jostan, to seek, with jav, the present root of javidan, to chew. The roots coincide in Persian writing, but their final letters are pronounced differently. Attaching the ending for the example with the meaning I seek yields juyam, with a mediator. The form for I chew is javam, where the sound already represented by the letter supplies the transition. To generate both correctly, the authors inspect the affected verbs individually and include exceptions. The distinction depends on what the root represents, which may be information that the written form alone cannot supply.
Poets can depart from the ordinary pattern of joining a prefix or ending to a root. The paper describes a form used by F. Araqi for you are not coming that omits the expected mediator. The shortened form remains intelligible and fits the metre. Hafez supplies an example involving order. In a phrase about giving up one’s spirit, the nominal part jân would ordinarily occur before the verbal elements in the future construction described by the authors. Hafez puts it after them. This example expands the coverage problem from the inventory of spellings to the arrangement of a compound verb. The authors include the poetic alternatives documented in the grammatical study on which they draw.
Historical grammar adds systematic variants. The authors give hami as an older continuity prefix and mi as the corresponding modern form. Including the historical pattern allows the procedure to recognize forms that a generator built solely from contemporary rules would leave out. The authors consult an account of historical Persian grammar to choose constructions relevant to the period represented in the collection.
The result of verb generation is about 1.6 million distinct conjugated verb forms. The validation described in the paper checks all generated conjugations for randomly selected infinitives. A native Persian graduate student with training in literature and linguistics carried out this work, which took about one hundred hours. The check concerns the forms produced by the rules for those infinitives. Each infinitive can yield a family of forms, so checking that family can reveal whether a rule behaves differently in related constructions.
The authors assemble the rest of the vocabulary from Dehkhoda and Virastyar. Dehkhoda Online supplies 343,466 entries corresponding to 234,425 distinct surface forms. A word form is the form that can appear in text, and several entries can correspond to the same visible form. Virastyar adds newer imported vocabulary that the authors found missing from Dehkhoda. Their combined collection for words other than the separately generated verbs has 246,850 distinct surface forms. For each form, the authors keep its possible lemmas. The roughly 1.8 million terms cited for the overall lexicon refer to the larger resource that incorporates the verb work.
Split the hemistichs provisionally
Tokenization assigns boundaries to the units that the rest of the procedure will process. For a straightforward hemistich, spaces and punctuation can provide the initial boundaries. The problem is that visually similar text can contain a full space, a half-space, or no separator inside a unit. A half-space prevents letters on either side from joining in display. Its orthographic function makes it potentially informative, especially in compounds. The inconsistent use of that character in the Ganjoor collection weakens its value as a general boundary rule.
The continuous form mi-goft, meaning was saying, exemplifies the variation. Its prefix and main verbal part may be separated by a half-space, separated by a full space, or joined in writing. A program that always splits at visible spaces will sometimes put the prefix into a separate token. A program that always preserves or joins the sequence has to deal with the fact that mi, the prefix, can coincide in writing with mey, meaning wine. Wine is common enough in this poetry for that ambiguity to matter to a study of themes.
The authors use a heuristic based on the part that follows the apparent prefix. A following form beginning with a recognized verb root gives evidence for a continuous verb. They require the root to be longer than 2 letters. Their example of heavenly wine shows the reason for the restriction. The word after mey starts with â, which is itself a verb root, so a rule that accepted any root prefix could group the expression as a verb even though it contains a noun and a modifier. The length condition gives more weight to a longer lexical match.
Some cases remain genuinely ambiguous. The same written sequence can be read as mi-âlud, was polluting, or as mey-âlud, polluted with wine. The authors point out that a reader may have to turn to the context or metre to decide. Recording familiar compounds with mey in the lexicon makes it possible to recognize that a compound reading exists and carry it forward alongside a verbal reading. The perfect form rafteh-am, have gone, supplies another kind of spacing variation. It has no need for the wine interpretation, yet its parts can still be transcribed with any of the same separator choices.
The initial boundary pass uses a rough expectation drawn from metre. The authors consider a hemistich likely to contain between four and ten tokens. If splitting on full spaces gives fewer than four, they try using half-spaces as separators as well. They describe passing along the resulting segmentation when the count exceeds four, and flagging a hemistich for manual inspection if it still falls below four. The expectation acts as a way to detect unusual minimum counts in a short metrical span. It leaves the identification of lexical compounds and verbs to later checks.
Normalize characters, then look for units spanning tokens
The next stage reduces written variation that would interfere with matching tokens to the lexicon. The authors put the basic tokenization first because the placement of half-spaces affects the written form of some letters. Once they have provisional units, they apply the Arabic and Persian normalizers in Lucene. The Persian component covers much of the necessary variation, while the Arabic one handles alternative forms of alef that the Persian component leaves unresolved.
They supplement those normalizers with rules covering variant forms of vâv and ye, pronunciation marks that writers may omit, and signs associated with Arabic spelling. One example concerns different ways of writing mo’men, believer, where the vâv can appear with an added sign. Another concerns forms of ye used in âyine, mirror. The same lexical item can appear in the corpus with each variant. Normalization makes it possible for those appearances to count toward the same form. The authors also remove some optional hamze marks and characters used for calligraphic ornamentation. These rules address visual and orthographic variation at the level of an already provisionally segmented token.
With the characters normalized, the authors return to word boundaries using the lexicon. They look at adjacent sequences of tokens and test whether their combination corresponds to a known form. The sequences include bigrams, which span two tokens, trigrams, which span three, and 4-grams, which span four. This is an application of an n-gram search to boundary refinement. It is useful because a single pass over whitespace can leave pieces of a compound or verb scattered across several preliminary units.
Lexicon membership establishes that a sequence has a plausible analysis as a unit. In a particular hemistich the same sequence might also consist of independent words. The paper’s examples of verbal prefixes and compounds show why the authors make room for alternatives. The resulting count of valid sequences is therefore a count of matches to known forms. The method can recover boundaries that the initial split would miss, with full contextual interpretation left open in the cases where several matches make sense.
Retrieve lemmas and filter the vocabulary
Once a token has been normalized, the next task is to group related inflected or affixed forms. The authors collect plural markers, attached pronouns, prefixes, and suffixes, enriching their inventory with descriptions of Persian affixes. Their procedure removes material iteratively until it reaches a simple word in the lexicon or a form of less than 4 letters. They report finding it preferable to try prefix removal before suffix removal, with the order among competing suffixes especially important.
The example ketâbhâyešân, their books, shows how the order affects the result. Its base is ketâb, book. The remaining material includes the plural marker hâ, a linking ye, and the attached pronoun šan. If a procedure starts by removing a shorter string that happens to be a valid ending elsewhere, the leftover characters can obscure the rest of the original affix sequence. The procedure can then leave part of the inflection attached. To account for such overlaps, the authors include combinations of affixes in their inventory and remove the longest applicable candidate at each step. After removal, they check the resulting form against the lexicon and retrieve its associated lemmas on a match.
Tokens that still failed to match were examined manually. The authors found that many had become joined to conjunctions because spaces were missing or misplaced. They modified the affix inventory for this subset and applied their procedure again. The correction links two stages that can otherwise appear independent. An apparent failure to recover a dictionary form may have originated in an earlier boundary decision, so a residual vocabulary check can expose an error in tokenization.
Even with a suitable boundary, a written token can yield several lemmas. The paper gives a spelling that admits nešasti, you sat, and našosti, you did not wash. Both possible lemmas are passed to the next stage. The procedure records a real distinction between lexical candidates. Which candidate is active in a particular passage remains a contextual question, while the candidate list guards against losing a possible reading during preprocessing.
Finally, the authors filter frequent items that they judge of little value on their own for this analysis. They sort terms by frequency in the collection and manually review the common ones. That produces a list adapted to the poems, which display both usage particular to verse and typographical patterns in the source collection. They combine it with a manually selected part of an existing Persian stop-word list. This stage determines which recognized forms remain available as evidence of a topic. A frequent grammatical item and a frequent poetic image can both rank high in raw counts, which is why the authors review the candidates in light of the corpus.
Estimate topics and relate them to the collection
The authors use LDA through Mallet, version 2.0.7. In their account of the method, a topic assigns probabilities to terms in the vocabulary. A couplet in turn has a distribution over topics. A topic that assigns high probabilities to several words can account for their repeated appearance together across the collection. A couplet can receive most of its weight from a small group of topics and still contain words associated with another pattern. Learning is unsupervised in the sense that the study does not have a person assign topic names to the couplets before fitting. The researchers interpret learned distributions by examining the words with the greatest probability.
The word distributions and the couplet distributions describe different things. A word distribution is a way to look inside a topic and ask what kinds of expressions it brings together. A couplet distribution is a way to look at a brief passage and ask how strongly each of the learned patterns is represented in it. The paper illustrates both views for a particular couplet. It also shows one possible assignment of topics to the individual words in that passage. The assignment illustrates how the mixture can account for the text, while the distribution describes the relative prominence of the topics for the passage as a whole.
The authors choose a topic count using held-out log-likelihood, a score based on how much probability a fitted system gives to text kept aside for validation. They use 1x10-fold cross validation and run each fold for 2000 iterations, beginning hyper-parameter optimization after 200 iterations. The hyper-parameters govern the distributions used in fitting. The paper checks the progress of the learning score over iterations and examines the held-out score as the number of topics changes. It selects 500 topics for the main analysis as an appropriate scale in the range where the validation curve levels out.
To inspect poet associations, the paper displays the following quantity.
P(topic, poet)
Here P denotes probability, and its parenthesized arguments refer to a learned topic and the identity of a poet. The comma indicates that the probability is joint. An entry in the display represents the association of a particular topic with a particular poet as joint probability mass. The plot uses darker shades for larger values. The authors reorder the rows and columns to make concentrations easier to see. They discuss these concentrations in terms of how strongly particular poets are associated with particular topics. To inspect selected topics over time, they plot their proportions against the midpoints of the poets’ lifetimes.
The metre experiment adds a new type of observation. The authors give each of the 30 supplied metres a distinct artificial term and add the appropriate term once to each couplet with that assigned metre. The artificial term identifies the metre by its occurrence. Its spelling carries no description of rhythm or emotion, and it supplies no information about which syllables are heavy or light. A new fit can assign high probability to a metre term within a topic when the marker accompanies a recurring vocabulary pattern. The authors inspect the words in such topics and compare their readings with an existing description of the feeling associated with the metre.
Experiments and results
The corpus and the role of the comparisons
The Ganjoor collection contains 17, 939 ghazals and about 170, 000 couplets by 30 poets. The authors identify the endpoints of its historical span as Hakim Sanai (1080) and Rahi Moayyeri (1968). Most of the poems have metre information determined by experts. The study preserves the identity of the poet and the division into couplets while preparing the lexical material. Those distinctions matter because the fit operates on short passages, the poet analysis aggregates associations with writers, and the metre experiment attaches metadata from the poem to its couplets.
The paper uses different evidence at different stages. Lexicon size and the counts of candidate forms describe the resources and preparation. Held-out log-likelihood guides the choice of topic count. Ranked words and plots of topic proportions provide the evidence for the literary analysis. PerStem is discussed as a preprocessing alternative through an example of a failure, while the prior description of the emotional character of a metre provides a literary comparison for the metre experiment. There is no common test score on which all these comparisons can be ranked.
The comparison below uses a count that is available for both the source dictionary and the enriched resource. Its scope is the dictionary material for words apart from the separately generated verb inventory.
Distinct surface forms in Dehkhoda Online and the combined non-verb lexicon
Adding the Virastyar material expands the inventory of distinct written forms beyond Dehkhoda Online alone.
The numbers
| System or setting | distinct surface forms |
|---|---|
| Dehkhoda Online | 234,425 |
| Combined non-verb lexicon (this paper) | 246,850 |
For the broader lexical resource the paper also gives a scale comparison with Sagot and Walther’s morphological lexicon, reported at about 600k terms. The authors’ overall figure of about 1.8 million terms includes their generated conjugations. These are inventory figures. Their relevance to the experiment is that the proposed procedure can look up a wide range of verb, dictionary, and poetic forms. How frequently an analysis selects the right form in a poem would require a separate measure.
Basic tokenization led to manual fixes for about 40 out of 340,000 hemistichs. This count reflects the cases that triggered the authors’ manual procedure. After normalization, the authors considered sequences in a stream of 2,876,929 tokens and found 330,644 valid bigrams, 12,973 trigrams, and 386 4-grams by consulting the lexicon. The counts show that the dictionary can supply possible readings for sequences extending beyond the provisional token boundaries. They describe the opportunities for refinement and give a sense of how much more frequently the check found shorter combinations than longer ones.
How the authors chose the scale of the analysis
The fitting check follows the learning score against the number of iterations. In the paper’s plot, optimization of the hyper-parameters begins after iteration 200, and the score settles around iteration 600. Each run in the cross-validation procedure is allowed 2000 iterations. The authors report that the displayed standard-deviation curves are visually indistinguishable from the average in the learning plot. For their purpose, the plot supports treating the run length as sufficient to reach the stable part of the learning trace.
The comparison across topic counts asks how the system scores on held-out text. The paper describes the log-likelihood as decreasing and then stabilizing around 400/500 topics. The authors take 500 as a suitable order of magnitude. This is a choice within a range supported by the shape of the validation curve. The paper names the region in which the curve levels off and shows the variability in its figure. It does not tabulate individual scores for the configurations in that comparison.
The literary analysis gives a complementary view of what the chosen granularity produces. The paper presents the 10 most probable terms for selected topics among the 500. Such a list can suggest what a cluster has picked up and whether its most prominent terms form a recognizable association. It is an examination of the learned vocabulary in addition to the validation procedure. A reader can follow the authors’ interpretation of a topic even without a hand-labeled set of passages against which to score it.
A shared spelling in different lexical company
The discussion of širin shows how the same spelling can participate in different patterns. Topic 413 includes the form among words connected with taste. Its other prominent terms include sugar, honey, sweetness, sourness, bitterness, and poison. Mouth and palate help situate the pattern in the experience of tasting. The contrast among the terms matters as much as their similarity. Bitter and sweet expressions can help define the same cluster of language because they repeatedly occur within related descriptions.
Topic 337 also gives širin high weight, but its prominent vocabulary includes Farhad, Khosrow, mountain, and axe. These terms point the authors towards the story of Shirin and the figures connected with her. The distinction is visible in the company the written form keeps. The vocabulary around a taste adjective supports one reading, while names and objects tied to the romance support another. A representation with a single profile for širin would collapse these two patterns into the same description of its use.
The examples also allow for an overlap with literary purpose. Sugar occurs among the prominent terms of both topics. The authors suggest that a poet may use the spelling to invoke sweetness and Shirin together, which would give associated vocabulary a place in both kinds of passage. Topic overlap supplies a way to notice such a possibility. A reading of a particular poem would still have to account for the passage in which the word appears.
The paper includes another topic, 290, with candle, butterfly, light, burning, fire, and flame among its prominent terms. The set points to a recurring family of images, with words for objects, actions, and visible effects appearing in the same distribution. Its presence gives an example of what the procedure can surface before comparisons across authors or metres. The vocabulary can coherently call up an image even where the topic contains terms whose connection requires familiarity with how that image is used.
Patterns across poets and lifetimes
The plot of poet and topic probabilities contains concentrations that the authors interpret as evidence of strong associations between some poets and some topics. After the axes are reordered, these concentrations appear as dark areas along a diagonal. The reordering puts related entries near one another for visual inspection. Other topics show dark vertical bands because they occur across many poets. These bands give the analysis a view of vocabulary patterns shared across the collection alongside patterns concentrated in individual writers.
The closer look at selected topics arranges the 30 poets by the midpoint of their lifetimes and traces the proportions of four topics along this sequence. The authors discuss the curves for Joseph and Mirror together. Their literary explanation is that Joseph represents beauty in Persian literature and a mirror reveals beauty. The overlap of the curves is consistent with that association. At the same time, a separate peak in mirror vocabulary around 1700 A.D. corresponds to Bidel Dehlave. The authors connect this feature to the prominence of mirrors in his poems, which earlier literary work had already noted.
A second pair of curves concerns Praying and Drinking. In the paper’s account, references to drinking in Persian mystical writing can express a grace received from heaven. The authors identify the interval between 1300 and 1400 AD as the main era of that literature and point out a similarity in the trajectories of the topics during that period. They also describe a peak in drinking vocabulary associated with Awhadi Maraghai. In their reading, the peak reflects how much he uses expressions related to drinking. The separate peak shows how the prominence of a word group in an individual poet can appear alongside a pattern shared with another topic over part of the sequence.
These displays move from a collection-wide view to examples in which a specific writer or literary association can be named. The joint probability plot shows where the concentration lies. The lifetime plot and the vocabulary inside the topics give the authors evidence for interpreting particular concentrations. The resulting observations concern the poets in Ganjoor and the distribution of the analyzed text among them.
Vocabulary accompanying a metre associated with sadness
For the fit with added metre markers, the paper focuses on a metre that Kamyar links with requiem, separation, pain, regret, and complaint. The marker for this metre is a probable term in several topics. The authors present 8 prominent words for each of three examples so that the reader can inspect the themes surrounding the result. The sets give different readings of sadness and its expression, all associated in the analysis with the same metrical label.
Topic 43 is interpreted as Suffering. The associated vocabulary includes suffering and pain, but also comfort, healing, patients, and doctors. The topic captures a situation in which distress and the relief from it belong in the same context. The emotional interpretation is therefore drawn from the group of terms instead of a tally of words with uniformly negative meanings.
Topic 154 is interpreted as Crying. Terms for tears, crying, drops, and trickling sit alongside words for a flood and an eyelash. The cluster includes both an act and the image through which it can be described. In a subject where grief can be expressed through figures of speech, a learned topic may draw attention to the vocabulary of the image as well as to explicit references to crying.
Topic 279 is interpreted as Love and Burn. Love, candle, fire, burned material, and related terms appear together. The authors explain the literary association through the butterfly drawn to a candle, an image in which love reaches the point of destruction in the flame. This gives them a reading of sadness broader than explicit pain or visible tears. The three sets are consistent with Kamyar’s characterization of the metre, through vocabulary that ranges from illness to an image of consuming love.
What the ablations show
The paper reports no formal component ablations, and its evidence about how the procedure behaves comes from topic-count comparisons, preprocessing examples, inspection of learned topics, and a separate fit with metre markers.
What the controlled choice of topic count establishes
Changing the number of topics changes how finely LDA can divide up the co-occurrence patterns of the poems. The authors compare settings by applying the same held-out evaluation procedure as the count changes. In the flatter region of the validation curve, the score offers less reason to favor one nearby count over another. The selected count provides a basis for the literary analysis at a granularity the authors consider reasonable.
The assessment addresses the fit to held-out text under the evaluation used in the paper. The examples involving sweetness and the romance supply a separate kind of evidence, showing that the selected granularity can recover interpretable distinctions in certain cases. The paper does not link those distinctions to a measured improvement over nearby topic counts. It also does not compare how reliably the same themes recur when fitting at different settings. The convergence check addresses an earlier question in the same procedure. It shows where the learning trace settles during fitting and supports the run length used for the comparison.
What examples reveal about the preparation procedure
Several of the linguistic examples isolate the source of a difficulty even though they do not provide aggregate comparisons. The verbs written alike as ju and jav show a case in which an automatic rule based on visible characters would conflate different pronunciations and produce an unnecessary mediator for one verb. By including exceptions for the relevant roots, the generator can represent different behavior for strings that otherwise look identical. The comparison is between the predictions of the simple rule and the accepted forms for the example verbs.
The example of their books exposes a different failure. By removing a short suffix too early, a stemmer can destroy the evidence that would have supported removal of the full ending. The proposed procedure considers longer combinations and can use the lexicon to recover the intended base. The paper reports a shortcoming of PerStem on this kind of structure and motivates the authors’ design with a concrete case. It provides no paired corpus-wide scores for the two procedures or for the same procedure with and without the expanded inventory.
The checks on hemistich length and on the remaining unmatched forms show how the authors guide their manual effort. A hemistich with an implausibly small initial token count gives them a place to inspect spacing. A form that still fails after character normalization and affix removal can reveal an unresolved conjunction boundary. The count of hemistichs requiring a manual fix describes one check in that sequence. The dictionary match counts describe another. Each number reflects the way the system flags or accepts candidates, leaving open how many well-formed-looking outputs are linguistically wrong.
Retaining ambiguous readings is also a procedural choice supported through examples. The spelling shared by was polluting and polluted with wine can depend on context or rhythm, so the lexicon is used to detect the rivalry between the readings. The you sat and you did not wash example shows the same policy at the lemma stage. These cases establish why committing early can discard information. The paper does not compare downstream topic quality when one reading is chosen, all readings are retained, or contextual information is used to choose between them.
What the literary comparisons add
The plot across poets contrasts topics that are pervasive in the collection with topics that have stronger concentrations for particular poets. The curves for Joseph and Mirror then show how an association can be accompanied by a separate peak for an individual writer. Looking at both patterns prevents the broad correlation from absorbing the distinct Bidel Dehlave result. The corresponding discussion of Praying and Drinking gives another example in which overlapping curves coexist with a peak the authors attribute to an individual poet.
Those contrasts come from examining distributions already learned from the collection. The analysis does not alter the corpus to make the shared patterns or individual peaks disappear, and it does not estimate how much of either is attributable to the normalization or dictionary choices. Its contribution is to show which patterns are visible and how the authors relate them to literary knowledge. The best-supported conclusions stay close to what the plots display, such as the relative prominence of a topic at a point in the poet sequence.
The addition of metre markers changes the input in a direct and interpretable way. The unmarked fit can reveal vocabulary patterns from words alone. The marked fit lets an expert label acquire a probability within the same distribution as the words. This makes it possible to find topics in which a metre label is prominent and inspect the language associated with it. Agreement with Kamyar’s description is evidence of a correspondence for the example reported. The study gives no paired measure of the change in topic quality and no test in which metre labels are permuted. The comparison shows what can be read from the augmented fit, with the attribution of any difference to metre itself left unresolved.
Limitations
Limits the authors acknowledge
The authors describe ambiguity as a practical constraint throughout preprocessing. In some cases the visible letters and spacing fail to determine whether a sequence is a verb or a compound. They note that even a reader may need the surrounding text or the metre. Their procedure can retain the alternatives at that point, which is a way of representing uncertainty during preparation. The examples demonstrate the continued need for context when the analysis turns from recurrent vocabulary to an interpretation of an individual line.
The paper also identifies a limitation of the held-out evaluation. The likelihood estimator available in Mallet is described as the biased method presented by Wallach, in contrast with the estimators the paper identifies as preferable from Buntine’s work. Cross-validation gives the authors repeated measurements under the implemented evaluation method. It does not eliminate the estimator’s bias. As a consequence, the reported shape of the topic-count comparison supports a choice within the study’s setup, while its likelihood values would need care in a comparison with results evaluated differently.
The authors frame the investigation around word correlations and present the topics through examples. Their own account of the ghazal points out that a couplet can take on a different significance in light of the rest of the poem. This matters for the examples of Shirin, drinking, and the candle image. Recognizing a relevant group of words provides a starting point for such a reading. The contribution of the whole ghazal remains a separate source of evidence.
Limits that follow from the setup
The dataset is a collection of ghazals by the poets selected from Ganjoor. The paper gives the historical endpoints and the collection totals but does not test whether the same topic patterns recur in another collection or poetic form. Its chronology uses the midpoint of each poet’s lifetime. A point on the resulting curve therefore places an author’s contribution, without dating the composition of the individual ghazals represented by it. A peak can reflect a writer’s vocabulary or the makeup of the collection. The plot by itself cannot distinguish these possibilities from a general historical change.
The joint poet–topic display and the lifetime curves also answer different questions. A joint probability can be influenced by the share of material associated with a poet as well as by the prevalence of the topic in that poet’s material. The study illustrates associations visually, including a reordered heat map and selected trajectories. It does not report a null comparison or an uncertainty analysis for the literary conclusions drawn from those displays. The reordering makes the stronger concentrations easier to inspect, while a claim about the reliability or magnitude of poet-specific associations would require further evidence.
The lexicon’s size and the manual validation of generated verbs provide evidence about coverage and construction effort. They do not give the proportion of tokens with the right boundaries or lemmas in the poetry. A generated form can be valid and still be an unlikely reading of a particular passage. A lexicon match spanning consecutive tokens can represent a valid compound somewhere else. The paper describes passing along multiple lemmas, but gives limited detail about how those alternatives are weighted or represented during estimation. That missing detail matters for understanding how a single ambiguous spelling contributes to topic probabilities.
The corpus-specific filtering is another part of the design that can influence what the analysis reveals. Reviewing frequent words by hand can remove transcription artifacts or common items that offer little evidence individually. It can also change which terms are available to express a theme. Because the paper gives no comparison with alternative filtering policies, its topic readings are best understood in relation to the authors’ prepared vocabulary. The same qualification applies to the size of the lexicon. More recognized forms create opportunities for better matching, while an accurate contextual analysis remains a separate criterion.
The metre procedure uses available expert identifications. The marker does not encode the syllabic sequence and the experiment does not infer metre from previously unmarked poetry. The focus on a metre associated with sadness shows that the annotated rhythm can share a topic with relevant vocabulary. The paper gives no measure of how broadly Kamyar’s proposed correspondences hold across the metre inventory. It also gives no analysis separating the influence of metre from the influence of poet or subject. A preference for a particular metre may accompany a poet’s preference for certain images or subjects, and the procedure can capture that co-occurrence without establishing a direction of influence.
Finally, the names of the topics are interpretations of their influential words. The Suffering topic includes comfort and healing, and the Love and Burn topic has to be read through literary conventions for the connection to sadness to be apparent. The authors make these readings inspectable by listing the words and explaining the associations. The paper reports no independent agreement measure for the topic labels. They are concise accounts of the vocabulary patterns that the authors found, with the listings allowing readers to assess the readings for themselves.
What came after
A tool for semantic search and a system that recommends poems are the two avenues the authors suggest exploring in future work. These plans would put the same representation of the poems to a different use. The study compares groups of couplets and traces vocabulary associations through the collection. A search or recommendation system would use those associations to help a reader find individual poems. The prospective uses are stated in the conclusion, without implementations or evaluations reported there.
A semantic search tool would raise the question of how to use related vocabulary when a reader’s query differs from the words used in a ghazal. A recommender would raise a closely related question about how to compare poems that share an image or theme but express it differently. The lexicon and topic distributions supply ingredients for those applications. The paper leaves the retrieval and recommendation procedures open, and no subsequent study of either application is documented.
Cite
Cite as Ehsaneddin Asgari and Jean-Cédric Chappelier. 2013. Linguistic Resources and Topic Models for the Analysis of Persian Poems. Proceedings of the Workshop on Computational Linguistics for Literature.
@inproceedings{asgari2013linguistic,
title = {{Linguistic Resources and Topic Models for the Analysis of Persian Poems}},
author = {Ehsaneddin Asgari and Jean-Cédric Chappelier},
booktitle = {Proceedings of the Workshop on Computational Linguistics for Literature},
year = {2013},
url = {https://aclanthology.org/W13-1404/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/asgari-2013-linguistic-resources-topic-models-analysis/