Elamur Research

WikiGoldSK: Annotated Dataset, Baselines and Few-Shot Learning Experiments for Slovak Named Entity Recognition

Paper · 2023 · David Suba, Marek Suppa, Jozef Kubik et al.

Summary

A recognizer reading Slovak has to decide which words form a name and what kind of thing the name denotes. A museum’s name, for example, can refer to the institution or to its premises. To develop a system that makes such decisions, researchers need labeled examples for training and a separate set for checking its predictions. The public resources the authors identify offered different pieces of that infrastructure. A small newswire collection supplied human judgments for evaluation, while a larger Wikipedia collection supplied automatically generated training labels. WikiGoldSK brings human-reviewed training and test material together in a public benchmark for named entity recognition.

The authors sampled 412 articles from Slovak Wikipedia and prepared guidelines for labeling people, places, organizations, and a miscellaneous class that includes names of films and festivals. Native Slovak speakers reviewed the text with automatic suggestions already in place. They resolved ambiguous cases through discussion, applying rules that cover both the meaning of a name in context and the extent of the expression to mark. The release includes designated training, development, and test splits. The annotations carry the Creative Commons Attribution-Share-Alike License 3.0 of the underlying Wikipedia text, and the authors also release their code and trained recognizers.

On the WikiGoldSK test split, the strongest system trained with WikiGoldSK alone records 0.9357 F1, a score that combines the correctness of returned predictions with the coverage of the reference labels. The best system trained solely on WikiANN, the larger automatic collection, records 0.6648 F1 against the same test reference. Pooling the training material improves on WikiANN alone, while the strongest results come from the WikiGoldSK training split by itself. The authors also test their WikiGoldSK-trained systems on Slovak BSNLP2017 newswire. The leading result there is 0.8085 F1, under a different mix of source text and labeling rules.

The few-shot learning experiment asks what is possible with a small labeled sample. The authors recast a token’s classification as a short Slovak sentence with a blank, then use the adapted predictors to generate training targets for additional sentences without consulting their human labels at that stage. The best run records 0.5845 F1 on WikiGoldSK. The conventional systems trained on automatic WikiANN labels all score higher in the reported comparison. WikiGoldSK thus supplies both an evaluation reference for Slovak recognition and a record of what the tested systems achieved with different sources and amounts of supervision.

Deep dive: WikiGoldSK: Annotated Dataset, Baselines and Few-Shot Learning Experiments for Slovak Named Entity Recognition

WikiGoldSK adds human-reviewed Slovak Wikipedia annotations and compares supervised and few-shot approaches to finding and classifying names. · about 34 minutes to read

The problem and its context

Where a name ends and what it denotes

The task asks for a span of text and a category for that span. A span is the stretch of words covered by a mention. The mention of a company can extend through its legal suffix, for example, depending on the annotation convention. An institution and the building it occupies can share a name, leaving the surrounding sentence to indicate which sense is intended. These cases illustrate distinct demands on a recognizer. It must find the expression in the sentence, and it must apply the category expected by the reference. Text that contains the right name can still be marked too broadly or too narrowly.

The paper traces the task to the Message Understanding Conference and describes token classification as the common formulation. In this formulation, the text is segmented into units called tokens, and the system assigns a label to each unit. A succession of labels can describe an expression that extends across several tokens. The representation makes individual positions available for prediction while leaving the system with a sentence-level obligation. The labels have to fit together so that a reader can recover the complete names and distinguish one name from its neighbors. Message Understanding Conference-6

The authors place recognition early in several language-processing tasks. Information extraction can use the marked expressions to identify which people, places, or institutions appear in a passage. Entity linking can take a detected mention as the expression to connect to an entry elsewhere. Coreference resolution considers which expressions point to the same referent, and a name can supply one of those expressions. The paper also lists machine translation and question answering among the applications. In each case the span and category offer a more structured input than the original sentence alone.

Training a recognizer requires examples that encode these judgments. The approach the paper describes as predominant starts with a system already trained on ordinary text and adapts it to the target task. This adaptation is called fine-tuning. The annotated examples teach the system which parts of a sentence count as names and which distinctions the task makes among them. A test collection then measures how closely its decisions follow the same convention on held-out material. The need for human judgment appears twice, because the examples that teach the task and the examples that assess it serve different purposes.

What researchers could obtain for Slovak

The authors situate WikiGoldSK in a tradition of shared tasks. Organizers of a shared task specify the prediction problem and supply data, giving different teams a common reference for their results. The paper describes early recognition benchmarks for languages including English, Spanish, German, and Dutch, followed by efforts for Indic and Balto-Slavic languages. The Slovak collection adopts its entity inventory from the CoNLL-2003 shared task. The connection is a choice about the scope of the task as well as a link to an established evaluation practice.

For Slovak, the authors identify the BSNLP 2017 shared task as the source of a public, human-annotated newswire collection. Its Slovak subset has less than 50 articles, which the paper regards as enough to support evaluation. Training a recognizer and reserving independent material for testing would place a different demand on that collection. The English WikiGold project suggested a way to broaden the text source. It used manually labeled Wikipedia articles in response to the prominence of newswire in previous benchmarks. WikiGoldSK takes its name from that precedent and sets out to provide Slovak Wikipedia data on a scale useful for training as well as assessment.

The shortage was about public access as much as the amount of annotation that had been done. One Slovak study used capitalization to propose candidates and Wikipedia parsing to determine their extent. That project assembled 1620 entities with the help of 60 human experts. The paper also describes work using Slovak Wikipedia collections built from more than 5000 articles and containing more than 15,000 entities. Those projects trained recognizers with established software. A study in another genre annotated 10,000 tweets from the account of a Slovak journal, yielding nearly 16,000 entities, and trained a recognizer with FastText vectors and a bidirectional recurrent network. The authors report that the resources from these projects were unavailable to the public.

Those examples show what the paper means when it treats Slovak as a language with limited resources for this task. It cites 5 million native speakers, notes the language’s official position in the European Union, and still finds relatively few readily available tools tailored to it. The authors suggest that Slovak’s linguistic and historical proximity to better-resourced Czech might contribute to this situation. They present the release of SlovakBERT, a pretrained system intended for Slovak, as evidence of interest in developing language-specific resources. WikiGoldSK addresses the complementary requirement for task-specific examples.

How Wikipedia supplied labels before WikiGoldSK

Automatic annotation offers a way to increase the amount of labeled text without asking readers to mark every passage. Here the source of evidence is Wikipedia itself. An article link gives a span in running text and points to a page associated with it. An automatic procedure can use that association to propose an entity type. The field calls the resulting labels silver-standard. A human-reviewed reference is known as gold-standard. The distinction describes the source of the labels and helps explain why a large training resource and a smaller evaluation resource can complement one another.

The paper identifies several points where a link-based procedure can lose information. An article may name someone without linking that occurrence. A link may identify the subject of a mention while leaving its proper category under a particular benchmark unresolved. Mapping a destination to a category can also depend on the available knowledge bases. The authors note that some subsequent automatic methods reported quality comparable to manual resources. The practical question in Slovak was therefore how well the available silver collection would train a recognizer when judged against a sizable, human-reviewed test.

The paper distinguishes WikiANN from an earlier Wikipedia project, WikiNER, whose 9 languages omit Slovak. The work behind WikiANN first assigns entity types to English Wikipedia pages, then uses links across languages to carry information to other editions. Self-training and translation help extend coverage where links leave entries unmatched. The resulting resource covers 282 languages. The Slovak portion gives researchers roughly 50 thousand labeled entities drawn from Person, Location, and Organization. Its availability made it both a practical baseline and a source of suggestions during WikiGoldSK’s construction. Cross-lingual name tagging and linking

Why the authors also tested a small labeled sample

The silver-data strategy addresses scarcity by creating many automatic labels. Few-shot methods start from a different premise. A pretrained predictor has already learned to fill in missing words, and a carefully phrased blank can give it a familiar way to express a decision that would otherwise require a new classifier. The work the authors discuss uses this approach for tasks such as classifying whole texts. Pattern-Exploiting Training develops it into a training procedure, while PETER adapts the idea to names in a sentence. Exploiting Cloze-Questions for Few-Shot Text Classification and Natural Language Inference

A recognition task gives this idea a particular challenge. Even before predicting a type, a system has to keep track of which position in a sentence is being classified. It also has to turn the answers for individual positions into complete spans. The authors use the new corpus to simulate a setting in which only a small labeled sample is available, while still having a reference against which to evaluate the result. The full-data and few-shot experiments consequently answer related practical questions about the use of the same resource.

The method, step by step

From Wikipedia articles to material for annotation

The authors drew 412 articles from the skwiki-20210701 dump. They required an eligible article to have been last changed in 2021 and to fall between 500 and 5,000 characters. The upper bound addressed the authors’ concern that a long article could give its subject area a disproportionate presence in the collection. The lower bound addressed their observation that short articles often offer no names to mark. These filters select articles by properties visible before annotation, without defining the article topics or the distribution of categories by themselves.

The raw articles went through the generic English tokenizer from spaCy. Tokenization divides the text into the units used during labeling. Because an entity’s extent is expressed over those units, segmentation can affect which annotations the system can express. A break in the wrong place can complicate the marking of a suffix, an abbreviation, or another part of a name. The authors manually corrected the Slovak-specific problems they found after automatic segmentation. The result of this pass was text whose units were ready to carry the suggested and reviewed labels.

Building the WikiGoldSK benchmark

The steps in order.

Building the WikiGoldSK benchmarkStep 1: Select eligible articles from Slovak Wikipedia1. Select eligible articles from Slovak WikipediaStep 2: Segment the text and repair Slovak tokenization errors2. Segment the text and repair Slovak tokenization errorsStep 3: Load the automatic annotation suggestions3. Load the automatic annotation suggestionsStep 4: Have native speakers review the articles4. Have native speakers review the articlesStep 5: Resolve ambiguous cases through discussion5. Resolve ambiguous cases through discussionStep 6: Assign training, development, and test portions6. Assign training, development, and test portions

The labeling interface was Prodigy. To prepare the suggestions, the authors fine-tuned SlovakBERT on the training part of Slovak WikiANN, then used it to predict annotations for the sampled Wikipedia material. Reviewers saw those predictions when they worked through the articles. This is an early use of WikiANN in the paper’s workflow, distinct from using that corpus to train a baseline for the final comparison. The suggestions give the reviewers candidate spans and categories. The guideline and review process determines what appears in the benchmark reference.

Native Slovak speakers from the author team carried out the review. There were three annotators. Two provided annotations throughout the collection, and the third corrected half of it. The authors used the overlapping work of the full annotators to measure agreement, then resolved ambiguities in discussion. The production sequence matters when interpreting the reference. The suggestions came from automatic supervision, the individual passes added human decisions, and adjudication settled which decisions appeared in the release.

What the categories mean in practice

The linguistic annotation manual uses the CoNLL-2003 label inventory and draws on the BSNLP 2017 guidelines. It specifies what to mark within each class and where conventions differ from the earlier Slavic benchmark. Knowing the class names is enough to understand the overall task. Applying them consistently requires a fuller account of what a name can denote, what surrounding words it includes, and how to handle an expression that can be read in several ways.

Person, written PER, includes personal names, surnames, and nicknames of living beings. Titles are left outside the marked name. Some collective names also qualify, including expressions naming a nationality, the residents of a city, or a family. The manual includes Bratislavčania, the name for inhabitants of Bratislava, as an example. Here the classification depends on what the expression names. The city and the people associated with it belong to different parts of the inventory.

The same class can cover a Slovak adjective formed from an individual’s name. The manual uses Petrov, the possessive form referring to Peter in an example about his suitcase. A general adjective, such as the one describing a soldier as Roman, is left outside the entity categories. This rule means the task can follow a personal name into a form that plays an adjectival role in its sentence. It also gives the annotator a reason to distinguish that use from the many descriptive adjectives associated with places, people, or languages.

Location, or LOC, includes geopolitical and territorial entities as well as named physical places. Cities and regions belong here. So do rivers, parks, castles, and bridges. Street names receive the label with a specific boundary convention. The name of the street is included and a building number is left outside. A system can therefore find the relevant place and still return a span wider than the one the benchmark expects. The manual makes that judgment explicit before either training or scoring takes place.

Organization, or ORG, includes bodies such as political parties, public institutions, companies, educational organizations, and music groups. The authors include a company’s legal suffix in its annotated span. In the manual’s example, ESET, spol. s r.o. is marked as a single organization. The comma and suffix remain part of the annotation because the boundary follows the guideline for the company’s full designation. Reading this example alongside the street rule shows how the kind of entity determines whether adjacent material belongs inside its name.

For museums, theaters, and zoos, the organization label is the default. The authors explain this choice in terms of the institution’s role beyond the site it occupies. They use Location when the surrounding text clearly presents the named referent as a physical building or area. The judgment is made about the expression in its sentence. The manual reports that BSNLP 2017 classified entities of these kinds as locations. A recognizer carrying one of these conventions into the other collection can therefore detect the same words and still disagree with the reference type.

The miscellaneous category, MISC, includes films and awards, named events and festivals, and names of newspapers and broadcasting stations. It also contains sports competitions such as cups and leagues. This positive list gives the category operational content. In particular, the decision about media names is relevant to comparison with BSNLP2017. The manual says the earlier guidelines are less explicit on the matter and observes that the earlier dataset usually treats such mentions as organizations. An apparently familiar category inventory therefore leaves room for different decisions about which examples belong in it.

How the manual handles overlapping and repeated names

A longer expression can contain the words of a shorter name. WikiGoldSK marks the outer expression in these cases. The manual’s example is the National Bank of Slovakia. Its complete name receives the Organization label, and the embedded country name has no separate annotation inside that span. This rule turns what could be an overlapping structure into a single span for training and evaluation. It also helps clarify what the benchmark expects a recognizer to recover from a sequence containing several words with recognizable names of their own.

The policy for an abbreviation after a full name preserves both mentions. The manual illustrates this with the Office of Public Health and the abbreviation UVZ in parentheses. Each receives its own Organization annotation. The rule distinguishes a shorter name contained inside a larger expression from a following expression that stands on its own in the text. Whether the two expressions refer to the same institution is a separate question from how many spans the annotation represents.

Together, these provisions define what the annotators are trying to agree about. The category has to fit the intended referent under the manual, and the span has to follow the manual’s treatment of boundaries. There is a practical consequence for a system trained on this collection. The difference between a correct and an incorrect prediction can lie in a suffix, a decision to leave a title outside a span, or the interpretation of the name as a place. Such cases can be understood from the manual even though the experiments report aggregate performance.

Agreement, adjudication, and release

The first agreement figure is Cohen’s kappa of 0.90 for the two full annotators at token level. Kappa summarizes observed agreement relative to the agreement expected by chance under the measure. The token-level figure describes how consistently the annotators labeled text positions under the workflow they used. It is an agreement statistic about the reference’s construction. The recognition experiments later use different measures to compare a system’s output with the adjudicated labels.

The authors give a second kappa, 0.81, with a restriction they describe in terms of tokens both annotators deemed outside named entities. That description leaves the label categories and construction of the restricted comparison unclear. If the restriction literally retains only positions on which both people assigned the outside label, the retained positions would have a constant shared label, leaving the usual kappa without an informative chance correction. The paper reads both coefficients as strong agreement under its cited interpretation. The full-token comparison has the clearer reporting basis.

After discussion had settled the ambiguous cases, the authors prepared the 7:1:2 training, development, and test partition. This gives the collection designated portions for fitting systems, making decisions during development, and evaluating the resulting recognizer. In the supervised experiment, the paper specifies that updates use only the relevant training portions. Its principal comparison then uses the WikiGoldSK test split as the shared reference. The same partition lets the few-shot experiment draw material from the training side while evaluating on the benchmark’s test side.

The article text originated in Wikipedia under the Creative Commons Attribution-Share-Alike License 3.0, and the authors apply that license to the resulting annotations. They state that they wanted the corpus to be usable in research and commercial settings. The release is called WikiGoldSK, and the project repository also carries that name. It makes the dataset available alongside the experimental code and the trained recognizers. This makes the benchmark a reusable collection with defined splits rather than a set of aggregate outcomes detached from the examples that produced them.

The conventional training route

The supervised experiments begin with three pretrained starting points. XLM-RoBERTa base was pretrained across 100 languages, including Slovak. SlovakBERT was designed specifically for Slovak and pretrained on almost 20GB of text gathered from several sources, among them a crawl of the Slovak web. The paper describes mDeBERTaV3 as using the same pretraining data as XLM-RoBERTa with a different objective. The comparison therefore includes both multilingual and Slovak-specific training histories. Unsupervised Cross-lingual Representation Learning at Scale · DeBERTaV3

The starting point and the toolkit are separate choices. The toolkit provides the machinery for adapting the pretrained system and producing recognition output. In spaCy, words are converted to numerical representations and the task is treated as structured prediction, where the output describes a sequence. Trankit provides pretrained processing pipelines, including a Slovak one, and allows adaptation to a custom corpus. The Transformers toolkit supplies scripts for adapting a pretrained system to recognition. spaCy and Transformers each appear with all three starting points. Trankit appears with XLM-RoBERTa in the experiment. Transformers

For each toolkit and starting-point combination, the authors consider training with WikiANN alone, the two corpora pooled, or WikiGoldSK alone. They use the training portions of the named sources and evaluate all of these choices against the WikiGoldSK test labels. This arrangement lets a reader follow a single implementation as its source of training supervision changes. The benchmark also includes a separate run of the WikiGoldSK-trained recognizers on the Slovak BSNLP2017 material. Here the trained recognizer is carried to another collection while the evaluation reference and text change.

The prompt-based training route

The few-shot experiment uses PETER with SlovakBERT. Its initial prediction task is to fill a blank. To create the text for that task, the procedure keeps the source sentence and adds a short Slovak prompt about a selected token in it. The predictor proposes a completion, and a mapping gives that completion an interpretation as an entity label. The paper calls the template and mapping together a pattern–verbalizer pair, abbreviated PVP. The pattern places the blank in a meaningful cue. The verbalizer supplies the connection between the completion vocabulary and the recognition categories.

The authors express the input for a labeling decision as follows.

x = (s, t)

Here x denotes an input example. The equals sign defines that input as the pair enclosed by the parentheses, with the comma separating its members. The symbol s is the original sentence, and t is the target token drawn from it. The sentence remains available as context when the target changes.

|s|

Here s again refers to the sentence, and the surrounding vertical bars denote its length in tokens. The procedure forms that many inputs from the sentence, because each token in turn becomes the target. A sentence containing a multiword name supplies a labeling decision for each of its constituent positions.

(x, y)

The parentheses and comma group the input x with y, its reference label. The input carries the sentence and target defined above. The label describes the decision the predictor is expected to learn for that target. The collection of these pairs supplies the labeled examples for the initial adaptation.

The paper gives two ways to write the Slovak cue. The following formulas express their construction with English glosses.

P₁((s, t)) = s + “. In that sentence, t denotes a [MASK] entity.”

P stands for the pattern, and the subscript ₁ identifies the longer version. The outer parentheses enclose its argument, the inner pair of s, the source sentence, and t, the selected token. The equals sign gives the produced text. The plus sign represents adjoining the prompt to the source sentence. The quoted portion glosses the added Slovak wording, with t replaced by the selected token. [MASK] is the special token representing the sole blank. The cue explicitly directs attention back to the preceding sentence and asks about what the token denotes.

P₂((s, t)) = s + “. t is [MASK].”

P again means the pattern operation, with ₂ identifying the shorter version. As before, the operation takes the pair comprising sentence s and token t, and the equals sign introduces its output. The plus sign denotes appending the cue to the original sentence. The quoted text glosses the shorter Slovak expression, with t standing for the target to insert and [MASK] marking the blank to predict. This version puts the chosen token directly before a linking verb and leaves the description to be completed.

In either prompt, the completion stage is useful for recognition because the verbalizer interprets the proposed word as a category signal. A cue that encourages useful completions and a verbalizer that gives those completions appropriate meanings have to work together. The paper supplies the wording of both cues and describes the verbalizer’s role. Its account leaves the full list of verbalizer words and their mappings unspecified, so the construction is clearer at the level of the task conversion than at the level of an exact duplication of the training run.

The authors fine-tune a separate SlovakBERT instance, denoted M in their account, for each PVP. The adapted predictors are then used to create a soft-label training set. For this stage the authors sample 1000 sentences from the WikiGoldSK training split and treat them as unlabeled. Their human labels are withheld from the prediction process. A soft label represents the predictor’s support for candidate decisions, allowing the next classifier to train on predicted evidence beyond a single selected category. The eventual classifier is trained on the dataset produced by this stage.

The experiment includes each prompt on its own and a setting with both. Conceptually, the pool of extra text lets the method produce training targets in more contexts than the initial human-labeled sample supplies. Those extra targets depend on decisions learned with that sample. This creates a possible route for useful generalization and a route for passing errors forward. The paper describes the training sequence and reports the combined setting, with the precise rule for aggregating the prompt-derived predictions left open.

Recovering spans for evaluation

The prompt procedure predicts the type associated with each token. The authors then express these predictions in IOB2 so that they can be compared with the conventional baselines. A prefix B- marks the beginning of an entity of the indicated type, and I- marks a continuation. Positions outside named entities are marked as outside. The conversion rule finds consecutive tokens predicted to have the same entity type. It gives the first token the beginning prefix and the remaining tokens the continuation prefix.

This procedure can form a complete span from several adjacent type decisions. Its use of a continuous run also explains the limitation that the authors emphasize. Suppose the text has neighboring names of the same category with no intervening outside token. Correct type predictions across both names still give the rule a single run. It produces a beginning for the first name and treats the rest of the run as continuation, erasing the boundary between the mentions. The final few-shot scores reflect the output of this conversion as well as the predictions that fed it.

Experiments and results

The material behind the scores

Across the collection, WikiGoldSK contains 6,696 sentences and 128,944 tokens. The training portion, listed as 70%, contains 4,687 sentences and 90,616 tokens. The development portion, listed as 10%, has 669 sentences and 12,794 tokens. The test portion, listed as 20%, has 1,340 sentences and 25,534 tokens. The authors compare that test portion with the English WikiGold benchmark’s 1,696 sentences and 39,007 tokens to show the scale of the held-out material relative to the project that inspired the collection.

Locations are the most frequent class across WikiGoldSK, with 4,459 annotations. The totals for people, organizations, and miscellaneous names are 2,739, 1,929, and 1,668, respectively. The test split contains 958 LOC annotations, 549 PER annotations, 378 ORG annotations, and 324 MISC annotations. That ordering matters to the interpretation of the benchmark. A corpus-wide score summarizes performance over the mix that appears in the reference. Readers interested in a particular group of names still need to know how much of that group the corpus contains and whether results are reported separately for it.

WikiANN has 30,000 sentences and 263,516 tokens in the comparison. It provides no document-level split, and its entity inventory contains Person, Location, and Organization. Across those classes, the order by frequency is the same as in WikiGoldSK. The BSNLP2017 Slovak set has 49 documents, 741 sentences, and 14,400 tokens. Organization is its most frequent class, with 273 annotations, followed by Person with 255 and Location with 244. It also contains 55 MISC annotations. The authors suggest that the Wikipedia origin of the former collections and the newswire origin of BSNLP2017 may account for some of the different category balance.

The paper reports precision, recall, and F1. Precision measures how much of the returned output is correct under the reference. Recall measures how much of the reference output is recovered. F1 combines the two through their harmonic mean, so a weak value on either side pulls down the combined score. The practical use of reading the three together is that a higher F1 can arise from different changes in the predictions. One run may return more of the entities while introducing additional mistakes. Another may improve the correctness of its returned output while recovering fewer of the annotated mentions.

Training on automatic labels, human-reviewed labels, and both

The chart holds the toolkit and pretrained starting point fixed, choosing the configuration that produces the highest F1 in the main supervised comparison. Each row changes the labeled data supplied for fine-tuning. The evaluation remains the WikiGoldSK test split.

Transformers with mDeBERTaV3 by training source on WikiGoldSK test F1

The recognizer performs best when it trains on the human-reviewed collection alone.

Transformers with mDeBERTaV3 by training source on WikiGoldSK test F1WikiANN: 0.6056WikiANN0.6056WikiANN and WikiGoldSK: 0.8948WikiANN and WikiGoldSK0.8948WikiGoldSK alone (this paper): 0.9357WikiGoldSK alone (this paper)0.9357
The numbers
System or settingF1
WikiANN0.6056
WikiANN and WikiGoldSK0.8948
WikiGoldSK alone (this paper)0.9357

The leading configuration varies with the training source. spaCy with mDeBERTaV3 has the highest WikiANN-only F1 against the WikiGoldSK test, at 0.6648. Its precision is 0.5925 and recall is 0.7572. With the pooled training sets, Transformers with SlovakBERT leads at 0.9113 F1, with precision of 0.9020 and recall of 0.9208. With the WikiGoldSK training split alone, Transformers with mDeBERTaV3 combines precision of 0.9302 and recall of 0.9412 for the leading 0.9357 F1. The paper describes the gap between the leading silver-only and human-reviewed-only F1 results as over 0.27.

A rank among the systems can depend on which of these training columns a reader follows. In Transformers, the WikiGoldSK-only runs give XLM-RoBERTa 0.9274 F1 and SlovakBERT 0.9221 F1 on the WikiGoldSK test. In the pooled setting, SlovakBERT leads that toolkit and XLM-RoBERTa reaches 0.8915 F1. The paper treats XLM-RoBERTa as a strong baseline because the comparison often puts it close to the Slovak-specific choice. The observed change in order also shows why an architecture name needs to be accompanied by its training condition.

The spaCy results provide a parallel comparison of starting points. With the WikiGoldSK training split and the WikiGoldSK test split, mDeBERTaV3 records 0.9159 F1, XLM-RoBERTa records 0.9049, and SlovakBERT records 0.9004. Trankit with XLM-RoBERTa reaches 0.8941 in the same data setting. These values are all well above the corresponding runs trained only on automatic data. Across all the reported configurations, pooling improves on WikiANN alone, and training on WikiGoldSK alone yields the highest F1 for that configuration. The repeated ordering makes the training-source result broader than the comparison of the leading row in each column.

The score of a WikiANN-trained recognizer measures what that particular public silver resource can teach about the WikiGoldSK task. The training resource has a larger sentence count and a narrower label inventory. Its coverage is therefore different in two senses. It supplies more text, while the WikiGoldSK split supplies explicit examples of the full target task, including MISC. In addition, the human-reviewed annotations were made under the convention used by the test. All these features enter the comparison when the training collection changes.

Carrying Wikipedia training into newswire

The BSNLP2017 scores concern systems trained on WikiGoldSK and evaluated on the separate Slovak newswire set. The following comparison keeps the toolkit fixed at Transformers and changes the pretrained starting point.

WikiGoldSK-trained Transformers systems on Slovak BSNLP2017 newswire F1

SlovakBERT leads the Transformers runs on newswire, with mDeBERTaV3 close behind.

WikiGoldSK-trained Transformers systems on Slovak BSNLP2017 newswire F1XLM-RoBERTa: 0.7986XLM-RoBERTa0.7986mDeBERTaV3: 0.8049mDeBERTaV30.8049SlovakBERT (this paper): 0.8085SlovakBERT (this paper)0.8085
The numbers
System or settingF1
XLM-RoBERTa0.7986
mDeBERTaV30.8049
SlovakBERT (this paper)0.8085

Transformers with SlovakBERT gives the highest F1 across the newswire runs. Its precision is 0.7900 and its recall is 0.8278 on BSNLP2017. The mDeBERTaV3 run in the same toolkit has precision of 0.7793 and recall of 0.8322. For readers comparing those choices, SlovakBERT gives the higher combined score and mDeBERTaV3 recovers more of the reference according to recall. Which run is preferable on a single metric therefore depends on whether the emphasis is on the balance or on coverage alone.

Other toolkits come close on the newswire comparison. spaCy with mDeBERTaV3 records 0.8073 F1, and Trankit with XLM-RoBERTa records 0.8063. spaCy with SlovakBERT records 0.7436 on the same collection. The Slovak-specific starting point thus appears both in the leading run and in a substantially weaker implementation on newswire. The authors describe the strongest mDeBERTaV3 and SlovakBERT results as comparable there, while the WikiGoldSK test favors mDeBERTaV3 in the leading configuration.

The transfer test changes which sentences the recognizers encounter and which annotation decisions count as correct. A WikiGoldSK-trained system has seen museums treated by default as organizations, for instance, while the earlier convention treats them as locations. The newswire collection also differs in the frequency of the entity categories. These are separate reasons a prediction can fare differently under the new reference. The BSNLP2017 result measures their combined effect in a real benchmark comparison.

How much the low-label experiment recovers

The PETER runs use budgets reported as 10, 30, and 50 shots. At each budget, the table shows the longer cue, the shorter cue, and both cues together. The chart focuses on the largest reported budget, where the leading few-shot score is recorded. The two standalone runs also improve across the budgets in the reported F1 results.

PETER prompt configurations at 50 shots on WikiGoldSK test F1

The combined prompts give the strongest result at this labeled-data setting.

PETER prompt configurations at 50 shots on WikiGoldSK test F1Longer prompt: 0.5645Longer prompt0.5645Shorter prompt: 0.5749Shorter prompt0.5749Both prompts (this paper): 0.5845Both prompts (this paper)0.5845
The numbers
System or settingF1
Longer prompt0.5645
Shorter prompt0.5749
Both prompts (this paper)0.5845

At 10 shots, the longer cue gives 0.4720 F1 and the shorter one gives 0.5079 on WikiGoldSK. The combined run leads that setting at 0.5329 F1, with precision of 0.4834 and recall of 0.5937. The short cue alone has recall of 0.6163, so it recovers more of the reference than the combined system. Its precision of 0.4320 leaves it with a lower F1. The combination’s relative strength at this budget comes from balancing the two measures more successfully.

At 30 shots, the ranking changes. The shorter prompt gives 0.5602 F1, with precision of 0.4921 and recall of 0.6502. The combined prompts give 0.5397 F1, and the longer prompt gives 0.5353. This budget is an exception to the paper’s general statement that the two prompts work better together. The distinction matters because the study compares feasible choices for a small training sample. The result a researcher can expect from combining the prompts is conditional on the setting.

With 50 shots, the combined run reaches 0.5845 F1 through precision of 0.5321 and recall of 0.6484. This is the top F1 in the few-shot table. The highest recall at that budget is the shorter prompt’s 0.6688. The shorter prompt’s precision is 0.5041, which places its F1 below the combination. As at the smallest reported budget, the ordering by F1 and the ordering by recall reflect different aspects of the returned predictions.

The best few-shot F1 is below even the lowest WikiANN-only supervised F1 on the shared WikiGoldSK test. The latter is 0.6056 from Transformers with mDeBERTaV3. This establishes the outcome of a comparison between two available options for scarce human supervision. One option uses a small human-labeled sample to direct prompt-based training and supplies predicted targets on further sentences. The other makes conventional use of a much larger automatically labeled collection. Their different access to labeled examples is part of the practical distinction the paper sets out to measure.

What the ablations show

The paper has no dedicated component ablation, and its analysis instead comes from comparisons of training sources, toolkit and pretraining choices, prompt combinations, label budgets, and evaluation collections. These comparisons vary in what they isolate. Changing the prompts while retaining the general PETER procedure addresses a narrower question than switching from the WikiGoldSK test to BSNLP2017. The latter can show whether the ranking carries over to another benchmark, with the reasons for any change still intertwined.

What the training-source comparison isolates

The most direct supervised comparison is within a row of the main results. The same toolkit and pretrained starting point are used on the same WikiGoldSK evaluation, while the source of fine-tuning labels changes. Each configuration performs better with the pooled training material than with WikiANN alone. Each also performs better with the WikiGoldSK training split by itself than with the pool. The result applies when measured on the human-reviewed Wikipedia reference, and its recurrence across the reported configurations supports the authors’ preference for the gold split for that evaluation.

The apparently different messages about mixing follow from the direction of comparison. When the starting option is WikiANN, bringing in WikiGoldSK adds annotated examples in the target convention and raises the observed F1. When the starting option is WikiGoldSK, including WikiANN produces a pooled configuration with lower observed F1 than the gold split on its own. A larger source can therefore be useful for one practical comparison while the highest score comes from using the available human-reviewed source by itself.

What remains bundled is the character of the two training collections. They draw on different selections from Wikipedia. Their label inventories differ, and the human-reviewed labels follow instructions prepared for WikiGoldSK. The paper evaluates those collections as available resources. To measure the effect of human review on its own, a comparison would need to vary how a matched body of text was labeled while holding the inventory and amount of training material fixed. The results here give the performance of the full choices, including their differences in task coverage and their relationship to the test reference.

Where toolkit and starting-point comparisons are informative

XLM-RoBERTa provides the comparison available across all the toolkits. Under WikiGoldSK-only training, the Transformers and spaCy versions both finish above Trankit on the WikiGoldSK test. Under WikiANN-only training, Trankit with XLM-RoBERTa gives 0.6533 F1. That exceeds the 0.6405 from spaCy with the same starting point and the 0.6148 from Transformers. The paper characterizes Trankit as generally weaker, and the WikiANN comparison shows how that description depends on the training source. Trankit’s strong position among the newswire results supplies another reason to identify the test collection when discussing toolkit performance.

Comparing starting points within a toolkit narrows the comparison in a different way. Transformers with mDeBERTaV3 leads the gold-only runs on the WikiGoldSK test, while SlovakBERT leads within Transformers in the pooled setting and on the external newswire evaluation. XLM-RoBERTa can also lead mDeBERTaV3 in specific conditions. For instance, the two spaCy runs on pooled data give 0.8890 F1 for XLM-RoBERTa and 0.8737 for mDeBERTaV3 on the WikiGoldSK test. The authors describe mDeBERTaV3 as generally comparable to or better than XLM-RoBERTa. The individual rows locate the exceptions to that broad reading.

These comparisons establish the performance of complete training setups. The pretrained systems differ in the way they were built, and adopting a different toolkit can change the procedure used to learn from the same labeled text. The paper mentions the objective used to pretrain mDeBERTaV3, for instance. Its baseline table offers evidence about using the resulting pretrained system, while the effect of the objective would require a comparison that varied that choice on its own. The name of a pretrained system identifies an experimental starting point with several properties already bound together.

What changes with prompt choice and labeled budget

The prompt comparison brings all the runs closer to a common procedure. They use SlovakBERT, and the experiment changes whether PETER uses the longer cue, the shorter cue, or both. The shorter prompt has the highest recall at every reported shot setting. At 10 and 50 shots, the combination still leads in F1 because its precision advantage outweighs its lower recall in the combined score. At 30 shots the short prompt leads the combined setting on both precision and recall, which makes the exception visible in each of the underlying metrics as well as in F1.

The shorter cue’s advantage over the longer cue is also informative. Although the longer prompt explicitly refers to the category of an entity, the shorter form scores higher on F1 at each reported budget. The results describe how well the chosen PVPs work through the full training pipeline. To attribute the difference to a feature of the sentence wording, such as its length or the explicit reference to an entity, would call for additional variants changing that feature in isolation. The experiment does show that an intuitively explicit instruction and an effective training cue can be different things.

F1 rises with the shot budget for each of the reported prompt choices. The improvement in the combined setting goes from 0.5329 F1 at 10 shots to 0.5397 at 30 shots and 0.5845 at 50 shots. These are results at the tested settings, and the paper gives point scores for the runs. How often a prompt ordering would recur with different small samples remains an open question. A few labeled examples can support different types of evidence depending on which names and contexts they contain. The available figures give a comparison of the reported choices without an estimate of variability from drawing those examples again.

The experiment trains the eventual classifier with predictions on additional WikiGoldSK sentences. Its comparison varies the prompt setting inside that procedure rather than comparing the procedure with and without the soft-label stage. The interpretation of the final F1 therefore covers both the adaptation on the small labeled sample and the subsequent use of additional text. The result can rank the tested PVP configurations while leaving the independent contribution of the additional text unresolved.

What the transfer and boundary analyses can explain

For each reported WikiGoldSK-trained configuration, the newswire F1 is lower than its F1 on the WikiGoldSK test. The most successful system also changes between the evaluations. This provides evidence about how the complete recognizers carry over with their existing training, with the category conventions and source texts changing together. The annotation manual identifies specific ways a type judgment could differ. The experiment lacks a version of the same newswire text annotated under both conventions, so the size of the contribution from that factor remains undetermined.

The appendix’s account of boundary conversion offers a more specific explanation, but for a potential error instead of a measured share of the result. Given adjacent names of the same category, the IOB2 heuristic can return one continuous span even when the category assigned to every token is appropriate. That follows from the rule itself. Measuring how much it matters would require knowing how frequently the condition arises and examining what the predictors output in those cases. The paper gives the mechanism, leaving the frequency of the failure and its effect on F1 open.

These analyses have different strengths. The supervised source comparison has a recurring result under a common WikiGoldSK evaluation. The prompt and shot comparisons characterize particular PETER settings. The newswire experiment shows performance under a joint change in domain and annotation. The boundary example explains how a specific output error can occur. Reading each at the level its design supports gives a fuller picture than treating every comparison as a test of a single causal factor.

Limitations

Limits stated by the authors

The paper calls WikiGoldSK the largest manually annotated Slovak resource for this task at the time and puts its scale in context. It describes WikiGoldSK as containing roughly 10 thousand labeled entities and gives 35 thousand labeled entities for each of CoNLL-2003 and Czech Named Entity Corpus 2.0. The amount is sufficient for the authors to keep distinct splits and train recognizers, while the comparison with those corpora shows the remaining difference in size. A reader interested in a rare kind of expression within a broad label may have substantially fewer instances to examine than the overall total suggests.

The authors restrict the reach of the few-shot evaluation to Slovak and their new collection. They use SlovakBERT, the chosen Slovak prompts, and the stated decoding rule. The reported performance gap establishes what happened under that combination and leaves transfer of the result to other languages and corpora open. The appendix specifically calls out the inability of the conversion rule to separate consecutive names of the same class. This documented weakness belongs to the tested system and could affect comparisons whenever that span configuration occurs.

Limits that follow from the setup

The article filters define a particular slice of Slovak Wikipedia. They use the 2021 last-change condition and the stated length range to choose material suitable for annotation. The resulting benchmark supplies direct evidence about the articles sampled under those conditions. BSNLP2017 adds evidence for one other source, newswire, under its own conventions. Together they support a comparison across those collections. How the systems handle other kinds of Slovak writing remains outside the evaluation.

The automatic suggestions also set the context for the reported annotator agreement. The reviewers were working with a shared source of candidate labels from SlovakBERT trained on WikiANN. Discussion led to a human-adjudicated reference. The design leaves open whether starting with those suggestions changed which names reviewers noticed or how often they initially agreed. The full-token kappa describes agreement in this workflow. Quantifying a suggestion effect would require a comparison with annotation begun from unmarked text. The wording around the restricted coefficient adds a separate issue of interpretation, since the exact comparison behind 0.81 is unclear.

The silver-only score has to be interpreted against the inventory of WikiGoldSK. WikiANN contains labels for three categories, while the human reference also includes MISC. The reported aggregate comparison offers no separate result confined to the shared categories, and the treatment of the inventory mismatch is left unclear in the presentation of the scores. It follows that the gap measures the performance of the reported training configurations against the benchmark. Its division among missing category coverage, annotation quality, and differences in the source sentences is undetermined.

The aggregate measures leave room for very different patterns of success. For example, the manual specifies how to mark a legal suffix and how to label a museum used as a physical place. Even in a high-scoring run, the aggregate F1 leaves the recognizer’s accuracy on those cases open. The results likewise give no separate measure of how well the outer-span rule is followed or how often abbreviations are detected as independent mentions. The available metrics establish a benchmark result across the dataset’s mixture of cases.

The few-shot comparison also has reporting limits. The paper gives the shot budgets and the origin of the additional text, while the exact unit and selection procedure for shots are left unspecified. It supplies point results for each setting without a measure of uncertainty across alternative labeled samples. The full verbalizer mapping and the method of combining predictions from both prompts are also left open. Those details matter when attempting to reproduce the precise comparison or assess the stability of the ordering at a given budget.

Finally, the conventional and PETER systems use different amounts and kinds of supervision and different routes to span output. A conventional classifier fitted to the very same small labeled sample would help identify the value of the prompting and soft-label procedure at equal human supervision. A separate comparison of boundary conversion rules would help identify the contribution of that stage. The published runs answer which complete systems score higher under the conditions the authors chose. They leave those narrower questions about the learning procedure and span recovery for separate experiments.

What came after

The release gives subsequent Slovak recognition studies a human-reviewed training source, a defined Wikipedia test split, and documented scores for systems trained with automatic, human-reviewed, and pooled labels. The external newswire evaluation provides a comparison under a different source and labeling convention. The study’s discussion of span boundaries also makes clear which assumption was built into its prompt-based baseline. No subsequent citing study is identified here that documents reuse of the corpus, annotation manual, or experimental setup.

Cite

Cite as David Suba, Marek Suppa, Jozef Kubik, Endre Hamerlik and Martin Takac. 2023. WikiGoldSK: Annotated Dataset, Baselines and Few-Shot Learning Experiments for Slovak Named Entity Recognition. Proceedings of the 9th Workshop on Slavic Natural Language Processing 2023 (SlavicNLP 2023).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2023.bsnlp-1.16

@inproceedings{suba2023wikigoldsk,
  title = {{WikiGoldSK: Annotated Dataset, Baselines and Few-Shot Learning Experiments for Slovak Named Entity Recognition}},
  author = {David Suba, Marek Suppa, Jozef Kubik, Endre Hamerlik and Martin Takac},
  booktitle = {Proceedings of the 9th Workshop on Slavic Natural Language Processing 2023 (SlavicNLP 2023)},
  year = {2023},
  doi = {10.18653/v1/2023.bsnlp-1.16},
  url = {https://doi.org/10.18653/v1/2023.bsnlp-1.16}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/suba-2023-wikigoldsk-annotated-dataset-baselines-few/