Elamur Research

Developing a Named Entity Recognition Dataset for Tagalog

Paper · 2023 · Lester James V. Miranda

Summary

Finding names in a news story means deciding which words belong to each mention and what those words refer to. A title can point to the person who holds an office or to the institution itself. The surrounding sentence may settle the question, but a Tagalog system needs examples that show how to make that distinction. Miranda’s paper introduces TLUnified-NER, a public dataset for named entity recognition. Drawn from Tagalog news, it contains ∼7.8k documents. Its labels cover people, formally organized groups, and places. Political territories and other geopolitical entities fall under Location along with geographical features.

The team selected news material from the larger TLUnified collection. Three native speakers marked the same batches of text, compared difficult cases in meetings, and refined their instructions between rounds. The paper reports a mean pairwise Cohen’s κ of 0.81 for the measure labeled “all tokens” and 0.65 for the measure focused on annotated tokens. Cohen’s κ compares observed agreement with the agreement expected from the annotators’ label frequencies. A separate comparison of their annotations gives a mean F1 of 0.91. The lower κ for annotated tokens draws attention to the part of the task where people had to make decisions about names, including where to place a boundary or which category to assign.

On the TLUnified-NER test split, the spaCy recognizer trained without extra word representations obtains 84.57 overall F1. F1 rewards finding the reference mentions while avoiding extra predictions. The highest overall score, 90.34, comes from adapting RoBERTa Tagalog to the labeled data. This setup also has the highest F1 for each entity category. The study separately gives several systems a written extraction instruction without labeled examples. GPT-4 leads that experiment with 65.89 F1 on the same test split. The paper limits that comparison to the prompt it tested, since changing the wording or the prompting procedure could change the outcome.

The study also examines WikiANN, whose Tagalog material contains fragments and labels that the team judged problematic. The project reannotated the WikiANN test texts using its own guidelines. Original and revised labels have particularly little overlap for Organization. Across the tested configurations, training on TLUnified-NER and evaluating on the revised WikiANN test material gives higher F1 than transferring in the opposite direction. The test collection changes with the training collection, so the result reflects both sides of the transfer. The public release includes the dataset and processing code. The strongest evidence concerns published Tagalog news and the recognition decisions defined by the corpus’s label inventory.

Deep dive: Developing a Named Entity Recognition Dataset for Tagalog

TLUnified-NER provides human-annotated Tagalog news for recognizing people, organizations and places, with tests of supervised and zero-shot extraction. · about 33 minutes to read

The problem and its context

What an extraction system has to recover

A name in running text has both a position and a function. In the examples used to introduce the dataset, Ilog Pasig illustrates the extent of a geographical name. Selecting only Pasig would capture part of that expression. Assigning Location to the whole expression answers a second question, about what the selected words identify. The unit that brings those decisions together is a span, a stretch of text with a beginning and an end. A named entity annotation associates that stretch with a type.

The difference becomes important when the output goes on to serve another task. A collection of reports can contain references to people who made announcements, agencies that carried out decisions, and places affected by events. Marking names supplies a way to retrieve those parts of the reports in a structured form. It is an early step in information extraction. The paper points to the CoNLL shared tasks and research on neural recognizers when explaining why this step is useful. Neural Architectures for Named Entity Recognition

The benchmark’s categories define the level at which it answers the question of what a name refers to. Location, for instance, covers a river and a country. Those examples differ in the world, but an answer that marks either with LOC follows the scheme. Likewise, the task asks for a Person label on a qualifying mention. It makes no further distinction between different people with the same name. The reference labels concern how far the mention extends and which of the available types applies.

Context can matter even when a name or title is easy to spot. The paper’s error discussion uses Ombudsman, which can refer to an individual or to an organization. A lookup that associates the word with a single category would give the same answer in both uses. A labeled news example can instead show what category an annotator chose in a particular passage. For that example to work as training material, the choice has to follow a convention that can be applied to other passages too.

Why a Tagalog corpus was needed

The paper describes Tagalog as a major Philippine language, citing a count of over 28 million speakers in the country. It also emphasizes the close relationship between Tagalog and Filipino in vocabulary and grammar. Its account of Tagalog mentions an agglutinative structure, in which words can be built up using affixes, and several accepted orders for the verb, subject and object. These observations describe the language of the task. The project’s immediate motivation is a shortage of resources for learning and testing particular decisions in that language.

A large collection of ordinary text and a set of training examples for recognition serve different purposes. The text collection gives a system examples of words and how they occur together. An annotated training set identifies which occurrences count as names and assigns the intended categories. The paper already had access to the former through TLUnified. The project set out to produce the latter in a form that others could inspect and use. The scarcity the paper describes is characteristic of work on low-resource languages.

WikiANN offered an existing starting point for Tagalog. The paper describes it as silver standard, meaning that its labels come from an automatic process instead of the kind of manual review used to build TLUnified-NER. It was created through a framework with multilingual reach. The concern here is specific to its Tagalog portion. The paper reports that some mentions are marked as the wrong type and that many texts are fragments. A mislabeled name supplies an unwanted example of how to assign a category. Fragmentation can affect the evidence available for a decision because a name may be left without the passage that explains its use. Cross-lingual Name Tagging and Linking for 282 Languages

The Filipino Storytelling corpus offered manually established labels. Its inventory, however, was designed for a different setting. Categories such as Humans & Body and Natural Environment reflect the distinctions that project wanted to make. A recognizer evaluated on those categories is being asked a different question from one using the Person, Organization and Location labels adopted here. The paper treats the storytelling corpus as a valuable human-annotated resource whose conventions fit its own domain.

A further source of Tagalog material was the LORELEI project. The paper describes its language packs as unavailable to the public. A resource can contain suitable language data and still be difficult to adopt as a shared benchmark if researchers cannot use the same examples. The gap identified by Miranda therefore involves several properties together. The labels need to be usable for a conventional recognition task, the text needs to provide a reasonable setting for those labels, and the material needs to be accessible for independent experiments.

The paper calls TLUnified-NER a gold-standard resource. In this setting, that means people marked the texts according to a documented scheme and the project assessed how consistently they did so. Gold-standard labels give a system a reference to learn from and give researchers a common basis for comparing answers. Their scope is defined by the annotation task. A name can be meaningful to a reader while falling outside the categories the project chose to record.

How earlier tasks informed the design

The paper takes published news as its domain partly because it resembles the material used in the CoNLL recognition tasks. Those earlier benchmarks also inform the compact set of entity types. TLUnified-NER makes an explicit departure by leaving out Miscellaneous. The paper gives reduction of annotator confusion as the reason. Without a catch-all category, the annotation scheme gives people a narrower set of decisions to make when they encounter a name that falls outside the main classes. CoNLL-2002 shared task and CoNLL-2003 shared task

The initial annotation manual took much of its direction from the Automatic Content Extraction program, or ACE. The inventory and the manual serve different purposes. An inventory names the kinds of entities a project will mark. A manual tells a reader how to recognize those kinds in actual text. A project can draw on an established approach to writing detailed instructions and still organize its own benchmark around a smaller set of labels. Automatic Content Extraction program

Published news gives the task a reasonably coherent setting while allowing a range of subject matter. A political story may name an office, an official and a jurisdiction. A weather report may present places in quite different surroundings. The paper’s aim was to document how modern Tagalog is used in such reporting and to build a reference for extraction in that setting. Choosing this domain establishes which examples the benchmark makes available and which kinds of writing its scores can speak for.

The method, step by step

Select the source texts

TLUnified-NER starts with TLUnified, a collection assembled for pretraining, the stage at which a system learns from a broad supply of text before it is adapted to a particular task. The parent collection combines news reports, material processed from CommonCrawl, and other datasets. The annotation project manually filtered the collection for news. At this stage the work was deciding which passages to include. Entity marks were added afterwards through linguistic annotation.

The selected reports come from different online outlets with a print publication or news channel in Metro Manila. The material spans 2009 to early 2020. The topics the paper names include weather, politics and popular science. The location of the news outlets describes the source of the reports. The locations mentioned within those reports are a separate matter and can include entities such as rivers or countries. In dataset terms, the first fact describes where the material comes from and the second describes what an annotator can find in it.

The work then proceeds from selecting a passage to creating a reference for it. A passage is made available to the annotators, who mark names under the available categories. They work on shared batches so the project can compare their answers. Discussions of those answers feed back into the guidelines. Once the labeled corpus is available, its splits support training, development analysis and evaluation.

From Tagalog news reports to a recognition benchmark

The steps in order.

From Tagalog news reports to a recognition benchmarkStep 1: Filter TLUnified for news reports1. Filter TLUnified for news reportsStep 2: Draft guidelines for the chosen entity types2. Draft guidelines for the chosen entity typesStep 3: Send shared batches to native Tagalog speakers3. Send shared batches to native Tagalog speakersStep 4: Highlight mentions and assign entity labels4. Highlight mentions and assign entity labelsStep 5: Review difficult cases and update the guidelines5. Review difficult cases and update the guidelinesStep 6: Monitor agreement and performance as annotations accumulate6. Monitor agreement and performance as annotations accumulateStep 7: Train recognizers and assess them on held-out text7. Train recognizers and assess them on held-out text

Decide what counts as a mention

Annotators choose a sequence of tokens, the units into which the text is divided. A name can fit within a single token or extend over several. The category is attached to the sequence as a whole. A multiword name such as Juan de la Cruz thus calls for a decision about the extent of the personal name as well as the label PER. For a short expression, the extent may be easier to determine while the category still needs interpretation.

Person, abbreviated PER, applies to human beings. The category can cover an individual or a group of people, and the paper gives Jose Rizal as one of its examples. Organization, or ORG, covers corporations, agencies and other formally structured groups. The examples include Meralco and DPWH. A human group and an organization are both made up of people. The annotation question is whether the expression names human beings as such or identifies a body defined by an organizational structure.

Location, or LOC, covers named geographical areas and features as well as geopolitical entities. Manila, Pilipinas and Ilog Pasig illustrate the breadth of that class. A writer may refer to these places for different reasons, but the recognition target treats them at the same level. A system that correctly identifies the references receives credit under LOC without having to supply a separate category for a river, city, or country.

The paper’s illustration of the labeling interface shows a report about fallen billboards. It brings together Manila, EDSA and Miriam Defensor Santiago within the account of an event. Such a passage makes the assignment easier to picture than an isolated list of example names. The annotator has to locate each relevant expression among words that describe events, injuries, property and a call for action. Each marked expression has its own boundaries and label. The material between them remains in the passage and can help establish what the highlighted expression means.

That distinction between the mention and its surroundings carries through to the computational task. Context can give evidence that an expression names a person or an institution without belonging inside the marked span. Conversely, a word that would have little significance on its own can belong inside a longer name. The purpose of highlighting the name in the original passage is to record the result of both judgments in a form that can be scored.

Run overlapping batches and revise the guidelines

The annotation interface was Prodigy, hosted on Google Cloud Platform. The project used Prodigy’s router to distribute work and its ner.manual interface for marking spans. A highlight in the passage identifies an occurrence at a particular position. If the same written name appears several times, those occurrences can be selected separately. Working in the text also makes disagreements easier to inspect because an annotator can see the words that led to a choice.

Three native speakers annotated the data, including Miranda. They were assigned the same examples within each batch, creating overlap by design. A workflow that gave each person completely different material could cover more distinct passages for the same quantity of labeling, but would leave little common material for comparing judgments. Here the common batch was how the project could examine choices made on the same names in the same context.

The paper describes rounds lasting two to three weeks and reports six rounds over 18 weeks. The project paid its annotators above the country’s minimum daily wage within a fixed budget. Each round ended with a meeting. The participants brought passages that confused them, appeared inconsistent with the existing guidelines, or presented a case worth discussing. The process gave them a regular chance to work out how instructions drafted in advance actually applied to the news they had selected.

A disagreement can arise for several reasons. One person may recognize a name that another overlooks. Both may identify the name while disagreeing about the first or last token. They may select the same extent and assign different categories. The meeting can turn such a difference into a concrete question for the manual. If the issue is how to classify an office title in context, for instance, a clearer category rule may be more useful than simply recording which annotator chose which label. The paper describes the guidelines as a product of this recurring review.

The project set a target of ∼10k examples, with the annotation budget as an alternative stopping condition. It also monitored a training curve, which relates performance to the amount of annotated material used for learning. The criterion in question asks whether F1 continues to improve during the final quarter of the training data. Continued improvement there would suggest that further labeling might pay off. This check concerns the usefulness of additional examples to a recognizer. Reviewing a disputed annotation answers the different question of what those examples should teach.

The release makes the corpus available through Hugging Face. The guidelines, processing code and experiment materials are made available through the project’s calamanCy repository on GitHub. Together these materials give readers access to the texts and labels, the conventions behind them, and the setups used to produce the benchmarks.

Measure reproducibility of the annotations

The central agreement question is what happens when different people face the same passages. For each pair of annotators, the study compares the labels they produced and then averages the results over pairs. This makes the reported scores summaries of overlapping work. The comparison is between people applying the scheme, whereas the predictive benchmarks compare an automated answer with the corpus reference.

Cohen’s κ takes the observed level of agreement and adjusts it using the agreement expected from the two sets of label frequencies. This adjustment matters in a task where many words can be marked outside any named entity. If an annotator gives that outside label frequently, some matches are expected simply because the label is common. The paper reports κ for an all-token view and for an annotated-token view. It describes the latter in terms of positions at which at least one annotator marked an entity, so a disputed detection can enter the comparison alongside a dispute about category or extent.

The other measure is F1, calculated by treating one annotator’s work as a reference for comparison with the other’s. The share of proposed answers that match the reference is the precision. Recall is the share of reference answers that were recovered. F1 is their harmonic mean, so a weak value on either side weighs on the score. A person who marks very few names might agree with the reference on most of those selections and still miss a large part of the reference. F1 reflects both aspects of that comparison.

Agreement among people gives information about how consistently the conventions can be applied. It also provides a way to follow the annotation project while it is running. The paper plots agreement by round, in addition to reporting averages. The batches provide different opportunities for agreement and disagreement, and the guidance can change between them. The point of measuring successive rounds is to observe the process as examples are gathered, while the aggregate scores describe the combined work.

Characterize the kinds of spans in the corpus

The paper supplements the example and token counts with span length and measures of how distinctive the words are. Span distinctiveness, abbreviated SD, concerns words in the entities. Boundary distinctiveness, or BD, concerns words at their edges. The comparison in both cases is with other material in the corpus. The distributions are unigram distributions, meaning they summarize occurrences of individual words without representing the sequence of neighboring words.

The paper describes these measures through Kullback–Leibler divergence, commonly shortened to KL divergence. This measures how one probability distribution differs from another. Applied here, it indicates how much the pattern of word use in a span or at its boundary differs from the comparison text. The paper gives the measures in prose. It supplies no explicit equations for the agreement measures, the distinctiveness scores, or the training procedure.

A recognizer can potentially use distinctive wording as a clue that it has reached an entity or one of its edges. A word that appears frequently both in names and in other text offers weaker evidence on its own. In a multiword name, the task may involve recognizing an unusual central word and still deciding whether the neighboring words belong to the annotation. SD and BD summarize different aspects of that problem. Their values characterize the material available to learn from. The predictive experiments measure the success of particular systems at using that material.

Train the recognizer with different word representations

The supervised experiments use a transition-based spaCy recognizer. A system of this kind assembles an answer by taking successive actions. At each stage it has a current state, and an action advances the analysis of the text and the boundaries of a possible entity. This is how the tagger constructs marks in the passage from a series of smaller choices.

The transitions use BILUO, a scheme for representing the positions of tokens relative to a span. B is the start of a span that extends over multiple tokens. I is an interior position, and L is the last token of such a span. U marks a complete entity occupying one token. O is used outside the labeled entities. The entity type identifies what the resulting span denotes. Positions and types together allow the tagger to say that words form a single mention and that the mention belongs to a given category.

A convolutional neural network chooses transitions, using a maxout activation function. The convolutional computation combines patterns from parts of the input into features for the decision. Maxout produces an activation by taking the largest of a set of candidate values. The paper keeps the transition-based recognizer in place for the main supervised comparison. It changes the representations available to the recognizer as it learns which action to take. These numerical descriptions of words are called word embeddings.

The baseline learns from the annotated corpus without additional pretrained static or contextual vectors. Its output still has the same categories and uses the same transition scheme. This makes it a reference for the benefit of adding word representations to the training setup. It also tests whether the labeled material itself contains enough recurring evidence for the recognizer to learn the task.

A second setup adds static Tagalog fastText vectors. Static here means that a word has a supplied representation independent of the particular sentence in which it occurs. The experiment also initializes weights through a pretraining task that predicts some of the bytes at the beginning and end of words. The bytes belong to UTF-8, the encoding used to represent the text. Predicting those parts of a word is a way of learning from word forms before training on entity labels. The fastText result therefore belongs to a configuration that combines static vectors with that initialization procedure. Enriching Word Vectors with Subword Information

The monolingual contextual setup starts with RoBERTa Tagalog. A contextual representation can vary for different instances of the same word because it depends on the surrounding text. In the case of a term like Ombudsman, the representation can therefore include evidence from the wording around the title. The project adapts the pretrained representations on the recognition examples. This further training on the target task is fine-tuning.

The study also tests XLM-RoBERTa and multilingual BERT as sources of contextual representations. The paper says Tagalog was included in their pretraining material but was underrepresented. These runs examine whether representations learned across languages transfer to the annotated Tagalog task. The comparison covers a monolingual setup and particular multilingual alternatives, each with its own pretraining background. The BERT family is represented in the experiment by multilingual BERT.

Ask for the same categories through a prompt

The instruction-only experiment gives a system a passage and asks it to extract the named entities. The template names the categories and specifies a simple response format. The answer should group strings under PER, ORG and LOC, separating entries within a group with commas. The instruction for LOC includes geopolitical entities. This supplies each system with the same statement of the task and the same requested organization of its answer.

The paper calls the experiment zero-shot because the prompt provides instructions without worked examples. A system has to apply what it already learned before receiving the task to the passage it sees at evaluation time. The trained tagger has a different source of evidence. During training it has access to actual examples of how the project marks entity boundaries and assigns labels in news.

The answer formats capture different amounts of positional information. In a supervised tagging prediction, the span is specified by its location in the input. In a prompted response, a string and its category say which name the system believes it found. A name that occurs once may be easy to associate with its occurrence. A recurring string leaves a further question about which occurrence or occurrences the answer represents. The prompt experiment evaluates this extraction procedure as a whole on the news test set.

Experiments and results

The training, development and test material

The training split contains 6252 examples and 198,579 tokens. The development split contains 782 examples and 25,069 tokens. The test split also has 782 examples and contains 25,100 tokens. The uses of those splits are distinct. The supervised tagger learns from the training labels. The inspection of its mistakes uses development material, and the main embedding comparison uses the test material. This distinction matters because the paper reports results from both kinds of evaluation.

Person is the most frequent type in each split. It has 6418 spans in training, 793 in development and 818 in test. Organization has 3121 spans in training, 392 in development and 423 in test. The corresponding Location counts are 3296, 409 and 438. These are counts of mentions, whereas the example counts describe the passages in which those mentions occur. A single passage can yield several annotations of the same type, annotations of different types, or little material relevant to the entity scheme.

Mean span length is 1.49 for training, 1.51 for development and 1.48 for test. Those averages describe a task in which spans are usually short. They still allow names that require decisions across several tokens. A person’s full name, for instance, poses an extent question even if another mention of that person elsewhere in the report uses fewer words.

Span distinctiveness is 2.66 on the training split and 2.77 on both development and test. Boundary distinctiveness is 1.26 on training, 1.37 on development and 1.34 on test. The statistics give a view of the lexical evidence in each split at the level of the whole span and its edges. They are useful for describing the corpus alongside the counts. The category results in the benchmark are a separate account of which entity types the systems handled successfully.

How closely the annotators agreed

The mean pairwise Cohen’s κ is 0.81 for the study’s all-token measure and 0.65 for its annotated-token measure. The mean pairwise F1 is 0.91. The κ results are named here as they appear in the agreement table. The annotated-token view directs attention to words where someone has recognized entity material and another annotator can agree, omit it, or make a different boundary or type decision.

The F1 result describes the match obtained by using annotators’ marks as the answers and reference. It uses a different rule for summarizing a pair’s behavior from κ and can be read alongside both κ figures. Together the results show broad agreement while preserving evidence that the entity-focused comparison is more demanding. They give substance to the paper’s description of the corpus as a manually checked reference. The separate round-by-round plot records the trajectory of agreement while labeling and guideline revision were in progress.

Supervised performance on the news test split

The paper reports test F1 across three trials for each representation setup. The chart displays the central overall F1 scores. RoBERTa Tagalog leads the set of tested configurations, and the baseline supplies the point of comparison for every added representation.

Overall F1 by representation setup on the TLUnified-NER test split

RoBERTa Tagalog leads the supervised comparison, with fastText next.

Overall F1 by representation setup on the TLUnified-NER test splitRoBERTa Tagalog (this paper): 90.34RoBERTa Tagalog (this paper)90.34fastText: 88.90fastText88.90XLM-RoBERTa: 88.03XLM-RoBERTa88.03Multilingual BERT: 87.40Multilingual BERT87.40Baseline: 84.57Baseline84.57
The numbers
System or settingF1
RoBERTa Tagalog (this paper)90.34
fastText88.90
XLM-RoBERTa88.03
Multilingual BERT87.40
Baseline84.57

The exact overall entries in the paper give RoBERTa Tagalog 90.34±0.02 and the baseline 84.57±0.02. The fastText entry is 88.90±0.01. XLM-RoBERTa and multilingual BERT obtain 88.03±0.03 and 87.40±0.02, respectively. Each configuration with extra representations has a higher central F1 than the baseline on this test. The baseline itself provides evidence that the task can be learned from the annotations with the transition-based approach.

The balance between static and contextual information depends on the particular system supplying it. The fastText configuration places above both multilingual systems on overall F1. RoBERTa Tagalog, which uses contextual representations, is the leading configuration. These results rank the complete setups used in the study. They also make it useful to look at the category results. Several of the setups in the middle of the overall ranking have different strengths when the evaluation is restricted to a specific type.

Person has the highest category F1 in every supervised configuration. The baseline scores 87.85±0.01 for Person on the test split. With fastText the score is 91.20±0.02, and the RoBERTa Tagalog entry is 92.18±0.01. XLM-RoBERTa obtains 91.95±0.04 and multilingual BERT obtains 90.78±0.03. The leading setup performs well on the most frequent type of mention, and the alternative representations also improve on the corresponding baseline figure.

Organization is the lowest-scoring type for every configuration. The baseline Organization score is 74.80±0.02. RoBERTa Tagalog reaches 87.30±0.00 and fastText obtains 85.39±0.03. The Organization entries for multilingual BERT and XLM-RoBERTa are 85.08±0.01 and 84.84±0.02. The class-level results make the residual difficulty visible even after the representations improve the overall score. They also give the authors a reason to look for contextual cases where an institutional reference might be mistaken for another kind of name.

Location falls between Person and Organization in each setup. The baseline obtains 81.03±0.01, and the RoBERTa Tagalog configuration reaches 90.01±0.02. XLM-RoBERTa records 88.92±0.01. The fastText and multilingual BERT results are 88.38±0.01 and 88.45±0.03, respectively. Both multilingual configurations are ahead of fastText on the reported Location scores. A reader interested specifically in locating places would therefore see a different ordering among those alternatives from the one in the overall chart.

RoBERTa Tagalog’s lead extends across the separate classes. This is the clearest evidence that its overall performance applies broadly within the study’s inventory. For the other configurations, an overall rank gives a less complete description. The news corpus includes more Person spans than either other type, but the purpose of the separate rows is broader than tracking frequency. They show whether a recognizer handles each distinction well enough for the particular extraction goal a reader has in mind.

Crossing from one Tagalog dataset to another

The cross-dataset experiment evaluates transfer in opposite directions. In one direction, the study trains on the Tagalog portion of WikiANN and tests against the TLUnified-NER reference. In the other, it trains on TLUnified-NER and tests on WikiANN texts. For that direction the team annotated the WikiANN test material afresh under the TLUnified-NER guidelines. The WikiANN training split used in the first direction retains its silver-standard labels.

Reannotating the test material gives the evaluation a reference that follows the same rules as the news corpus. It keeps a recognizer from being scored solely against the original WikiANN marks that the project questioned. The words of the WikiANN test passages still come from that corpus, with the properties of those passages intact. Consequently, the revised test asks whether the tagger can apply the intended categories and boundaries to material from another source.

F1 on the reannotated WikiANN test split after training on TLUnified-NER

Multilingual BERT has the highest reported score for this direction of transfer.

F1 on the reannotated WikiANN test split after training on TLUnified-NERMultilingual BERT (this paper): 59.26Multilingual BERT (this paper)59.26RoBERTa Tagalog: 58.90RoBERTa Tagalog58.90XLM-RoBERTa: 57.67XLM-RoBERTa57.67fastText: 45.09fastText45.09Baseline: 30.24Baseline30.24
The numbers
System or settingF1
Multilingual BERT (this paper)59.26
RoBERTa Tagalog58.90
XLM-RoBERTa57.67
fastText45.09
Baseline30.24

With TLUnified-NER as the training source, multilingual BERT reaches 59.26±0.03 on the reannotated WikiANN test set. The corresponding RoBERTa Tagalog score is 58.90±0.03, and XLM-RoBERTa gives 57.67±0.01. The fastText setup scores 45.09±0.02. The recognizer trained without additional embeddings yields 30.24±0.02. Each entry summarizes F1 over three trials. The best configuration on the original news benchmark thus has a close competitor that leads on this target.

With WikiANN as the training source and TLUnified-NER as the test target, XLM-RoBERTa leads at 31.28±0.01. Multilingual BERT follows with 29.20±0.03. FastText records 24.41±0.01, RoBERTa Tagalog records 23.38±0.02 and the baseline records 19.92±0.03. These test F1 results use the same trial procedure. Each representation’s central score in this direction is below its score in the direction that uses TLUnified-NER for training.

The paper interprets that pattern in light of WikiANN’s fragments and annotation problems. A recognizer trained on carefully labeled news has examples of where names occur in context and of how the project’s categories apply. Those examples may help on the WikiANN passages when the revised reference asks for the same distinctions. At the same time, transferring in the reverse direction brings in a new test target. Differences in the lengths, contexts or demands of the test passages can contribute to the directional pattern.

The closer test of annotation disagreement compares the original and revised WikiANN labels on the same material. It yields overlap F1 of 67.95 for Person, 00.59 for Organization and 35.17 for Location. Here the alternatives being compared are reference annotations, and there is no trained tagger in the comparison. The Organization score gives the clearest evidence that the original marks and the revised application of the guidelines diverge sharply. The Person score shows that the extent of the disagreement depends considerably on the entity type.

Extraction from instructions on the news test split

The prompt comparison returns to the TLUnified-NER test set. The paper reports F1 across three trials for each system, using the same instruction template. GPT-4 has the highest central score at 65.89. Claude v1 and GPT-3.5-turbo are the next highest on this test. The appendix gives the instruction used, so the reported ranking can be interpreted against a concrete task description and requested answer format.

Zero-shot extraction F1 on the TLUnified-NER test split

GPT-4 scores highest among the systems given the shared extraction prompt.

Zero-shot extraction F1 on the TLUnified-NER test splitGPT-4 (this paper): 65.89GPT-4 (this paper)65.89Claude v1: 58.88Claude v158.88GPT-3.5-turbo: 53.05GPT-3.5-turbo53.05Command: 25.48Command25.48OpenLLaMa: 15.09OpenLLaMa15.09Dolly v2: 13.07Dolly v213.07Falcon: 8.65Falcon8.65StableLM v2: 0.25StableLM v20.25
The numbers
System or settingF1
GPT-4 (this paper)65.89
Claude v158.88
GPT-3.5-turbo53.05
Command25.48
OpenLLaMa15.09
Dolly v213.07
Falcon8.65
StableLM v20.25

The leading test result is 65.89±0.44 for GPT-4. Claude v1 records 58.88±0.03, GPT-3.5-turbo records 53.05±0.42 and Command gives 25.48±0.11. Within the shared prompt procedure, the systems differ considerably in how closely their extracted names agree with the reference annotations.

The study uses 7B-parameter variants of OpenLLaMa, Dolly v2, Falcon and StableLM v2 because of budget constraints. Their test F1 entries are 15.09±0.48 for OpenLLaMa, 13.07±0.14 for Dolly v2, 8.65±0.04 for Falcon and 0.25±0.03 for StableLM v2. Those entries belong to the specific variants and task conditions the paper evaluates.

The supervised baseline’s 84.57 on the news test split is above the strongest result obtained using the prompt. The comparison describes what happens when a recognizer is trained on annotated examples of the target task and when extraction is elicited through the paper’s written instructions. The benchmark makes both methods answer to the same corpus. It also gives each a different way to obtain and express information about the task. The result is evidence for the supervised approach under these conditions, with the breadth of the prompting conclusion limited by the instruction used.

What the ablations show

What changes when the recognizer stays the same

The paper gives no systematic component-by-component ablation of its strongest setup, but it compares representation configurations under a common recognizer and examines targeted changes for Organization and Location. Keeping the transition-based approach makes those comparisons more informative than a collection of scores from unrelated recognizers. The output structure stays comparable while the information supporting the transitions changes.

The baseline comparison answers whether additional representations help in the tested setups. The headline result answers which tested setup performs best when all its elements are put together. Explaining that advantage at the level of a single ingredient is harder. For fastText, the reported score incorporates both static vectors and weight initialization through byte prediction. For the contextual configurations, the pretrained systems have different training backgrounds. The experiments measure the effect of substituting complete configurations.

The category breakdown adds a further check on the overall result. RoBERTa Tagalog improves across the entire label inventory, while some other representation choices change places in the rankings depending on the category. This helps tie claims about improvement to the kind of evidence the test actually provides. A configuration can contribute to locating entity boundaries, recognizing entity material in the first place, or choosing a category. A category F1 gives the combined result for those decisions.

What the development errors suggest

The paper inspects the baseline on the development split using a confusion matrix. A confusion matrix compares what the recognizer predicted with the corresponding reference labels and shows where the two coincide or diverge. For this inspection the labels are expressed in IOB form. B begins an entity, I continues it, and O marks an outside token. The diagnostic therefore examines decisions at individual token positions, although the final recognizer predicts spans.

The most prominent error the paper identifies is the use of O for tokens that belong to an entity. That pattern can reflect an entirely missed mention or a selection that cuts off some of its words. A matrix at token level shows where the predicted label goes wrong. It leaves the reader to distinguish those span-level possibilities with further analysis. This matters because recovering missing material is a different task from choosing a better category for a mention that has already been found.

The same analysis also identifies category confusions. The paper discusses a passage about a proposal associated with the Ombudsman. The title can designate a particular officeholder or stand for the institution. Those uses present different answers under the annotation scheme. The example illustrates why the surrounding words can matter to classification even when the span itself is short and recognizable. It also motivates testing representations that can carry more evidence about the use of a word on a particular occasion.

Test two routes to more informative features

The first follow-up configuration jointly trains the recognizer with a part-of-speech tagger and makes them share weights. Part-of-speech tagging assigns grammatical categories to tokens. Parameters that serve both tasks can learn features from the grammatical labels as well as from the entity labels. The paper tests this arrangement because those features might help the recognizer make distinctions when the same written expression has different uses. Part-of-speech tagging

The second configuration fine-tunes contextual vectors from RoBERTa Tagalog for recognition. It starts from pretraining and adapts the contextual features using the named entity examples. This is a different source of help from the joint grammatical task. One supplies training pressure from grammatical categories. The other supplies a pretrained representation of words in context and lets the recognition task adapt it.

Both are measured against the baseline on the development set for Organization and Location. The paper gives relative error reduction based on F1. The percentage is relative to the baseline’s error and has a different meaning from the category’s F1 value. For Organization, the shared-weight setup gives +5% and the contextual setup gives +12%. For Location, the corresponding error reductions are +3% and +18%. Under this analysis, contextual fine-tuning produces the greater reported reduction for both categories.

These results support the use of contextual features on the difficult categories and give a scale for the development-set gains. They do not show which individual mentions were corrected by each training change. Some of the gain may come from avoiding O on entity material, some from more accurate boundaries, and some from changing a predicted entity type. The Ombudsman passage supplies a plausible example of the category problem. The error reduction measures the net outcome for each class.

What the fixed-text comparison adds

The WikiANN reannotation is a controlled comparison in a different sense. The same test passages receive two sets of marks, so the words in the passages are held fixed when the labels are compared. This helps separate disagreement about annotation from differences in the texts themselves. The extremely low reported Organization overlap makes clear that the test reference for that class changes materially when the project applies its guidelines.

The two directions of transfer ask what happens when different training collections and different test collections are paired. That comparison shows the consequence of exchanging the corpora as practical resources. The fixed-text comparison narrows the issue to how the references themselves differ. Read together, they show both a substantial discrepancy in annotations and a relationship between the choice of corpus and transfer performance. The score obtained after transfer still reflects the texts and labels that come with the particular pair of splits.

Limitations

Bounds the paper states

The paper identifies news as the domain limit of the corpus. Its outlets and subject matter give a range of modern reporting, but a shared publication style also shapes the words that tend to surround a name and the ways names are presented. A benchmark based on this material directly characterizes recognition on published news. The WikiANN experiment extends the evaluation to one other collection with specially revised test labels. It gives a concrete transfer result for that pairing.

The study also states that it used a transition-based recognizer for its supervised benchmark. The comparison among additional representations is therefore made through a particular way of constructing spans. The paper proposes expanding the evaluation to conditional random fields and to tools such as Stanford Stanza. A conditional random field is an approach to predicting related labels in a sequence. The proposed comparison would examine recognizers that make use of the same reference data through other methods, which remains open in the present study.

The conclusion describes a possible finer annotation scheme, including the possibility of overlapping entities, and an expansion to other major Philippine languages. Those are proposed extensions. In the published task, Organization is one category regardless of the kind of agency or corporation, and Location includes geopolitical and geographical mentions together. Success on the existing categories tells a reader how a system performs at that level of detail. With overlap, the same words could be part of more than one entity, adding another kind of output decision.

The prompting result comes with an explicit qualification. The paper points to prior work on variation in prompt-based performance and limits the comparison to the instruction tested. It mentions PromptNER and chain-of-thought among the approaches the project would like to examine. The scores belong to a shared extraction prompt and the chosen system variants. The authors leave the effects of other prompts and prompting techniques for future experiments. PromptNER and chain-of-thought prompting

What the evaluation design leaves open

The agreement table clearly names the reported κ values as all-token and annotated-token measures. The method description is less clear about the treatment of O, the outside label. It refers to including words marked by at least one annotator for one calculation and describes an all-token calculation while also saying O is ignored. Excluding particular agreements and restricting the set of token positions are different operations. The exact implementation of these choices matters to reproducing the reported figures.

The use of mean agreement over pairs gives a view of the annotation team as a whole. It leaves the distribution of disagreements across types and span lengths open. The headline κ and F1 values could accompany very different patterns of local difficulty. For instance, a scheme might give people clearer guidance about familiar person names than about institutional titles. The paper’s human agreement table does not report separate scores for those cases. The category comparison on WikiANN concerns a different question, namely the match between the original annotations and a newly applied set of guidelines.

The rounds also combine changes in the material with revisions to the guidelines. Agreement can vary because a later batch contains easier or harder cases, because the manual resolves a recurring ambiguity, or because annotators have become familiar with the task. The round-level figure tracks the annotation process that actually took place. A comparison that labeled the same batch under different versions of the manual would be needed to estimate the effect of a particular revision by itself.

The lead of RoBERTa Tagalog holds under the supervised setup used on the news test set. The representation comparison does not isolate the language composition of pretraining from all the other differences among the systems. Likewise, the larger development gains for contextual fine-tuning do not locate the cause of success in a particular category decision. An error breakdown that followed the same mentions through the baseline and its alternatives could show how many improvements involved detection, extent, or type. The reported class scores combine them.

Reannotation gives WikiANN a revised reference while leaving its test passages as they were. The difference between the transfer directions also changes the training texts, the training annotations and the test target. The paper’s judgment about label quality has direct support from the fixed-text overlap experiment and its examples of problematic source material. Attribution of the full transfer difference to label quality would require the training sources to be compared against a common target under more closely matched conditions.

Finally, the instruction-only scores include the consequences of expressing answers as lists. Category headings organize the strings, but the format provides no position for a particular occurrence in the passage. A repeated name raises an alignment question, and a list entry containing only part of a name raises a boundary question. The aggregate F1 gives the outcome for the entire procedure. The paper does not separately measure how much of its result comes from omissions, type errors, boundary choices, or problems expressing the answer in the requested format.

What came after

Broader evaluation for Filipino

Batayan cites TLUnified-NER in work on a Filipino natural language processing benchmark. Its stated goal is evaluation across a broader Filipino setting. The relationship is clearest at the level of evaluation scope. Miranda’s study establishes a reference for a single extraction task, with a domain, a label inventory and worked-out conditions for scoring. Batayan addresses evaluation at the level of a Filipino benchmark. The citation establishes this connection, while the available account leaves the inclusion of any particular TLUnified-NER split or score unspecified. Batayan

FilBench cites the paper in a study framed around both understanding and generating Filipino. Recognition represents one specific kind of understanding within that wider framing. A system has to recover a reference from a passage and classify it in a way that agrees with a human annotation scheme. Generation introduces a separate kind of language use into the benchmark’s scope. The citation places the entity dataset in this broader line of evaluation work, with the details of any direct reuse unspecified. FilBench

Tagalog annotation in other settings

PHMartialLawNER is the closest citing work in language and task. It develops a Tagalog entity recognition corpus focused on the Philippine Martial Law era. Its historical focus changes the setting in which names are collected and annotated. TLUnified-NER draws on modern published news within its stated source years, whereas the later corpus defines the domain around a particular era. The connection establishes a continuation of corpus building for Tagalog recognition. Which guidelines or label conventions carry across is unspecified. PHMartialLawNER

The UD-NewsCrawl Treebank cites the paper in its account of a large-scale Tagalog syntactic annotation project and the challenges of carrying it out. Its target is the grammatical structure of the text. A treebank records that structure, while a recognition corpus records selections and classifications of names. The common concern is how to turn a collection of Tagalog text into a reference for a defined annotation task. The citation links the projects at that level, with their relationship in source documents, tooling or labeling procedures unspecified. The UD-NewsCrawl Treebank

Annotation beyond the entity span

ISO 24617-8 Applied also cites the Tagalog study. It concerns discourse relations in English, Polish and Portuguese, examining how a standard applies when annotators judge connections in meaning between parts of a text. The unit and languages differ from those in TLUnified-NER. The shared methodological concern is applying a common annotation scheme to actual passages, where general definitions have to guide decisions about particular cases. The citation connects the papers on that question, while leaving the specific use of the Tagalog study unspecified. ISO 24617-8 Applied

Cite

Cite as Lester James V. Miranda. 2023. Developing a Named Entity Recognition Dataset for Tagalog. Proceedings of the First Workshop in South East Asian Language Processing.

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

@inproceedings{v2023developing,
  title = {{Developing a Named Entity Recognition Dataset for Tagalog}},
  author = {Lester James V. Miranda},
  booktitle = {Proceedings of the First Workshop in South East Asian Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.sealp-1.2},
  url = {https://doi.org/10.18653/v1/2023.sealp-1.2}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/miranda-2023-developing-named-entity-recognition-dataset/