Elamur Research

Adapting Term Recognition to an Under-Resourced Language: the Case of Irish

Paper · 2019 · John P. McCrae and Adrian Doyle

Summary

To find out what a collection of documents is about, it helps to identify the expressions its writers use for important concepts. A useful result might be a single word, such as ollscoil for university, or a phrase, such as foireann na hollscoile for university staff. An extractor has to find the boundaries of such expressions, recognize when different grammatical forms refer to the same term, and decide which candidates are most relevant to the collection. McCrae and Doyle adapt the Saffron term extraction system to Irish, where the grammatical resources normally used to find candidates are scarce. Their study asks what can be done with the available resources for low-resource languages.

The authors compare two ways of teaching the system to find terms. One learns to assign grammatical categories from small corpora that people have already annotated. A pattern designed for Irish then selects sequences that could be terms. The other finds entries from the Tearma terminology database in Irish Wikipedia and uses those matches to train a tagger that predicts term boundaries directly. This approach can use much more text, though a database match can mark an ordinary word as a term and a missing entry can leave a genuine term unmarked. Both routes can feed candidates into Saffron, where a dictionary and rules bring forms together and several scores determine which terms rise to the top.

The authors build a manually annotated Irish Wikipedia evaluation set covering 11 documents and 5,178 words, with 846 terms marked. On this set, combining the two grammatical corpora gives the best F-measure for words inside a term after its first word, at 0.576. A tagger trained on term-boundary labels derived from those same corpora gives the best F-measure for term beginnings, at 0.590. Tearma alone reaches 0.869 for words outside terms, a score also reached by pooling all the term-boundary training data. The training sources thus give different advantages, and the choice matters especially for expressions that extend beyond their first word.

In the second experiment, discussions about what lies ahead for the National University of Ireland Galway are run through every stage of the extraction and ranking pipeline. The grammatical route brings more multiword expressions into its leading results, including names for university groups and services. The Tearma route produces a list dominated by single words. The authors find plausible terms and errors in both lists, and they assess the rankings qualitatively. The paper shows that either resource can support an Irish term extractor while leaving open how much additional annotation, better dictionary coverage, or changes to candidate selection would improve the final rankings.

Deep dive: Adapting Term Recognition to an Under-Resourced Language: the Case of Irish

McCrae and Doyle compare two ways to recognize Irish terms using small annotated corpora or a terminology list, and show where each works. · about 35 minutes to read

The problem and its context

Finding expressions that matter to a collection

A term extractor starts with documents and returns words or phrases that are likely to name relevant concepts. The word relevant matters. In a collection about a university, a phrase for a member of staff can be useful because it identifies a recognizable role in the discussion. Counting its component words separately would lose the expression for that role. At the same time, the fact that a phrase is grammatical gives little assurance that it tells the reader anything about the subject of the collection. Automatic term recognition, or ATR, therefore involves both finding possible terms and judging their value to the collection. It is a form of information extraction.

The paper adopts a design in which these jobs happen in sequence. An early stage proposes spans of text. A later stage groups equivalent forms and ranks the resulting candidates. A missed span cannot be brought back by excellent ranking scores. Conversely, admitting a doubtful span leaves open the possibility that scoring will place it below more useful candidates. This makes the proposal stage a deliberate tradeoff. A permissive filter gives the ranker more genuine terms to work with, along with more things to discard. A strict filter makes the candidate list easier to handle and can eliminate entire classes of legitimate expressions.

The method also distinguishes the expression found in a sentence from the form a reader should see in a ranked list. An inflected or mutated noun can belong to the same vocabulary entry as a visibly different form. Counting every spelling separately would spread the evidence for a single candidate across several entries. Bringing forms together makes the frequency more representative of the expression’s use. The decision depends on the grammatical structure of the language, which is why transferring the ranking software alone would leave a substantial part of the Irish task unsolved.

Where the English-centered approach needs Irish resources

As the authors describe the field, term recognition already had supervised and unsupervised approaches and established toolkits, among them Jate, ATR4S and Saffron. Much of the work had focused on English. Saffron’s existing pipeline gave the authors a way to organize the adaptation. It also made the dependencies visible. The pipeline needed grammatical categories to propose candidates, base forms to count them consistently, and a large collection of background text for scores that distinguish domain usage from general usage.

The grammar-based approach starts with part-of-speech tagging. A tagger gives each word a category such as noun, adjective or preposition. A filter then accepts certain sequences of categories. The paper distinguishes closed filters, which focus on nouns, from open filters, which admit adjectives as well. In the authors’ example, a noun-only filter can accept language processing, while a filter that admits an adjective can capture the full expression natural language processing. The longer span carries information that the shorter phrase omits, but a filter permissive enough to admit it will also accept more ordinary combinations of nouns and adjectives.

The paper uses precision and recall to describe that tension. Precision asks how much of what the system retrieved was correct. Recall asks how much of what should have been retrieved the system found. Opening up the grammatical filter is expected to help recall because fewer genuine phrases are ruled out in advance. Its cost is that extra candidates can include plausible-looking phrases with little value as terminology. Ranking then becomes important for the practical use of the system, where the reader may see only the highest-scoring entries.

Irish presents challenges at the level of both category assignment and candidate selection. The authors identify a general-language corpus associated with Uí Dhonnchadha and van Genabith and a Twitter corpus associated with Lynn and colleagues. Both offer examples of grammatical categories in use, but they come from different kinds of writing and use different labeling conventions. A label set rich enough to distinguish properties of Irish nouns also differs from the English category inventory Saffron originally used. Even a good Irish tagger would therefore need to be paired with a pattern that makes sense for Irish expressions.

A separate dependency concerns morphology, the ways words change form. The authors point to plural and genitive noun forms whose shapes frequently cannot be inferred reliably from the base word. Irish also has initial mutations, which alter the beginning of a word in grammatical contexts. A candidate list that treats these differences as independent vocabulary entries can contain several versions of the same expression. Irish normalization is therefore part of the extraction design, with its own source of evidence and its own opportunities for error.

From occurrence counts to domain relevance

Earlier ranking methods, as discussed in the paper, used several kinds of evidence. One family starts from frequency but gives less weight to expressions spread broadly across the documents. The reasoning is that a repeatedly occurring expression may be informative if it is concentrated in some documents, whereas a word familiar from nearly every document may provide little discrimination. The paper includes the established measure TF-IDF in this family.

Another family compares a candidate’s use in the collection of interest with its use in a reference corpus. Here the question is whether a term is especially common in the target material given how freely it occurs elsewhere. This is a different comparison from counting how many target documents contain the term. A word can occur broadly across a specialized collection and still be unusual in the background material. The usefulness of the comparison depends on what the reference corpus represents.

Earlier work also looked for evidence in the relationships between candidates. A phrase can contain shorter expressions that have a life of their own in the same domain, and a short expression can recur inside several longer candidates. In this family of scores, termhood means how likely an expression is to function as a piece of terminology, and the way it participates in other terms can provide evidence for that judgment. The paper takes from earlier comparisons the case for combining multiple signals. The Irish adaptation can keep that general scoring strategy while changing how the candidates and their counts are obtained.

That division sets up the paper’s main comparison. The grammatical route asks which spans have an appropriate shape given the linguistic categories assigned to their words. The terminology route asks what span patterns a tagger can learn when known terms have been marked in ordinary text. Both approaches draw on resources that already exist, but the resources express different kinds of knowledge. Grammatical annotations describe words throughout a document. A terminology database records expressions judged useful as terms, leaving the system to work out which occurrences in running text deserve those labels.

The method, step by step

Two routes into the same ranking pipeline

The first route trains a tagger to recognize parts of speech. Once it has assigned a grammatical label to each word, Saffron searches the label sequence for patterns that can represent Irish terms. The second route trains a tagger to predict the boundaries of terms themselves. Its training material comes from looking up terms in Irish Wikipedia and marking their occurrences. The paper also tests a connection between these approaches by converting grammatical annotations into term-boundary labels and using those as training material.

The downstream pipeline works with candidate spans regardless of where they came from. It assigns normalized forms, counts occurrences and applies filters. The surviving candidates receive several rankings, which are combined into an ordered list. A common ranking procedure makes it possible to examine how the choice of candidate extraction carries through to the results a reader sees.

How Saffron extracts and ranks Irish terms

The steps in order.

How Saffron extracts and ranks Irish termsStep 1: Train from grammatical labels or terminology matches1. Train from grammatical labels or terminology matchesStep 2: Find candidate spans in the input text2. Find candidate spans in the input textStep 3: Normalize forms with the dictionary and mutation rules3. Normalize forms with the dictionary and mutation rulesStep 4: Filter candidates and count their occurrences4. Filter candidates and count their occurrencesStep 5: Rank candidates using several statistical measures5. Rank candidates using several statistical measuresStep 6: Combine reciprocal ranks and return leading terms6. Combine reciprocal ranks and return leading terms

Preparing grammatical labels and selecting spans

The Uí Dhonnchadha corpus represents general-language documents. Lynn’s corpus comes from Twitter, with a tweet treated as a document. The paper describes the word totals as broadly comparable, in spite of the difference in document structure. Uí Dhonnchadha’s grammatical annotation is more detailed. To make the sources usable together, the authors take the top-level categories and align the corpora to a shared inventory. The categories relevant to the extraction pattern are noun, adjective, and a category combining determiners and demonstratives. The inventory also keeps categories such as verb, adverb and preposition, whose assignments affect where a candidate can begin or end.

A determiner such as an or na can precede a noun. A demonstrative such as seo or sin follows it. The authors regard this as a grammatical distinction worth keeping, but Lynn’s tagging scheme groups the two, so the joint inventory combines them. Other Twitter-specific categories, including categories for hashtags, are folded into a general category. Harmonization makes it possible to train on both corpora at once and changes what the shared labels can express.

The authors also map verbal nouns to the verb category. A verbal noun names an action in some uses, and a form can have an ordinary noun reading as well. The paper illustrates the distinction with aistriú, which can mean translation as a noun or refer to moving or translating as a verbal noun. Classifying the verbal use as a verb keeps it outside the candidate pattern. The usefulness of the decision depends on the underlying annotations and the tagger preserving the distinction in context.

The paper gives Saffron’s earlier English pattern as a point of comparison. In the following expression, the symbols refer to tags in the English Penn Treebank inventory.

((NN|JJ|NNP|NNS)+ (IN|NN|JJ|NNP|NNS)*)? (NN|CD|NNS)

NN denotes a singular or mass noun, JJ an adjective, NNP a singular proper noun, and NNS a plural noun. IN is the tag used here for a preposition, and CD denotes a cardinal number. Parentheses group alternatives or sequences, and | separates alternatives. + requires at least one instance of the preceding group, * allows that group to repeat or be absent, and ? makes the preceding group optional. Spaces separate successive positions in the tag sequence. The pattern can end in a noun or cardinal number, while a preceding sequence can contain adjectives, proper nouns and internal prepositions.

For Irish, the authors use a different expression.

N((N|A|D)*(N|A)+)?

N stands for a noun, A for an adjective, and D for the combined determiner and demonstrative category. | indicates a choice between categories, and parentheses group the enclosed choices or sequences. * allows any number of repetitions, including absence. + requires at least one repetition. ? makes the entire parenthesized extension of the initial noun optional.

The required initial N means a noun on its own qualifies. If the optional continuation is present, the expression can contain further nouns or adjectives, and it can admit a determiner inside the candidate. The final part of the continuation must consist of nouns or adjectives, so the determiner cannot be its last word. This accommodates the internal article in the Irish name for the Bank of Ireland. A leading article falls outside the pattern, as the authors illustrate with An Fhrainc, the Irish name for France.

Prepositions present a related boundary choice. The paper cites aistriú focal ar fhocal to show that a preposition can genuinely be part of an expression. Its initial trials suggested that allowing prepositions would admit too many false candidates, so the adopted pattern excludes them. The rule gives a clear account of what a grammatical tagger can and cannot pass onward. Greater accuracy in assigning a preposition tag would still leave a phrase containing that tag outside the pattern.

For the experiments that train directly on term boundaries, the authors use the grammatical analyses to prepare a different representation of the corpus. Instead of keeping labels for every grammatical category, the converted versions mark words as beginning a term, continuing one, or falling outside one. This allows the authors to compare a system that predicts grammatical tags and applies the pattern at extraction time with a system trained to predict the term labels induced from those annotations. The latter inherits the choices made in converting the training data even though it predicts a different set of labels.

Turning a terminology list into training data

Tearma provides a different starting point. Its entries tell the authors which expressions are recorded as terms. To obtain examples in sentences, they use the April 2019 dump of Irish Wikipedia, known as An Vicipéid. They extract 10,074 articles totaling 4,093,665 words and find 24,038 Tearma terms in the collection. They chose Wikipedia for its size and availability and because its technical writing seemed likely to use vocabulary represented in the terminology database.

Marks are assigned with the IOB scheme. B identifies the beginning of a term, I identifies a subsequent word inside the term, and O identifies a word outside any marked term. A single-word expression receives a B with no following continuation. A longer expression puts B on its first word and I on the rest. The representation gives a tagger examples of where terms begin and how they extend through a sentence. Producing those labels automatically from matches is the paper’s weak supervision procedure, in contrast to the hand marking used to construct the evaluation set for linguistic annotation.

The labels are weak because the source of evidence is the spelling of a match. A term used in Wikipedia but absent from Tearma provides no automatic positive example. Its words can therefore be assigned O even though a human annotator would mark them as a term. Conversely, a string recorded as a term can have a common grammatical use that a lookup cannot distinguish. The authors give IS, an abbreviation for Intleacht Shaorga, as an example of a match that can also correspond to a frequent form of the Irish copula, the word used in certain constructions to link a subject with what is said about it.

The authors filter these matches by their frequency in the Wikipedia corpus. A term found more than 3,000 times is rejected, using a threshold they tuned by hand. Above 100 occurrences, acceptance requires the first word to be listed as a noun in Pota Focal, subject to the higher rejection threshold. Below 100 occurrences, the term is accepted. The stated rules leave the case of exactly 100 occurrences unspecified. The filter is designed to remove conspicuously common accidental matches and use the dictionary to check other frequent ones. It does not supply the missing sense information for individual matches.

The tagger then learns from the automatically assigned B, I and O labels. In use, its output comes from what it learned from labeled text, so it can propose an expression that was absent from the terminology list. This is the reason to train a tagger instead of using the lookup itself as the final extractor. The price of that flexibility is that unreliable training examples can affect predictions beyond the individual examples where the labels were wrong.

The paper uses OpenNLP’s maximum-entropy tagger, implemented as POSTaggerME, with default training parameters. The grammatical configurations learn the shared top-level part-of-speech categories. The term-boundary configurations learn the IOB categories, whether those labels were derived from grammatical annotations or from Tearma matches. The authors also concatenate the IOB training material from the different sources in a setting called All. Keeping the tagger implementation fixed makes it easier to interpret how the choice of labels and training text affects the comparison.

Bringing inflected and mutated forms together

Saffron needs a stable spelling under which to count occurrences. For English the paper illustrates the idea by reducing a plural noun to its singular form. In Irish, the authors depend on a dictionary because they describe noun plurals and genitives as generally irregular. They use the XML morphology resource in Pota Focal, with 4,245 entries for base words, including 3,488 nouns. A base dictionary form is called a lemma.

Pota Focal does not supply the initial mutations directly. The authors therefore generate additional forms with hard-coded rules for lenition, eclipsis and consonant prefixing. These changes can alter a noun’s first consonant or add an initial consonant to a word beginning with a vowel. Once dictionary forms and the generated variants have been collected, normalization can use a lookup. This is the paper’s approach to lemmatization.

The paper illustrates the lookup with dia, meaning god, and ollscoil, meaning university. In the New Corpus for Ireland, the table gives dia a frequency of 7,747 and dhia a frequency of 2,671. It also shows déithe, another form mapped to dia, with a frequency of 400. For ollscoil, the table records 4,189 occurrences of that spelling and 1,438 of hollscoile. These are frequencies in the New Corpus for Ireland. The figures illustrate why a base form and its variants can make very different contributions to the pool of occurrences a term gathers.

The generation rules are deliberately permissive. For instance, they produce t-ollscoil even though the authors mark it ungrammatical for this feminine noun. The example table gives this form a frequency of 0. It likewise reports 0 for the other marked variants with a t- prefix. The paper’s discussion generalizes about seeing generated forms in text, while the table itself documents both attested variants and generated forms with zero observed occurrences. For the lookup procedure, the authors’ working assumption is that keeping extra candidate forms is unlikely to cause many errors.

The paper also describes a concrete collision. The system normalized bhfuil, a form of the verb meaning to be, to fuil, meaning blood. A lookup can return a noun entry even when a spelling has another grammatical analysis in the sentence. The stopword filter helped with this case. A stopword is a common word included on a list for filtering, and Saffron removes a candidate made up entirely of such words. For terms built from several words, this still allows an internal article when other words provide the content of the expression.

Filtering candidates and defining the scores

The pipeline limits candidates to a maximum of 4 words and excludes candidates made entirely of stopwords. It also has a minimum occurrence filter. For these experiments the authors set it to 1 because of the size of the collection. This leaves candidates eligible even if they occur only once. In a collection with sparse repetitions, rejecting all such expressions would take many potential terms out before ranking had a chance to use other evidence.

The scores operate on candidates that remain after filtering. In the formulas below, w denotes the item being scored, which may be a candidate phrase. The paper sometimes describes these counts in terms of words, but the ranking is over the items extracted as candidates. Foreground counts come from the collection whose terms are being extracted. The reference frequencies come from a separate collection used to represent background usage.

Total TF-IDF uses an item’s frequency across the foreground documents and the spread of that item across documents.

Total TF-IDF(w) = tf(w) × log(|D| / df(w))

Total TF-IDF(w) is the result for item w. tf(w) is its total occurrence count across the document set D. |D| is the number of documents, and df(w) is the number of documents containing at least one instance of w. log denotes the logarithm, / divides, × multiplies, and = gives the definition. The logarithmic factor penalizes a widely distributed item. Accordingly, an expression can have a large occurrence count and receive less support from this score if those occurrences are spread broadly across the collection.

Residual IDF compares the observed spread with the spread expected if occurrences were distributed at random. Written as a difference between observed and expected inverse document frequencies, the score is:

Residual IDF(w) = tf(w) × [log₂(1 − exp(−tf(w) / |D|)) − log₂(df(w) / |D|)]

Residual IDF(w) is the result for candidate w. tf(w) is the candidate’s foreground occurrence count, df(w) is its observed document frequency, and |D| counts the foreground documents. exp is the exponential function and log₂ is the logarithm to base 2. In the first logarithm, 1 − exp(−tf(w) / |D|) is the expected fraction of documents with an occurrence under the random-distribution calculation. df(w) / |D| is the observed fraction. The bracketed subtraction compares those fractions on a logarithmic scale and × weights the result by the occurrence count. = defines the score.

Candidate length and nesting provide another kind of evidence. The authors define an inventory of shorter candidates contained in an item and an inventory of longer candidates that contain it. ComboBasic uses the counts of both inventories.

ComboBasic(w) = |w| × tf(w) + α × |Tsuper(w)| + β × |Tsub(w)|

ComboBasic(w) is the combined score of candidate w. |w| is its length in words, and tf(w) is its occurrence count. Tsuper(w) is the set of extracted terms containing w, and Tsub(w) is the set of terms contained within w. The bars around the sets count their members. α weights the contribution from the containing terms and β weights that from the contained terms. × and + perform multiplication and addition, and = defines the score. The first product rewards a frequent, longer expression. The other contributions allow relationships between candidates to change their order.

The paper’s expression for cValue also combines length and occurrence count with information about terms contained in a candidate.

cValue(w) = log₂(|w| + 0.1) × [tf(w) − (Σₜ′∈Tsub(w) tf(t′)) / |Tsub(w)|]

cValue(w) is the score for candidate w. |w| counts its words, 0.1 is the constant added to that length, and log₂ takes the base-2 logarithm of the resulting sum. tf(w) is the frequency of w. t′ ranges over the members of Tsub(w), as indicated by ∈, and Σ sums the occurrence counts tf(t′) of those members. Dividing by the set size |Tsub(w)| gives their average frequency, which − subtracts from the candidate frequency. × applies the length factor and = defines the result. The displayed expression leaves open how to handle a candidate with an empty set of contained terms.

A further contextual score, PostRankDC, uses how strongly a candidate is associated with other words in the corpus. The authors describe this association in terms of probabilistic mutual information, which compares co-occurrence with what would be expected from the separate occurrences. The paper names the procedure without displaying a formula for it, and PostRankDC is outside the combination selected for the reported experiments.

The reference-corpus scores use a separate source of counts. Weirdness compares the frequency of a term in the foreground with its frequency in the reference corpus.

Weirdness(w) = tf(w) / tfref(w)

Weirdness(w) is the score of candidate w, tf(w) is its foreground occurrence count, and tfref(w) is its reference occurrence count. The / operator forms the ratio and = defines the score. A high foreground count with little presence in the background gives a stronger signal of specialization than a similar foreground count for an item common in the background.

The paper also describes a second reference-based measure, Relevance, in which corpus sizes appear explicitly.

Relevance(w) = 1 − 1 / log₂(2 + (tf(w) × Tref) / (tfref(w) × T))

Relevance(w) is the score for w. tf(w) and tfref(w) are its foreground and reference counts, respectively. T is the total foreground size in words and Tref is the total reference size in words. The ratio inside the logarithm is the foreground rate divided by the reference rate. log₂ is the base-2 logarithm, 2 is the constant added to the rate ratio, and 1 is both the numerator of the reciprocal and the value from which the reciprocal is subtracted. ×, /, + and − denote multiplication, division, addition and subtraction. = defines the score. As displayed, these reference-based expressions leave the treatment of a zero reference count unspecified.

The authors discuss a further scoring family based on topics. A topic procedure gives a probability for a word under each of several topics. The paper connects this idea to earlier work on Latent Dirichlet Allocation.

The Novel Topic Model score is written in the following form. The authors leave it out of the experimental combination because their previous experiments with it had performed poorly.

NTM(w) = tf(w) × Σᵥ∈w maxₖ P(wᵢ = w | zᵢ = k)

NTM(w) is the proposed score for candidate w, and tf(w) is its frequency. Σ is a sum indexed by v, with v ∈ w indicating the words in the candidate. maxₖ selects the largest value across topics indexed by k, out of the K topics of the procedure. P is probability, i indexes a word position, wᵢ denotes the word there, and zᵢ denotes its topic assignment. Within the probability, | means conditional on, and the inner = signs specify the word and topic values. The displayed summation uses v as its index while the probability still has w on its word side. × multiplies the sum by the candidate frequency, and the outer = defines the score.

Combining the ranks

The final experimental combination uses ComboBasic, Weirdness, TF-IDF, cValue and Residual IDF. The score values have different interpretations and operate on different scales. Saffron transforms each score into an ordering over the candidates. Each ordering then contributes according to the candidate’s position in it. This lets a good placement contribute to the final result without needing to compare the numerical value of a frequency-based score with the numerical value of a nesting score.

score(t) = Σᵢ 1 / Rᵢ(t)

score(t) is the fused score of candidate t. i indexes the scoring measures, and Σᵢ adds the contributions across the measures in the combination. Rᵢ(t) is the rank of t under measure i, with the leading rank starting at 1. The numerator 1 and the division operator / form the reciprocal, and = defines the result. High placements matter more because their denominators are smaller. The paper calls the method mean reciprocal rank and displays a sum. With the same measures contributing to every candidate, taking the mean would preserve the order.

The experiments configure the output cutoff at 100 ranked candidates. The discussion of the university corpus concentrates on the top 20 entries displayed for each extraction route. The authors also make the code and datasets developed for the study available in the irish_saffron repository.

Experiments and results

A manually checked test of term boundaries

The authors evaluate extraction on a manually annotated subset of Irish Wikipedia. The evaluation set consists of 11 documents and 5,178 words. The annotator identifies 846 terms. The paper presents the collection as the first Irish benchmark for the task and uses it to compare predictions about the roles of individual words in terms. A separate experiment uses the complete ranking pipeline on a corpus of university discussions. The two experiments measure different outcomes: agreement with hand-marked boundaries and the relevance of highly ranked candidate terms.

The boundary evaluation reports precision, recall and F-measure for each IOB class. For a B prediction, precision is the share of words labeled as beginnings that the annotator also marked as beginnings. Recall is the share of annotated beginnings the extractor recovered. The same logic applies separately to I and O. F-measure combines precision and recall into a score that is limited when either is low. These values refer to token labels. A system can receive credit for getting the first word of a candidate right while assigning the wrong label to one or more words that follow.

The comparison includes a random baseline and several choices of training data and output labels. Each grammatical corpus is tested separately. Their aligned grammatical annotations form the setting called Merged. The authors then test direct IOB taggers trained with labels converted from each grammatical corpus and with their converted data combined. Tearma supplies the weakly supervised training condition, and All pools the IOB training sources. The resulting comparison covers both the resource used to train the tagger and the label scheme it predicts.

The random baseline has different scores for beginnings, continuation words and words outside terms. On the gold standard its F-measures are 0.163 for B, 0.111 for I and 0.726 for O. The distribution in the manually annotated set is much more heavily weighted towards O than either positive label. Reading the results against the class-specific baseline is more informative than treating any given F-measure as equally difficult to achieve across classes.

Recognizing beginnings and continuations

The best F-measure for the beginning label comes from Merged (IOB), at 0.590 on the manually annotated Wikipedia set. The corresponding grammar-based Merged setting is close, with 0.589. Their precision and recall show the different balance behind the near tie. Merged has B precision of 0.722 and recall of 0.498. Merged (IOB) has B precision of 0.707 and recall of 0.506. The first makes a larger share of correct beginning predictions, and the second recovers a larger share of the annotated beginnings.

Tearma’s beginning F-measure is 0.554. Its B precision is 0.612 and recall is 0.506. Thus its recall for term beginnings matches Merged (IOB) on this test, though its predictions include more incorrect beginnings relative to the number it makes. All obtains 0.557 for beginning F-measure, with precision of 0.618 and recall of 0.507. The small numerical changes relative to Tearma show what pooling the data achieved for this class under the reported setup.

Term-beginning F-measure on the manually annotated Irish Wikipedia set

The merged grammatical data reach the leading score when the tagger predicts term boundaries directly.

Term-beginning F-measure on the manually annotated Irish Wikipedia setRandom baseline: 0.163Random baseline0.163Uí Dhonnchadha: 0.546Uí Dhonnchadha0.546Lynn: 0.579Lynn0.579Merged: 0.589Merged0.589Uí Dhonnchadha (IOB): 0.521Uí Dhonnchadha (IOB)0.521Lynn (IOB): 0.551Lynn (IOB)0.551Merged (IOB) (this paper): 0.590Merged (IOB) (this paper)0.590Tearma: 0.554Tearma0.554All: 0.557All0.557
The numbers
System or settingF-measure
Random baseline0.163
Uí Dhonnchadha0.546
Lynn0.579
Merged0.589
Uí Dhonnchadha (IOB)0.521
Lynn (IOB)0.551
Merged (IOB) (this paper)0.590
Tearma0.554
All0.557

Continuation words show a clearer distinction between the resource types. The grammar-based Merged setting obtains an I F-measure of 0.576, compared with 0.563 for Merged (IOB). Merged has precision of 0.747 and recall of 0.468. Merged (IOB) has precision of 0.681 and recall of 0.480. The rule applied to grammatical predictions gives up some recall in this comparison and gains enough precision to lead on F-measure.

Tearma reports I recall of 0.806 and precision of 0.101, for an F-measure of 0.180. All reports recall of 0.824 and precision of 0.098, for an F-measure of 0.174. Those precision and recall values are worth keeping together. High recall in this column means that many human-marked continuations received the correct label. Low precision means that many predictions bearing that label were wrong. The resulting F-measures give a much less favorable view of continuation labeling than recall alone.

The paper observes that the automatically marked Tearma training data contain a small proportion of continuation labels. That observation describes the training material. In the gold-standard evaluation, the reported recall and precision describe predictions on a different collection of documents. A small training proportion of I is not by itself an account of how many times the trained tagger will assign I or how often it will assign it correctly.

Term-continuation F-measure on the manually annotated Irish Wikipedia set

Merged grammatical tagging leads on continuation labels, where the terminology-based settings have low precision.

Term-continuation F-measure on the manually annotated Irish Wikipedia setRandom baseline: 0.111Random baseline0.111Uí Dhonnchadha: 0.460Uí Dhonnchadha0.460Lynn: 0.556Lynn0.556Merged (this paper): 0.576Merged (this paper)0.576Uí Dhonnchadha (IOB): 0.427Uí Dhonnchadha (IOB)0.427Lynn (IOB): 0.510Lynn (IOB)0.510Merged (IOB): 0.563Merged (IOB)0.563Tearma: 0.180Tearma0.180All: 0.174All0.174
The numbers
System or settingF-measure
Random baseline0.111
Uí Dhonnchadha0.460
Lynn0.556
Merged (this paper)0.576
Uí Dhonnchadha (IOB)0.427
Lynn (IOB)0.510
Merged (IOB)0.563
Tearma0.180
All0.174

Recognizing words outside terms

The highest reported O F-measure is 0.869, reached by Tearma and All on the Wikipedia benchmark. The grammatical Merged setting scores 0.851, while Merged (IOB) reaches 0.855. The leading settings again make different precision and recall tradeoffs. Tearma has O precision of 0.906 and recall of 0.834. All records 0.907 precision and 0.835 recall. Grammar-based Merged reaches 0.770 precision and 0.953 recall.

An extractor can score well on words outside terms while having difficulty joining words into the proper phrases. The O column measures how well those outside positions are recognized on their own. The continuation column tests a different ability. The paper’s claim that both approaches are viable has to be read alongside this division of strengths. The grammatical sources offer the stronger balance on continuation words, while the terminology-trained settings offer the stronger balance for the outside label on this benchmark.

Ranked terminology from university discussions

The full Saffron experiment draws on remarks made in conversations about what is planned for the National University of Ireland Galway in the years ahead. A comment is treated as a document, giving a collection of 239 documents and 9,313 words. The choice matters to the frequency-based scores because a document is the unit used to measure spread. Occurrences in different comments contribute differently from repeated occurrences in one comment. An Vicipéid serves as the background corpus for the reference comparison.

The paper compares a part-of-speech-based extractor with the weakly supervised Tearma extractor. The displayed top 20 results for each setting give a view of the output after normalization, filtering and rank aggregation. The grammatical route brings up expressions such as mac léinn for student, scéim teanga for language plan and foireann na hollscoile for university staff. It also ranks individual words such as gaeilge, ollscoil and teanga. The spread of expressions is informative because the system can return phrases for groups and activities as well as words that name the general subject.

The Tearma route ranks ollscoil, foireann and seirbhís among its single-word entries. It also produces easpa ceannaireachta, meaning lack of leadership. In the authors’ assessment, this is the only multiword term in that list once they set aside cases with an erroneous definite article. The weakly supervised route can therefore return a relevant multiword expression, with single words accounting for most of the useful output shown.

The authors judge that the displayed top 20 lists each contain four non-terms. The judgments depend on how a word was used in the chat. An apparent reference to a dean may instead have come from a use of the verb meaning to do. A word interpretable as residence appears to have been extracted from a phrase meaning always. These are errors about the uses of words in the collection. A plausible dictionary translation alone cannot establish that an entry is a good term for the discussion.

The authors were unable to produce a quantitative evaluation of the ranked outputs against a reference ordering of relevant terms. The top lists therefore show what each route tends to return and illustrate mistakes that can survive the ranking stage. The numerical evaluation in the paper applies to the manually annotated Wikipedia token labels. The chat analysis gives separate qualitative evidence about the results a user would encounter after all stages of extraction and ranking.

What the ablations show

The contribution of combining grammatical corpora

The paper compares changes in training source and label representation and examines the resulting outputs. It does not isolate the downstream contribution of each normalization rule, filter or ranking measure by removing it in turn. The comparisons that it does perform are most informative when read as changes to the extraction setup, followed by an inspection of how those changes carry into the final term lists.

With grammatical prediction followed by the Irish pattern, the merged corpus scores above either constituent corpus on the F-measure for each label. On the Wikipedia benchmark, Lynn alone has B, I and O F-measures of 0.579, 0.556 and 0.843. The corresponding Uí Dhonnchadha values are 0.546, 0.460 and 0.771. The merged grammatical system records 0.589, 0.576 and 0.851. The combined training material and shared categories work effectively together in this experiment even though the original corpora differ in domain and detail.

This comparison is not a test in which the same amount of training material is drawn from each source. Combining the corpora adds examples at the same time as it brings the two kinds of writing into the same training condition. The benchmark scores show that the combined setting is useful, while leaving the improvement unattributed between added volume and complementary examples. The shared inventory enables the combination, but the experiment does not estimate what would happen if both corpora had started with the same finer-grained inventory.

The paper also tabulates the proportions of term-boundary labels in the training sources and the manually annotated data. For B, I and O, respectively, the gold standard reports 16%, 11% and 73%, and the converted Lynn corpus reports 19%, 10% and 71%. The converted Uí Dhonnchadha source reports 22%, 17% and 61%. The authors observe that Lynn’s distribution is the closest to the gold standard. This offers one way to interpret Lynn’s stronger standalone grammatical results. The fractions summarize broad label composition without identifying which terms occurred, how their contexts differed, or which instances the extractor found difficult.

What changes when the tagger predicts term labels

The converted corpora let the authors vary the representation while keeping the original source of annotations recognizable. A grammatical tagger learns labels that distinguish several types of words. Term boundaries are then determined by the extraction pattern. A direct IOB tagger learns beginning, continuation and outside labels that have already been derived from the grammatical annotations. It can learn patterns associated with those outcomes without producing the grammatical explanation for each decision.

On the gold standard, the direct IOB version of the merged data slightly leads the grammatical version for B F-measure. The grammatical version leads for I. This comparison indicates that the choice of representation matters more in relation to a particular label than as a blanket judgment about which tagger works best. For example, continuation recall is 0.480 with Merged (IOB) and 0.468 with Merged, while their continuation precision values are 0.681 and 0.747, respectively. The difference in F-measure follows from the balance of those measured effects.

The individual corpora also show why the close comparison of the merged settings should not be generalized to every training source. For Uí Dhonnchadha, the continuation F-measure is 0.460 with grammatical tagging and 0.427 with direct IOB. For Lynn, the corresponding values are 0.556 and 0.510. Yet the converted Lynn setting gives an outside-label F-measure of 0.850, above the grammatical Lynn setting’s 0.843. The converted representation changes which successes the tagger can preserve, and the ordering depends on the label being measured.

A direct tagger trained from a conversion inherits whatever the conversion counts as a term. Errors or omissions introduced during this step become properties of the targets the tagger learns. The comparison therefore addresses the practical consequence of predicting the derived labels. It does not reveal how much would be gained from training on a large corpus whose term boundaries were marked directly by people with the target task in mind.

What the terminology matches emphasize

The Tearma-derived corpus is reported as 19% B, 2% I and 80% O. Compared with the manually annotated gold standard’s 16% B and 11% I, it contains a much smaller share of words marked as continuations. The authors interpret this profile as evidence that the training material favors single-word terms. A corpus can have many beginnings without many continuation positions when much of its positive evidence comes from isolated words. The result also fits the mechanism for obtaining labels. A terminology list makes a complete expression easy to mark when it has an entry, but candidates that receive no match supply no corresponding positive span.

Pooling with the converted grammatical data produces little gain in the best outside-label score. Tearma and All both reach 0.869 on the gold standard, while their continuation F-measures are 0.180 and 0.174. Pooling therefore does not reproduce the continuation benefit seen when the two grammatical corpora are combined on their own. All differs from Merged (IOB) in the addition of a much larger automatically labeled source. The experiment reports the consequence of simple concatenation and does not vary how prominently each source is represented during training.

The authors’ interpretation of term length also draws on the university output. There, after the common scoring process, the Tearma list contains many single words and few credible multiword candidates. This complements the evidence from the makeup of the weak labels. The IOB benchmark supplies a separate finding about continuation predictions, including their low precision in the Tearma conditions. The ranking example concerns which normalized expressions are returned near the top. It is possible for a tagger to mark many continuation tokens incorrectly during evaluation and still produce a final ranked list dominated by single words on another collection.

Diagnosing errors from their contexts

The discussion looks back into the university comments to determine why some high-ranked candidates are questionable. The apparent déan entry is a case where the topic makes a noun interpretation plausible. In a university discussion, a reference to a dean would make sense. The contexts instead suggest verbal use, including a form such as déanamh. The distinction affects whether the system has found a term at all, even though a reader can easily supply a relevant meaning for the isolated spelling.

The authors make a related observation about úsáid, which can have nominal and verbal-noun uses. They also discuss cónaí, which seems to occur as part of i gcónaí, meaning always, instead of independently as a candidate for residence. Both cases show why reading the original sentence can change the assessment of a ranked expression. The candidate’s apparent meaning in a list is only one piece of evidence. Its role in the precise occurrence provides the basis for the judgment.

The authors also identify output errors involving ollscolaíocht, a specialized university term absent from Pota Focal. The two extraction routes share that dictionary limitation. Even a correctly selected span can appear in the final list in a form the normalizer has failed to unify. Possible adjective readings of dátheangach and leanúnach raise a different issue. A plausible domain word may be functioning as a modifier in the relevant sentence, making its independent treatment as a term suspect.

Finally, the Tearma route produces pleán, which the authors regard as a likely misspelling of plean. The misspelling did not occur in its training data. This case is evidence that the learned tagger can extend its predictions to a previously unseen form. The extension happens to yield an erroneous list entry. It shows how generalization and output quality can diverge in an individual example, and why checking unseen predictions against usage remains important to the paper’s qualitative assessment.

Limitations

Limits the authors state

A single annotator prepared the Wikipedia evaluation set. The authors acknowledge that this makes annotation quality difficult to estimate. The question matters because a genuine disagreement about what counts as a term can look like system error in a single-reference evaluation. It can also affect boundaries, especially where a grammatical modifier may or may not belong to the name of the concept. The benchmark provides a consistent basis for comparing the reported settings, with no independent agreement measurement to show how another annotator would have treated the same documents.

The paper identifies the maximum-entropy tagger as a practical choice inherited from Saffron. The authors value its balance of accuracy and computational cost and the terms of its open license. They also caution that it was probably behind the best available approaches and did not make use of word embeddings. The measured scores describe what the chosen training sources and representations achieved with that implementation. They leave open whether another tagger would narrow or widen the differences.

The authors also point to the cost of evaluating the complete rankings. Establishing which expressions best characterize a discussion would require detailed corpus analysis and a reference ordering of relevant terms. They instead inspect the displayed outputs and explain their judgments about individual cases. This supports observations about the kinds of candidates each method returns. It leaves the comparison without a quantitative measure of ranked relevance on the university collection.

A further stated limit is the amount of language-specific work still required. The dictionary lookup depends on appropriate Irish entries and rules for Irish mutations. The grammatical route needs decisions about tag harmonization, verbal nouns and the shape of acceptable terms. The terminology route has its own resource requirements and uses thresholds to reduce accidental matches. The authors conclude that broader transfer to other low-resource languages would need more generic methods. Their Irish implementation demonstrates a workable adaptation under a particular set of resources.

Limits visible in the experiment design

Training source, training size and annotation procedure change together in the comparison between Tearma and grammatical supervision. Tearma labels come from a large Wikipedia collection, grammatical labels come from smaller corpora of different kinds, and the term labels derived from each have different distributions. The test can show what the complete configurations achieve. It cannot establish how the approaches would compare given equally large datasets, matched subject matter, or labeling procedures with comparable error rates.

The origin of the benchmark also matters. The manual annotation is on Irish Wikipedia, the same source of text used to build the Tearma training corpus. The paper does not specify whether it excluded the benchmark articles from the automatically labeled training material. The results can be read as comparisons on the annotated set, but the amount of separation between the weak training documents and the evaluation documents is unclear. The university experiment changes the type of writing, though its qualitative evaluation cannot resolve how token-level performance transfers across the two collections.

Token-level F-measures also leave a gap between evaluation and intended use. A term span is complete only when the system identifies the relevant words together. Separate scores for B and I can show where an extractor struggles, but they do not give a rate for fully correct expressions. A reader interested in the recovery of multiword terminology would also need to know how frequently the constituent predictions form exact spans. The university lists offer examples of complete terms and boundary mistakes without supplying that rate.

The common pipeline likewise creates limits on attribution. Some genuine Irish terms begin with an article or include a preposition, which the reported grammatical pattern excludes. The maximum length rules out longer candidates from the ranked output. Normalization depends on a dictionary geared towards basic vocabulary, and the paper documents a specialized item it could not normalize adequately. The final scores and lists reflect these choices together. No reported trial measures the independent effect of adding leading articles, expanding dictionary coverage or changing the length limit.

Finally, background usage is represented by Irish Wikipedia in the university experiment. Scores based on reference counts express distinctiveness relative to that corpus under the paper’s counting procedure. A different background collection could give different evidence for the same candidates, and the paper reports no comparison across reference collections. Similarly, choosing comment boundaries as document boundaries gives the frequency and distribution metrics a particular unit of analysis. The usefulness of those decisions for other types of Irish writing remains open.

What came after

The follow-up directions documented in the paper are proposals from the authors. They suggest exploring ways to build weak supervision from resources that may exist even where a curated grammatical corpus does not. Wikipedia article titles are one possibility they raise for obtaining a list of candidate terms. That proposal would extend the premise of the Tearma experiment, which uses an existing list to create examples in context.

They also identify term length as a question for further study. In their experiments, the automatically matched labels and the ranked lists both suggest an emphasis on single words in the terminology-based route. The paper leaves open how much of this tendency depends on the original list, the way occurrences are matched and filtered, or what the tagger learns from the resulting labels. The subsequent adoption or testing of these proposals is undocumented.

Cite

Cite as John P. McCrae and Adrian Doyle. 2019. Adapting Term Recognition to an Under-Resourced Language: the Case of Irish. Proceedings of the Celtic Language Technology Workshop.

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

@inproceedings{mccrae2019adapting,
  title = {{Adapting Term Recognition to an Under-Resourced Language: the Case of Irish}},
  author = {John P. McCrae and Adrian Doyle},
  booktitle = {Proceedings of the Celtic Language Technology Workshop},
  year = {2019},
  url = {https://aclanthology.org/W19-6907/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/mccrae-2019-adapting-term-recognition-under-resourced/