Elamur Research

Building and Evaluating a Distributional Memory for Croatian

Paper · 2013 · Jan Šnajder, Sebastian Padó and Željko Agić

Summary

Words that mean similar things frequently take part in similar grammatical relationships. A verb may act on the same kinds of objects as another verb, or two nouns may regularly occur as the subjects of the same actions. A program can look for these patterns in a large collection of text. For Croatian, where grammatically related words can be far apart, counting nearby words can miss some of that evidence. The authors build DM.HR, a freely available resource that records which Croatian words occur in particular grammatical relationships and how strongly they are associated. This is an approach to distributional semantics.

The source is hrWaC, a Croatian web corpus. The authors filter the text, identify grammatical properties and dictionary forms, and analyze how words are connected within each sentence. From these analyses they extract records containing a word, a grammatical link, and another word. A link can be a general category such as object, or it can retain a specific preposition or verb. The authors weight the records using corpus frequencies and store the relationships in both directions, with separate labels for the reverse links. The resulting resource contains 2.3M lemmas. Its organization allows the same store of relationships to be arranged for different tasks, including comparisons between individual words and comparisons between word pairs.

The pilot evaluation asks the system to pick a synonym from a set of candidates. Each part of speech has 1000 questions drawn from a Croatian dictionary-derived dataset. DM.HR achieves 70.0% accuracy on nouns, 66.3% on adjectives, and 63.2% on verbs. A comparison system that counts nearby words in the same corpus scores 59.9%, 65.7%, and 55.9%, respectively. The gains over that baseline are statistically significant for nouns and verbs. A stronger comparison system, BOW-LSA, scores 67.2% on nouns, 68.9% on adjectives, and 61.0% on verbs. Its differences from DM.HR are statistically inconclusive in all three groups. Coverage is close to complete across the systems.

The authors also check how faithfully their processing pipeline recovers the relationships that DM.HR stores. Against tuples derived from manual annotations, automatic extraction achieves an overall F₁ score of 74.6%, with substantial variation across link types. Attributes are recovered especially well, yet adjectives are the category for which the stronger baseline has the highest synonym accuracy. The authors suggest that the range of relationships available to represent a word may matter alongside extraction accuracy. The experiments establish an advantage for the complete Croatian resource over the local-window baseline on nouns and verbs. They leave open which design choices account for those gains and how well the resource serves other semantic tasks.

Deep dive: Building and Evaluating a Distributional Memory for Croatian

How DM.HR uses Croatian grammar to learn word relationships from web text, and how well those relationships help it choose synonyms. · about 33 minutes to read

The problem and its context

What counts as evidence about meaning?

The paper starts from a proposition about lexical semantics. Words that occur in similar contexts tend to have related meanings. This proposition, known as the distributional hypothesis, gives researchers a way to investigate word meaning through observations of usage. A corpus contains many instances of a word and many different surroundings in which it appears. By reducing those instances to a record of recurring contexts, researchers can compare words that never need to appear next to each other. The expectation is that the similarities between their patterns of usage will provide evidence about semantic similarity.

A vector makes this idea operational. It is an ordered set of values, with each position standing for a context feature. In a simple representation, a position can correspond to a particular word that appeared near the target. In a structured representation, a position can identify both the context word and a grammatical relation connecting it to the target. Each target is described using the same set of possible positions, so the similarity between targets can be assessed by comparing their vectors. The paper situates this general practice through the survey From Frequency to Meaning.

The choice of a context feature determines which observations count as evidence. A surface window takes words near the target in the sequence as contexts. This is a practical definition because it can be applied directly to tokenized sentences. Grammatical analysis asks a different question. It can identify a verb’s subject or object through the structure of the sentence even when other material intervenes. It can also distinguish occurrences in which the same context word has different relationships to the target. For a verb, the kinds of words that usually serve as its subjects tell a different story from the kinds of words that usually serve as its objects.

The authors see this distinction as especially relevant for Croatian. They describe it as having free word order and rich inflectional morphology. Flexible word order means the linear distance between grammatically related words can vary. Croatian also presents long-distance dependencies and structures in which dependencies would cross if drawn over the words in sentence order. A fixed window makes the same distance cutoff regardless of those relationships. The dependency approach tries to recover the grammatical connection directly, using dependency parsing.

Inflection raises a separate question about what counts as the same word. Different forms can belong to a single dictionary entry and serve different grammatical purposes in their sentences. Grouping the forms makes it possible to collect their evidence together. Recognizing their grammatical properties helps determine how they are related to other words on a particular occasion. Both jobs matter to the final representation. If a form is assigned to the wrong dictionary entry, the evidence is credited to the wrong word. If the grammatical connection is misidentified, the evidence may be assigned to a different context feature even when the words are correctly recognized.

Using grammatical structure therefore trades a simple rule for a more demanding processing pipeline. A proximity window can be extracted once the words and sentence boundaries are available. A grammatical context requires additional decisions about the roles of the words and how they connect. Those decisions must be reliable across enough text to produce useful estimates. For the authors, obtaining a suitably large, analyzed Croatian corpus is part of the research problem. The paper investigates the creation of the evidence as well as its eventual use in a word comparison.

Earlier work on Croatian and structured contexts

The paper places the work within an existing line of vector-based research on Slavic languages. It points to studies for Bulgarian, Czech, Polish, and Russian. The earlier Croatian studies it discusses had already investigated how to predict word similarity and identify synonyms from corpus evidence. Those studies defined contexts through words rather than syntactic relationships. DM.HR adds a way to investigate whether grammatical descriptions of usage can improve Croatian word comparisons.

One reason to retain syntax is that it lets a system ask a more specific semantic question than general word similarity. The paper points to work on selectional preferences, the tendencies of predicates to occur with particular kinds of arguments. If the question is whether a noun is a plausible object of a verb, evidence from object positions is directly relevant. Evidence from nearby occurrences could include many other kinds of associations. The cited example of this broader use of syntactic evidence is A Flexible, Corpus-Driven Model of Regular and Inverse Selectional Preferences.

A second reason is that the same grammatical observations can support more than one arrangement of the data. The immediate precedent is the English Distributional Memory developed by Baroni and Lenci. The framework starts with relationships between pairs of words and preserves the link as an explicit part of every observation. A synonym task can then look at which linked contexts individual words share. An analogy task can instead look at which links are characteristic of word pairs. These uses organize the common evidence in different ways. The paper adopts this design from Distributional Memory.

The authors also draw on the German Distributional Memory, which they identify as the existing example outside English. Its construction and evaluation through synonym choice offer a precedent for the Croatian study. The transfer still requires decisions about the input corpus, the grammatical analysis, and the inventory of links. An approach that stores syntax has to work with the distinctions its parser can produce and with the constructions the researchers decide to extract. These choices give the Croatian adaptation much of its substance.

The paper distinguishes the simpler DepDM design from the more elaborately lexicalized LexDM and TypeDM designs. DepDM primarily uses dependency categories, makes some distinctions within subject and object relations, and can preserve the identity of a preposition. LexDM retains more lexical material in its links, such as words that occur between the terms being connected. TypeDM adds a weighting procedure that takes lexical variability into account. The authors choose the DepDM variant, as the German work did. They explain the choice in terms of the relative ease of building and computing it, together with the English study’s evidence that the simpler design could often perform comparably to its more elaborate counterpart.

The Croatian project thus combines an established idea about meaning with a practical question about representation. It asks whether grammatical contexts can be extracted at scale from Croatian web text, how those contexts should be recorded, and whether they improve performance on a familiar task. The paper treats the synonym experiment as an initial test of the resulting resource. The choice of a common task makes comparison with earlier Croatian work possible, while the design of the resource preserves information for questions that the test itself never asks.

The method, step by step

From web sentences to grammatical evidence

Imagine collecting evidence about a Croatian verb. In a word-window approach, each occurrence offers a list of nearby words. In DM.HR, an occurrence can instead provide evidence about what the verb takes as an object, which words modify it, or which prepositional relation connects it with another word. Each observation goes into a store alongside other observations of the same kind. After processing the corpus, frequently encountered and strongly associated combinations can receive more weight. The stored relationships then provide the features used to describe a word.

The construction begins with hrWaC. The authors prepare the text before assigning linguistic structure to it, since errors at that stage would affect every later operation. They analyze words and sentences, extract relationships that match specified patterns, count and score the resulting tuples, and add reverse links. For synonym choice, they arrange those weighted tuples so that a row describes one target word.

From Croatian web text to synonym predictions

The steps in order.

From Croatian web text to synonym predictionsStep 1: Filter hrWaC documents and sentences1. Filter hrWaC documents and sentencesStep 2: Tag and lemmatize the remaining words2. Tag and lemmatize the remaining wordsStep 3: Parse sentences for grammatical dependencies3. Parse sentences for grammatical dependenciesStep 4: Extract and count tuples matching syntactic patterns4. Extract and count tuples matching syntactic patternsStep 5: Weight tuples and discard negative scores5. Weight tuples and discard negative scoresStep 6: Add inverse links to the tensor6. Add inverse links to the tensorStep 7: Arrange tuples as vectors for individual words7. Arrange tuples as vectors for individual wordsStep 8: Rank synonym candidates by cosine similarity8. Rank synonym candidates by cosine similarity

Preparing the web corpus

The authors start from hrWaC because they need both a large body of Croatian usage and a source they can process automatically. They describe the starting resource as a 1.2B-token web corpus. Its original preparation already included a conservative procedure for removing boilerplate, the recurring material surrounding the main text of webpages. For that earlier procedure, the hrWaC creators reported 97.9% precision and 70.7% recall. Precision concerns the share of detected cases that the procedure identified correctly. Recall concerns the share of the cases it was intended to find that it actually found. Those figures characterize the earlier boilerplate removal, before the extra filters introduced for DM.HR.

Inspection still found text with spelling or grammatical errors, content in other languages, and material such as code or page formatting. Encoding problems could also disrupt the text. For a system that depends on parsing, these problems matter because its extraction rules will act on the structure assigned by the parser. A malformed sentence can yield a plausible-looking grammatical link that counts as evidence once it is put in the same store as links from ordinary prose.

The first additional filter removes material collected from major discussion forums and blogs. The authors describe that material as often ungrammatical and often written without Croatian diacritics. Excluding those sources removes one third of the data. The remaining text is divided into tokens and sentences using regular-expression-based processing. The authors report 66M sentences after that step. The division into individual units is tokenization.

The next round of filtering considers whole documents. The authors discard documents that fall below a length threshold, contain no diacritics, or contain none of the frequent Croatian words on a specified list. They also screen out documents with a match on a list of words chosen to distinguish Serbian. That particular check acts at the document level because the authors found that Croatian and Serbian were hard to tell apart automatically using individual sentences. The unit at which the filter operates is therefore part of the language identification strategy.

Sentence-level filters address problems that can survive even in a document predominantly written in Croatian. They reject sentences below a length threshold, sentences containing nonstandard symbols, and sentences containing Croatian words written without expected diacritics. Another rule looks for an excessive presence of English or Slovene words drawn from lists. The authors had observed that sentences in those languages could be interspersed with Croatian text. The paper reports 51M sentences and 1.2B tokens for the final filtered corpus. The authors make that version available with a fuller account of the preprocessing.

Identifying word forms and grammatical relations

Once the text is segmented and filtered, the construction needs to determine what each token represents. A lemma is the dictionary form under which related inflected forms can be grouped. In the tuple store, pooling occurrences by lemma lets different forms contribute evidence to the same entry. Identifying each token’s lemma is lemmatization.

The authors also assign morphosyntactic tags. These describe the grammatical category of each token and, in the full analysis, its finer grammatical properties. The simpler version identifies a category such as noun, adjective, or verb through part-of-speech tagging. Dependency analysis adds the grammatical connections between tokens. This is what enables the extractor to treat a verb’s relation with its object as a distinct feature of usage.

The processing tools are HunPos for tagging, the CST lemmatizer for dictionary forms, and MSTParser for syntactic dependencies. The authors choose them based on previous Croatian evaluations as well as availability and licensing. The parser is the system discussed in Multilingual Dependency Analysis. The tools are trained using SETimes.HR, a Croatian collection based on the Croatian portion of the SETimes parallel corpus.

SETimes.HR contains 90K tokens in 4K sentences. Its lemmas and morphosyntactic tags were assigned manually using the MULTEXT-East v4 tagset, with assistance from the Croatian Lemmatization Server. The corpus also underlies work on syntactic analysis for Croatian. These human-assigned descriptions provide examples of the analyses the processing tools need to produce automatically, an application of linguistic annotation. The authors report that the trained Croatian parsing resources are publicly available.

SETimes.HR and hrWaC thus serve different purposes. The annotated corpus is the source of training examples and provides material for checking automatic analyses. The web corpus supplies the large volume of observations needed to characterize individual words. Wikipedia supplies a second test source for the linguistic tools. The authors use it to see how their tools perform away from SETimes.HR, since the eventual target is a web corpus whose text need not resemble the training material.

The fundamental record is an ordered tuple. Its outer positions identify the words, represented by their lemmas, and its middle position identifies the link between them. The extraction patterns determine what the middle position can contain. A pattern can take a parser relation such as an object and use it as a link. It can also use the structure to recover a named preposition or verb and store that word as the link. The difference matters downstream because the link becomes part of the feature that characterizes each target.

The authors call the general grammatical labels unlexicalized links. They use ten patterns of this kind. Several labels correspond to the parser’s main relations. Pred marks predicates, Atr marks attributes, Adv marks adverbs, and Atv marks verbal complements. The remaining examples include objects marked Obj, prepositions marked Prep, and nominal predicates marked Pnom. At this level, observations attributed to the same grammatical relation share a link label regardless of the particular lexical item involved in expressing it.

The subject relation is divided according to whether a verb is transitive or intransitive. These categories distinguish constructions in which the verb takes an object from ones in which it does not. The authors use this distinction to retain evidence about alternations in how a verb’s arguments are realized. They illustrate the motivation with predati, meaning to hand in or hand out, and predati se, meaning to surrender. The addition of the reflexive element in this example is associated with a change in meaning. Distinguishing the subject links gives the resource a way to preserve differing grammatical contexts for a verb that occurs in such uses. The procedure still records observed syntax, so its distinctions depend on which constructions the extractor recognizes.

The unlexicalized Verb link connects subjects and objects related through a non-auxiliary verb. It registers that the nouns participate in that kind of structure and leaves the verb’s identity unspecified. A lexicalized verb link preserves the identity as the middle member. The paper illustrates the latter with država, kupiti, količina, glossed as state, buy, and amount. The participants are connected through a specific action. The general Verb link and the specific kupiti link let the same kind of structure contribute evidence at different levels of detail.

The same distinction applies to prepositions. A general prepositional link describes the type of relationship. A lexicalized one retains the preposition itself. The authors illustrate this with mjesto, na, sunce, corresponding to place, on, and sun. Recording na lets that particular link help define the context. An occurrence under another preposition can occupy another feature, even if the lemmas at either end are the same.

Lexicalization changes which observations are grouped together. A broad relation collects evidence under a common category. A link named for a verb or preposition shares a feature only with occurrences carrying the same lexical link and the same context lemma. The latter can express a more specific resemblance between targets. It can also spread observations across more possible features. DM.HR includes general and lexicalized links in the same resource, leaving the synonym experiment to evaluate the resulting representation as a whole.

Counting and scoring the tuples

The store can be understood as an array with a word axis, a link axis, and another word axis. The name for that arrangement in the paper is a tensor. Each address represents a possible combination of words and link. A numerical value at an address describes the strength of that combination. The general framework expresses the scoring function as follows.

σ : W × L × W → ℝ₊

Here σ is the scoring function. W is the set of words, represented by lemmas in DM.HR, and L is the set of links. The multiplication signs indicate a Cartesian product, meaning that an input selects a member from each of the listed sets in order. The arrow points from the set of inputs to the set of scores. ℝ₊ denotes the non-negative real numbers used for association scores. The two appearances of W correspond to the two word positions, which can have different roles in a tuple.

A raw count says how frequently an extractor found the combination. Common words and links can yield relatively high counts simply because they appear in many tuples. The authors use Local Mutual Information, abbreviated LMI, to assess whether a particular combination occurs more often than expected from the individual frequencies of its members. The weighting compares an observed joint probability with a reference probability based on independence, then scales that comparison by the observed tuple count.

LMI(i, j, k) = f(i, j, k) × log(P(i, j, k) / (P(i) × P(j) × P(k)))

LMI is the Local Mutual Information score. The indices i and k designate the first and second lemmas, and j designates the link. The equals sign gives the definition of the score. The function f returns the observed count of the ordered tuple. P denotes a probability estimated from the tuple counts. P(i, j, k) is the joint probability of seeing the entire tuple. P(i), P(j), and P(k) are the marginal probabilities of seeing the first lemma, the link, and the second lemma in their respective positions. The multiplication signs join factors, and the slash divides the observed joint probability by the product of the marginals. The function log applies a logarithm to that ratio. Parentheses identify the arguments to the functions and group the denominator and the logarithm’s argument.

The probabilities are maximum-likelihood estimates from the observed counts. The joint estimate uses the frequency of the complete tuple. A marginal estimate pools counts across possibilities for the other positions, retaining only the item in the position being considered. The three marginal probabilities are multiplied to describe what would be expected if the choices for those slots were independent. This provides a reference against which the observed frequency can be interpreted.

The frequency factor makes repeated observations count toward the strength of the resulting association. A rare tuple might look unusual relative to its marginal frequencies, but it contributes less through the count factor than a repeatedly observed tuple. The authors remove tuples whose LMI score is negative. The remaining data encode positive association evidence and any zero-scored entries retained by that rule. A missing feature in an eventual word vector can therefore reflect the corpus evidence, the limits of the extractor, or the weighting and filtering process.

After scoring, the authors add an inverse for each retained relationship. An inverse swaps the positions of the words and gives the link a distinct label for the reversed direction. The general operation is as follows.

⟨w₁, l, w₂⟩ → ⟨w₂, l⁻¹, w₁⟩

The angle brackets enclose an ordered tuple, and the commas divide its entries. The symbols w₁ and w₂ are the words in the first and second positions of the original tuple. The letter l denotes the original link, and l⁻¹ denotes its inverse label. The superscript marks a reversal of the link’s direction. The arrow indicates which additional tuple is entered for the original observation.

The practical purpose is to let either endpoint of a grammatical relationship have access to the evidence. A verb can have a feature that identifies a noun in an object relation. The noun can have a feature that identifies the verb in the inverse object relation. The reverse entry comes from the same underlying observation, and its label preserves the difference between the two roles. Without a suitable distinction between directions, features associated with acting as an object and features associated with taking one could become harder to interpret.

The paper reports 2. The resulting DM contains 3M lemmas and 121M links across 165K link types, counting inverse types.HR tensor. It gives an average of 53 links per lemma. For comparison, it reports 796 link types for the English Distributional Memory. It gives 220K link types and 22 links per lemma for the German resource. The authors characterize the Croatian tensor as sparser than the English one and less sparse than the German one. Sparsity here concerns how many of the possible relationships are represented. The number of link types describes the available inventory, while the links per lemma give a sense of how much recorded evidence a typical entry has.

The examples for kupiti, meaning buy, show the different kinds of information that can sit in one lexical entry. In the paper’s list of highly weighted tuples, the verb has an Atv link with moći at an LMI score of 225,107, an Obj link with stan at 19,997, and a po link with cijena at 18,534. These are association scores for specific tuples. The comparison of a verb with another word uses the resulting pattern across features, including which ones are shared. A conspicuous score in the list can be informative about an association without determining the outcome of a synonym question by itself.

Arranging the store for a task

For synonym choice, the paper converts the tensor into a matrix with a row for each word. A column identifies a combination of a link and a context word. The processing is called matricization because it reshapes the three-axis data into rows and columns. The layout for the synonym task is written as follows.

W × LW

W denotes the word inventory and indexes the rows. L is the link inventory. LW denotes the paired link-and-word features that index the columns, with the second W supplying the context words. The multiplication sign separates the two axes of the matrix. The entry at a row and column is the score of the corresponding tuple. A row is consequently the vector describing one word through its linked contexts.

This arrangement makes it possible for two words to resemble each other even if they never occur together. If each occurs in an object relationship with a particular context, both can have weight at the corresponding feature. If their shared contexts occur in different grammatical roles, that evidence falls into different columns. By comparing the rows, the synonym procedure takes both the identity of the context and the relationship into account.

The paper also describes a different arrangement to illustrate how the same store could be used for analogy discovery.

WW × L

WW denotes ordered pairs of words and indexes the rows. L denotes the inventory of links and indexes the columns. The multiplication sign separates the row and column dimensions. One row now describes the relationships observed between a pair of words, and its entries are the scores for those relationships. This layout supports a comparison between word pairs. The authors present it as a use of the framework and evaluate only the layout for individual words.

The test compares a target vector with those of its answer candidates using cosine similarity. Cosine compares the direction of two vectors. A high score reflects similar distributions of weight across shared features. This lets the test favor a candidate whose linked contexts resemble the target’s contexts even when the two words differ in how often they occur. The prediction consists of the candidate or candidates with the highest score. The paper’s evaluation then specifies how to count missing words and ties.

Experiments and results

Checking the processing tools

Before evaluating synonyms, the authors examine the intermediate analyses that supply the tuple evidence. They assess the linguistic tools on 100-sentence test sets from SETimes.HR and Wikipedia. The SETimes.HR test is drawn from the same corpus used to develop the tools. Wikipedia is a separate source, used to indicate how well the tools might transfer to a different domain. Neither score is a direct measurement on hrWaC.

The tagging evaluation distinguishes accuracy on part of speech from accuracy on the entire morphosyntactic description. On SETimes.HR, HunPos reaches 97.1% for part of speech alone and 87.7% for the full description. On Wikipedia, the corresponding accuracies are 94.1% and 81.5%. The CST lemmatizer reaches 97.7% on SETimes.HR and 96.5% on Wikipedia. Lemmatization is the strongest of the reported tool results on both sources.

For the parser, the paper reports labeled attachment score, or LAS. A correct attachment requires selecting the reference head of a word and assigning the reference grammatical label to the link. A correct choice of head with an incorrect relation label can therefore still count as an error. MSTParser reaches 77.5% LAS on SETimes.HR and 68.8% on Wikipedia. The paper presents the tool results as improvements on earlier Croatian processing and uses the cross-domain test to give context for the automatic analysis of web text.

The types of error have different consequences for extraction. A full tagging error can affect the information available to downstream analysis. A lemmatization error changes the identity of an endpoint. A dependency error can alter a link, an endpoint, or whether a pattern matches in the first place. The separate evaluation of extracted tuples addresses what happens after those decisions interact.

Checking the relationships that enter the tensor

The tuple extraction evaluation applies the patterns to automatic analyses of the SETimes.HR test sample and to its reference annotations. By comparing the outputs, the authors can assess whether the processing pipeline recovers the tuples that would be extracted from human-assigned analyses. The comparison uses the same SETimes.HR sample as the tool evaluation. It checks the extraction stage at the level of the stored records.

Precision measures how often the automatically extracted tuples are correct according to that reference. Recall measures how much of the reference set the automatic procedure recovers. F₁ combines precision and recall into one figure. Overall tuple extraction reaches 73.7% precision, 75.5% recall, and 74.6% F₁. These metrics concern the recovery of relationships in annotated sentences. Accuracy on the later task concerns choosing the intended synonym for a word.

The link-specific results vary widely. Atr, for attributes, reaches 85.0% precision and 89.3% recall, giving 87.1% F₁. Pred, for predicates, achieves 81.8% precision and 70.6% recall, giving 75.8% F₁. Obj, the object relation, scores 71.4% precision and 71.7% recall, with 71.5% F₁. The unlexicalized Prep category has 50.0% precision and 28.6% recall, with 36.4% F₁. In that category, a substantial part of the reference material goes unrecovered.

Lexicalized prepositions reach 67.2% precision and 67.9% recall, giving 67.5% F₁. For lexicalized verbs, the scores are 61.6% precision, 73.6% recall, and 67.1% F₁. Those figures also apply to the unlexicalized Verb link. Both forms are built from the same kind of verb construction, with one recording the verb identity and the other leaving it unspecified. The corresponding scores provide an extraction diagnostic. They do not measure how the differences between the resulting features affect synonym selection.

Setting up the synonym comparison

The authors draw their evaluation questions from the Croatian dataset introduced by Karan and colleagues. The source contains more than 11,000 questions produced automatically from a machine-readable dictionary. Each question has a target word and four alternatives, with one intended synonym. The article’s example uses težak in its sense of farmer. The four candidates are poljoprivrednik, meaning farmer, umjetnost, meaning art, radijacija, meaning radiation, and bod, meaning point. The answer in this case is poljoprivrednik.

The researchers select 1000 questions for each of nouns, adjectives, and verbs. They also manually correct some mistakes introduced during the original automatic extraction. Separate evaluation by part of speech makes it possible to ask whether the structured context representation is equally helpful across the three groups. The dataset size and reported results refer to that sample. The larger question collection is the source from which it was drawn.

DM.HR is compared with two approaches based on bags of words, which describe the words present in a context. The authors construct the simpler BOW baseline from the same corpus used for DM.HR. Its context is a ±5-word window that stays within sentence boundaries. Its dimensions comprise the 10,000 most frequent eligible context words, drawn from nouns, adjectives, and verbs. Building this baseline from the same source corpus helps make the context definition the focus of the comparison. The window, feature inventory, and structured representation still differ together.

The other comparison system is BOW-LSA, the stronger synonym detection approach from Karan and colleagues. It uses paragraphs to define contexts and represents words in 500 latent dimensions. The latent dimensions summarize patterns of association in the data, while the simpler window baseline has features corresponding to individual context words. The paper observes that BOW-LSA’s results on this sample differ slightly from the results reported for it in the earlier study. The comparison here uses the questions selected for this evaluation.

How the scores are counted

The first question for a system is whether it covers a test item. The authors count an item as covered when the system represents the target and at least one of the answer words. Complete coverage would mean that every question meets this condition. Coverage does not require every candidate to be represented. It describes participation in the evaluation, while accuracy describes success among questions counted as covered.

When a single candidate has the highest cosine score, the system earns full credit if it is the intended synonym. A tie that includes the correct candidate receives fractional credit. The probability of choosing the right candidate uniformly from a tied set motivates the fraction, so the credit gets smaller as more candidates share the top score. The score can be written as total credited answers divided by the number of covered items.

Accuracy = (A + ½B + ⅓C + ¼D) / N꜀

Accuracy is the average credit per covered question. A is the count of questions with a single correct prediction at the top. B, C, and D count questions where the right answer belongs to a top tie of two, three, and four candidates, respectively. The fractions ½, ⅓, and ¼ are the credits applied to those counts. Juxtaposition of a fraction and a letter denotes multiplication, and the plus signs add the credited counts. The parentheses group the total credit. The slash divides that total by N꜀, the number of covered questions. The equals sign gives the definition.

In the experiment, ties occur when the target has zero similarity with all the answer candidates being compared. The authors attribute this to sparse vectors. A question can therefore meet the coverage rule and still provide little evidence for choosing a candidate. The paper gives 0.25 as the accuracy of random guessing. To assess whether reported differences are statistically significant, the authors calculate 95% confidence intervals using bootstrap resampling. The procedure evaluates how much the estimates can vary when questions are drawn again from the evaluation sample.

Accuracy by part of speech

The most pronounced gain over the local-window baseline occurs on nouns. DM.HR reaches 70.0% accuracy, compared with 59.9% for BOW and 67.2% for BOW-LSA. The improvement over BOW is significant at p < 0.05. The numerical lead over BOW-LSA is statistically inconclusive under the paper’s analysis. The noun results support an advantage over the simpler context-window approach on the covered questions.

Noun synonym choice accuracy on the Croatian evaluation sample

DM.HR leads both comparison systems and has a significant advantage over the window baseline.

Noun synonym choice accuracy on the Croatian evaluation sampleBOW window baseline: 59.9BOW window baseline59.9BOW-LSA: 67.2BOW-LSA67.2DM.HR (this paper): 70.0DM.HR (this paper)70.0
The numbers
System or settingaccuracy %
BOW window baseline59.9
BOW-LSA67.2
DM.HR (this paper)70.0

Verbs show the same ordering. DM.HR scores 63.2%, BOW-LSA scores 61.0%, and the window baseline scores 55.9%. The paper reports a statistically significant difference between DM.HR and BOW at p < 0.05. It does not establish a significant difference between DM.HR and BOW-LSA. The authors also note that verb performance is generally low across the approaches, given the task of recognizing the dictionary synonym.

Verb synonym choice accuracy on the Croatian evaluation sample

DM.HR improves on the window baseline while its lead over BOW-LSA is statistically inconclusive.

Verb synonym choice accuracy on the Croatian evaluation sampleBOW window baseline: 55.9BOW window baseline55.9BOW-LSA: 61.0BOW-LSA61.0DM.HR (this paper): 63.2DM.HR (this paper)63.2
The numbers
System or settingaccuracy %
BOW window baseline55.9
BOW-LSA61.0
DM.HR (this paper)63.2

Adjectives show a different ordering. BOW-LSA scores 68.9%, DM.HR scores 66.3%, and the window baseline scores 65.7%. The paper reports that the advantage of BOW-LSA over DM.HR is statistically inconclusive. It reports significant gains over BOW for nouns and verbs, with no such finding stated for adjectives. The results support examining each part of speech by itself, since the relative advantage of the structured representation varies across them.

Adjective synonym choice accuracy on the Croatian evaluation sample

BOW-LSA has the highest observed adjective score and its difference from DM.HR is statistically inconclusive.

Adjective synonym choice accuracy on the Croatian evaluation sampleBOW window baseline: 65.7BOW window baseline65.7DM.HR: 66.3DM.HR66.3BOW-LSA (this paper): 68.9BOW-LSA (this paper)68.9
The numbers
System or settingaccuracy %
BOW window baseline65.7
DM.HR66.3
BOW-LSA (this paper)68.9

The coverage figures give context to these accuracy comparisons. For DM.HR, coverage is 99.9% for nouns, 99.1% for adjectives, and 100% for verbs. BOW-LSA reaches 100% for each group, which the authors attribute to the filtering of the original dataset. The paper describes coverage across the systems, including BOW, as comparable and nearly complete. Thus the results were obtained on samples where almost all questions qualified for scoring. A missing answer vector or a set of uninformative vectors could still affect particular questions, even at such high coverage.

What the ablations show

The paper reports no ablations that remove or replace individual components of DM.HR, and instead analyzes processing quality across domains, extraction quality across link types, and synonym accuracy across parts of speech and comparison systems.

The same corpus with different definitions of context

The closest comparison for assessing the structured representation is the BOW baseline that the authors build from the same text. The shared source matters because both approaches draw on the usage found in the filtered Croatian web corpus. A result obtained with a different corpus could also reflect differences in what words or constructions happened to be available. Here the comparison holds that source fixed while changing how evidence about context is constructed.

The improvement for nouns and verbs supports the practical value of the complete DM.HR representation on those parts of the test. The adjective scores show that the advantage is sensitive to the category of word being evaluated. The two approaches differ in more than the presence of grammatical labels. The BOW feature inventory is limited to frequent eligible words inside its window. DM.HR uses scored link-and-word features derived from its extraction patterns. The comparison estimates how those complete choices work together, leaving the contribution of each choice undetermined.

BOW-LSA provides another check on the strength of the result. It obtains numerically similar results using paragraph contexts and latent dimensions. On nouns and verbs the point estimates favor DM.HR, while the adjective estimate favors BOW-LSA. The reported significance tests do not resolve those differences. This comparison places DM.HR alongside an established Croatian synonym system and leaves open which questions each handles more successfully. Similar aggregate scores could arise even if the systems answer different questions correctly.

High extraction accuracy and useful features

The extraction evaluation shows that the parser and patterns recover some relationships much more reliably than others. Atr is the strongest of the link categories by F₁, and Pred follows it. The poor recall for unlexicalized Prep identifies a case where many reference tuples fail to enter the automatic store. The differences are relevant to the evidence available to the final vectors, since each link category defines a family of possible features.

The general and lexicalized verb links provide a particularly clear illustration of what the extraction test measures. They have the same precision, recall, and F₁. The two output forms represent different context features, even though each depends on recognizing the same underlying structure. Including lexical identity may divide the extracted evidence differently across the semantic space. That difference can influence how many features words share, an issue that identical extraction scores leave unresolved.

The preposition scores show another reason to read link-level results carefully. The lexicalized preposition patterns have a higher F₁ than the general Prep category. Those categories describe the outputs of their respective extraction patterns. The paper does not report a synonym experiment in which the authors replace general prepositional information with lexicalized information and measure the change. The figures establish how the extractors fare against reference tuples for each category, with any downstream effect left to a separate test.

Why the authors distinguish nouns, adjectives, and verbs

For nouns, the authors point to the range of grammatical relationships in which they occur. A noun may be a head in one construction and a dependent in another, and it can take part in both general and lexicalized links. A noun vector can consequently contain evidence from several kinds of usage. The authors offer that variety as an explanation for the relatively strong noun performance. The study does not isolate individual link families and measure their contribution to noun accuracy.

For adjectives, the authors highlight a different distribution of features. Many adjective occurrences participate in Atr, the relation with the highest extraction score. A large supply of accurately extracted attribute relations can still describe a relatively narrow aspect of a word’s behavior. The authors suggest that relying heavily on a single link category may limit the representation. This would account for the coexistence of strong attribute extraction and a modest adjective synonym result. The evaluation does not measure the effect of adding further adjective-specific relations.

The verb results put the motivation for subject subcategorization in perspective. Distinguishing constructions is intended to preserve evidence about changes in how a verb is used. DM.HR does improve significantly over the plain window baseline on verbs, yet verbs still have the lowest accuracy within DM.HR. The authors take the generally low verb scores across the approaches as reason to investigate how well the representations capture verb meaning. The available comparison establishes a gain for the complete resource without measuring the effect of the transitive and intransitive subject categories independently.

The difference between SETimes.HR and Wikipedia adds a domain dimension to the analysis. The tools score lower on Wikipedia for all the reported measures, and dependency parsing is weaker there than on the SETimes.HR test. The result gives empirical grounds for treating test-corpus extraction quality and web-scale extraction quality as separate questions. The paper provides a reference-based tuple evaluation on SETimes.HR, while Wikipedia contributes measurements of the individual linguistic tools. The two assessments help locate uncertainties at different points in the pipeline.

Limitations

Limits identified by the authors

The authors describe the synonym experiment as preliminary. The underlying framework can arrange the same data for multiple tasks, but the empirical test uses word vectors to answer synonym questions. Other uses discussed in the paper, such as examining the links that characterize word pairs, follow from the structure of the representation. Their effectiveness for Croatian remains outside the evaluation.

The authors identify corpus preprocessing and link selection as priorities for further study. They describe the stripping of problematic web material and the extraction of a defined inventory of grammatical patterns, then evaluate the resource produced by those decisions. There is no reported comparison of the completed system trained with different cleaning settings, or of different link inventories on a range of semantic tasks. The conclusion consequently leaves open how sensitive accuracy is to each decision.

The paper also identifies adjectives and verbs as areas for improvement. The authors suggest that adjective representations may depend too heavily on attribute relations. They interpret the comparatively low verb scores as a sign that the tested representations could capture verb meanings more fully. These interpretations are grounded in the category-level results. Establishing the role of an individual link or construction would require evidence about what changes when it is included or excluded.

A further diagnostic mentioned in the paper is a comparison between the questions BOW-LSA and DM.HR answer correctly. That analysis could reveal whether their similar scores reflect success on the same items or complementary strengths. The reported results are grouped by part of speech. They leave the overlap in individual predictions undetermined, as well as the kinds of questions each approach tends to miss.

Limits that follow from the setup

The evaluation concerns synonym recognition under a particular presentation of the task. An isolated target is matched against a short list of dictionary-derived answer candidates. There is no sentence supplying the intended sense of an ambiguous target. DM.HR also organizes the evidence around lemmas, pooling uses that can differ in meaning. Its grammatical distinctions can retain some evidence about those uses, as the authors intend with subject subcategorization. The evaluation still measures whether a lemma-level representation ranks the benchmark’s intended answer highest. It does not establish how well the resource resolves word meaning in a particular sentence.

The composition of the candidate set affects what a synonym question demands. For the farmer example, the intended answer stands alongside alternatives glossed as art, radiation, and point. Other items could present candidates with more similar distributions. Accuracy summarizes success on the sample of questions the authors use, including any variation in difficulty within it. The study does not report scores broken down by the similarity of distractors, by a word’s frequency, or by the number of senses represented under a lemma.

High coverage has a similarly specific meaning. It confirms that nearly all sampled questions have a represented target and at least one represented candidate. It gives less information about whether every candidate is available or whether the available vectors are sufficiently informative. The zero-similarity ties illustrate the latter issue. The dataset’s original filtering also accounts for BOW-LSA’s complete coverage, so coverage in this comparison cannot be read directly as a measure of the vocabulary a system could handle in unrestricted Croatian text.

The web corpus filters shape the usage that reaches the tensor. Removing major forums and blogs, rejecting text without expected diacritics, and screening for mixed-language material are ways to make automatic processing more tractable. These choices also reduce the representation of some kinds of web usage. An observed association is evidence from the retained and successfully processed text. The paper does not measure how the resulting lexical coverage or synonym performance changes when the excluded varieties are reintroduced.

The evaluation against annotated tuples has a specific scope as well. A reference tuple is one that the chosen extraction patterns produce from human-assigned analyses. This makes the test relevant to the actual construction pipeline. It measures whether the automatic pipeline produces the specified records under those patterns. It leaves questions about the adequacy of the patterns for representing meaning to the semantic evaluation. The test is on SETimes.HR, and the separate tool results on Wikipedia show that performance can vary with source. The overall F₁ for tuples should therefore be read as a test-sample result.

Finally, the numerical ordering of the synonym scores and the uncertainty of the differences answer different questions. DM.HR has the highest reported noun and verb scores in this sample, with significant improvements over the local-window BOW system. The comparisons with BOW-LSA are inconclusive under the reported tests. Those tests do not establish equal performance, and the absolute scores do not establish superiority on another synonym collection. The strongest supported claim is about the complete DM.HR construction on the Croatian questions and comparison systems used in the paper.

What came after

Comparison of Short-Text Sentiment Analysis Methods for Croatian cites the Distributional Memory paper. It concerns a different task involving the same language. The DM.HR experiments ask which candidate is closest in meaning to a target word. The later work compares methods concerned with sentiment in short Croatian texts, a task addressed by research on sentiment and emotion.

The citation establishes that the later study refers to the earlier Croatian resource paper. The role of DM.HR in that comparison is unspecified. In particular, the citation alone does not show that the sentiment study used DM.HR vectors, adopted its extraction patterns, or evaluated a feature derived from its tuples. The later work therefore documents a connection between Croatian lexical semantics and research on a different Croatian text task, while leaving the technical nature of that connection unestablished.

Cite

Cite as Jan Šnajder, Sebastian Padó and Željko Agić. 2013. Building and Evaluating a Distributional Memory for Croatian. Proceedings of the 51st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers).

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{snajder2013building,
  title = {{Building and Evaluating a Distributional Memory for Croatian}},
  author = {Jan Šnajder, Sebastian Padó and Željko Agić},
  booktitle = {Proceedings of the 51st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers)},
  year = {2013},
  url = {https://aclanthology.org/P13-2137/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/snajder-2013-building-evaluating-distributional-memory-croatian/