Elamur Research

Named Entity Recognition for Nepali: Data Sets and Algorithms

Paper · 2022 · Nobal Bikram Niraula and Jeevan Chapagain

Summary

In a Nepali news story, the words that name an organization can also form part of an event name. A suffix written together with a name can make its ending harder to identify. Both cases matter for named entity recognition, the task of finding the extent of a mention in running text and deciding what kind of thing it denotes. Niraula and Chapagain develop EverestNER to make those decisions measurable on a common set of Nepali news articles. Their annotation scheme covers people, places, organizations, events and dates. It specifies, for instance, which parts of a person’s name to include and which temporal expressions qualify for the date label.

The authors mark the original text by character position before dividing it into the units that a tagger reads. This preserves the human judgment about where a mention ends even when there is more than one plausible way to split the written form. In their experiments, they split the text with the help of a list of common suffixes in Nepali, then use the character annotations to label the resulting tokens. On articles that both authors annotated, they report a Cohen’s kappa of 0.74, a measure of agreement that accounts for chance. The released benchmark contains 24,587 entity mentions across 15,798 sentences, with 308,353 tokens in the segmented version. Each article belongs wholly to either the training or the test partition.

The authors compare a dictionary that remembers training mentions, a bidirectional recurrent tagger that scores sequences of labels, and a tagger adapted from multilingual BERT. On EverestNER-test, the dictionary has a micro-averaged F1 of 0.62, the recurrent tagger has 0.81 and the multilingual tagger leads with 0.85. Micro-averaged F1 combines precision and recall after pooling the counts across entity types. The multilingual tagger has precision of 0.87 and recall of 0.84. The recurrent tagger reaches the highest precision, 0.89, while the multilingual tagger finds a larger share of the reference mentions.

The strongest system’s test F1 ranges from 0.91 for dates to 0.44 for events. There are only 312 event mentions in the training partition, and the authors suggest that sparse examples or their small share of the training data could contribute to the difficulty. They also examine cases in which segmentation splits a name, a familiar word receives a label that suits another meaning, or a prediction captures only part of the intended passage. EverestNER makes these problems visible alongside the overall score and gives subsequent systems a common test on which to measure their progress.

Deep dive: Named Entity Recognition for Nepali: Data Sets and Algorithms

EverestNER benchmarks how well dictionary lookup, a recurrent tagger and multilingual BERT identify names and dates in Nepali news. · about 35 minutes to read

The problem and its context

What the recognizer has to return

A news sentence may mention a person, a place and an organization while describing what happened on a particular day. The recognizer’s output is a set of spans, meaning passages with a beginning, an end and a category. The category describes the passage in that occurrence. For a name that takes up several words, each of those words may be needed to identify the mention. For a familiar name embedded in a longer expression, the whole phrase may denote something different from the familiar part. Recovering the extent of a mention and interpreting it are therefore closely related decisions.

The paper’s sample sentence puts this problem in concrete terms. Oli appears as a person, Halchowk as a location and the word for “today” as a date. The expression rendered as Sasastra Police appears within the name Sasastra Police Day and also separately as the name of the organization. In the longer occurrence the event label spans the full expression. In the other occurrence the organization label covers just the organization’s name. A list containing Sasastra Police can help a system recognize that wording, but the nearby words determine which passage is relevant each time.

The authors describe recognition as a way to extract information from text and as a component in other language tasks. For information extraction, a typed span is a piece of information that can be collected from a story. For information retrieval, the entity type can help characterize what a query or document mentions. In question answering, a person span can supply a candidate answer to a question about who did something. The paper also mentions machine translation and summarization. For any of these uses, an incomplete name or a label based on the wrong reading changes the information passed downstream.

A recognizer learns and is assessed against a particular definition of the task. The boundaries of a full name might seem obvious until an honorific, a generational marker or an alias appears beside it. Whether to mark those words depends on the annotation policy. Categories also have a scope that their short labels may conceal. An evaluation of dates can cover expressions about age and duration as well as explicit calendar dates. A shared benchmark makes a comparison meaningful by supplying both the passages to process and a reference that embodies the same choices for every system.

From rules and word lists to context

The paper places automatic recognition in a line of work that began with manually constructed rules and supervised approaches that depended on designed features. A feature is a property of the input made available to the recognizer. Membership in a list of known names is one example. The authors mention support vector machines as an earlier way of learning from such properties. They also discuss conditional random fields, or CRFs, which can use input features to score possible tag sequences. In the paper’s account, CRFs had become a common approach and had performed well on earlier benchmarks.

The authors trace a move toward learning those features from the input itself. Among their examples are Huang and colleagues’ bidirectional LSTM-CRF tagger and Ma and Hovy’s recurrent tagger with convolution and a CRF. A bidirectional recurrent component builds its representation of a position using information from both directions in the sentence. A sequence decoder can use that representation when deciding which tags belong together. One reason to combine the two is that placing a continuation tag involves evidence about both the word at that position and the span already taking shape beside it.

The paper also describes work in which the representation comes from pretraining. The examples include ELMo’s contextual word representations and BERT. A contextual representation can encode different information for occurrences of the same word when the surrounding sentence changes. That property is relevant when an ordinary word can also serve as a given name. The authors point to multilingual pretraining that includes Nepali, including the approach described in Unsupervised Cross-lingual Representation Learning at Scale. In their account, the availability of such representations raised a question that Nepali entity recognition experiments had yet to address.

The starting point for Nepali

The authors situate Nepali among low-resource languages. Their review identifies efforts with different ambitions and different resources. In Bam and Shahi’s Nepali entity recognition study, support vector machines recognized people, places, organizations and a miscellaneous group. The classifiers used word features and gazetteers, or lists used to identify particular kinds of expressions. Those resources covered entity names and clues such as designations, middle names and verbs. The system treated each target category in turn as the category to distinguish from all the others.

Niraula and Chapagain raise several questions about that setup. The report gives them little basis for assessing how the training data were created or how reliably the text had been labeled. They also characterize the classifier as omitting contextual information during learning. A word list can supply evidence that an expression has occurred as a name, but the paper treats the effort required to assemble hand-designed features as a concern for extending this approach. Those concerns cover separate parts of the work, from preparing examples to deciding what information the recognizer receives.

The review describes another earlier effort by Dey and colleagues. It first used a hidden Markov approach with sequences of neighboring items to obtain part-of-speech tags, labels such as common noun and proper noun. It then formed candidate phrases from nouns and looked them up in a gazetteer. The reported material covered 750 sentences. The inventory included person, location and organization as well as number, currency and quantifier. Niraula and Chapagain find the procedure and the origin and use of the training examples insufficiently documented. The choice of categories also illustrates that the scope of Nepali recognition had varied across efforts.

The closest predecessor in their account is the work of Singh and colleagues. That study produced NepaliNER from daily newspapers, with 11,183 entity mentions in 3,603 sentences. Its labels cover people, locations and organizations. The authors tried several bidirectional recurrent configurations, using different word representations and combinations of convolutional components and sequence decoding. Niraula and Chapagain regard the publicly available corpus as a starting point while identifying three gaps in what a subsequent evaluator could recover from the study. The annotation rules and agreement among annotators were undocumented, and the corpus came without designated training and testing partitions.

EverestNER addresses those issues jointly. The research problem includes learning to tag Nepali text and establishing a stable way to judge the output. Fixed partitions decide what examples a system may learn from and which examples are held back for assessment. Written guidance explains the judgments behind the reference labels. Adding events and dates expands the kinds of passages to be found, with definitions that specify how the new labels apply. These decisions turn the task into a benchmark that can be used to compare different recognition approaches on the same material.

The method, step by step

Prepare text while keeping track of the source article

The work starts with 1,000 articles from Setopati, all collected from January 2019. The authors choose news because it regularly mentions named entities. The material spans politics, economics, sports, art, society, blogs and literature. They leave out four articles that are especially long compared with the others. For the remaining material, preparation includes removing markup and extracting sentences from the cleaned text.

The paper describes sentence segmentation as relatively straightforward for this collection. The Nepali sentence-ending mark । and punctuation such as ? and ! give cues for dividing the articles. This first segmentation establishes the passages to annotate and eventually present to a recognizer. The source article still matters because multiple sentences drawn from it will be assigned to the same benchmark partition. Sentence boundaries and article membership thus serve different purposes throughout the procedure.

Dividing a passage into sentences also differs from deciding how to break each sentence into tokens. The authors complete the sentence extraction before marking entity mentions, but defer the finer segmentation within a sentence. For an annotator, the passage of interest is the written expression. For a sequence tagger, it is a run of input units. The intermediate annotation must therefore preserve the span before the experiment settles on those input units.

Mark the exact passage in the written sentence

The motivation comes from Nepali morphology. The paper points to variation in word forms associated with number, gender, honor and tense, along with suffixes that can attach to a word. Different procedures can place a token boundary at different points in the same written expression. If a token covers the last part of a name and an attached suffix outside the name, a single tag on that token cannot record the annotator’s intended boundary. Committing to that tokenization before annotation would entangle the linguistic decision with the segmentation rule.

The authors mark spans by character position with the brat annotation interface. The resulting record locates an occurrence within the sentence and attaches a category to it. In the paper’s illustration, one person mention has boundary positions 31 and 37, and one location mention has positions 40 and 47. Those numbers denote locations in that particular text. A second occurrence of the same name would have its own positions. The annotation can therefore distinguish occurrences even when their written forms are identical.

The same record can support a study of alternative approaches to tokenization. Each new segmentation can be compared with the original character boundaries before any new tagger is assessed. A recognizer that operates directly on characters could also use the span information. In the reported experiments, the authors do segment the sentences and work with tokens. Saving the annotations at the earlier stage lets the released material serve more than that one experimental design.

Decide which expressions count

The annotation guidelines adapt a scheme from a Finnish news corpus discussed in the paper. Their job is to tell the annotators what kind of expression qualifies for each label and how much of the expression to mark. The inventory is PER for person, LOC for location, ORG for organization, EVT for event and DAT for date. The labels give the broad distinctions. The inclusion and exclusion rules do much of the work in defining what a reference span actually looks like.

For PER, an annotator can mark given names, family names and distinctive nicknames. Fictional or mythological people are eligible too, and an alias can be included as part of a longer naming expression. Generational markers belong within the name under the guidelines. Titles of respect, royal titles and name prefixes are left outside, as are terms of kinship and pronouns. A sentence can refer clearly to a person using one of these excluded expressions. The question for the annotator is whether the wording provides a person name that falls within the convention.

The rules for LOC cover named built structures and named places, including natural geography. Named buildings, cities, districts and countries are examples, as are rivers, lakes and seas. The paper’s examples extend to parks and celestial objects. The boundary of the category matters when a text uses a generic geographical term or a nationality expression. A generic reference to a river can be intelligible in its story without qualifying as a location name. The naming expression, when present, supplies the span.

The ORG label covers named bodies such as companies, political parties and news groups. It also applies to government offices, courts, scientific or educational institutions, banks and sports clubs. The examples include organization websites. The expression can contain ordinary words identifying the kind of body, or words that in another context are names for places. The annotator’s decision concerns the name of the organization as it is written, including words that make up the name. A shorter geographical reading can leave out precisely the words that establish which body the sentence refers to.

For EVT, the guidelines cover named occurrences and phenomena. The paper includes expositions and festivals, sporting events, revolutions, battles and disasters. The common requirement is that the expression identifies the occurrence in a way covered by the naming guidelines. This makes event recognition in EverestNER a particular kind of extraction. A news sentence can describe something happening through an ordinary verb without presenting an event name to mark. Conversely, an event name can appear as a multiword noun phrase whose exact extent the annotator must determine.

The categories can meet in cases involving sports. The organization examples include clubs and leagues, while the event examples include named sporting competitions. The wording around a mention can help indicate whether the passage refers to a body or to a competition. The sample involving Sasastra Police illustrates a different source of overlap. A name that qualifies as an organization in a standalone occurrence can help form the expression that names an event elsewhere in the sentence. The guidelines and examples jointly establish how to read such a passage for this benchmark.

DAT covers dates and periods of 24 hours or more, with examples including seasons, years, months and ranges. The guidelines also include age expressions across grammatical forms. Numerical content can occur as digits or be spelled out. A mention can qualify without giving a complete date, and the sample output’s date label for “today” shows that an expression can qualify even when its interpretation depends on the day of utterance. The task records the temporal expression in the sentence. Converting that expression into a calendar value would require an additional decision beyond the assigned label.

These rules explain some of what otherwise might look arbitrary in the training examples. The name of a person can stop before an adjacent title even when the words form a fluent phrase. A date span can include an age even in a story without a calendar reference. A location expression and an organization name can share written material but call for different boundaries. Once the rules are fixed, both annotators and recognizers face the same target. The reference makes their choices comparable at the level of individual occurrences.

Establish agreement before independent annotation

The paper’s authors also did the labeling. They chose the targets, drafted the instructions, and reviewed and discussed them repeatedly. Before working independently, both applied the rules to articles in common. That shared exercise gave them a way to see how their interpretations aligned on the same text, where decisions about the beginning or end of an expression could be compared alongside choices about its type.

They report a Cohen’s kappa of 0.74 and characterize the agreement as substantial. Kappa compares observed agreement with agreement expected by chance. Here its role is to describe consistency between the annotators on the shared material. It measures a different relationship from the precision and recall reported later, which compare a tagger’s predictions with the benchmark reference. Agreement on human judgments is part of establishing how the reference was produced. The test scores concern how well a recognizer reproduces that reference once the target is set.

The annotation effort covered 28,281 sentences from 996 articles. The authors report that 12,820 of those sentences, or 45.33%, contained a mention. At this stage even a sentence without a reference entity has been considered as part of the corpus. It provides an instance in which the recognition task calls for no span. How many such instances appear in the released benchmark is a later selection decision.

Split by article and sample sentences

The paper describes a random 85-15 division of the articles. The larger group, designated for training, is described as 85% of the articles, and the smaller group for testing as 15%. Every sentence follows its article into the assigned group. That keeps the text of any one story on a single side of the evaluation. If a story introduces an organization in a full form and refers to it again later, its introduction and those later sentences are kept together for purposes of the split.

The authors next select sentences from within each article group. They keep every sentence with an annotated mention and take 25% of the sentences without one. Their stated aim is to reduce the predominance of outside tags, which label material that falls beyond the bounds of an entity. The paper points to the CoNLL shared task when explaining the inclusion of entity-free sentences. Those sentences still give a recognizer opportunities to make erroneous predictions in text where the reference calls for none.

The two stages set different properties of the evaluation. Assigning article groups establishes which stories are held out. Selecting sentences establishes how heavily the benchmark represents passages with entities. A sentence with an entity can still contain plenty of words outside that entity, so sampling sentences is a way to influence the tag distribution indirectly. The published training and testing partitions fix the result of those decisions for subsequent comparisons.

Translate character boundaries into tags

The authors segment the word-based corpus by consulting a list of suffixes commonly used in Nepali. They then derive token labels from the annotated character spans. This is the point where a judgment made on the original text becomes a target for a recognizer that works over a sequence of tokens. A token is the unit the recognizer is asked to label, whether it corresponds to a whole written word or a piece separated by the segmentation procedure.

EverestNER’s word labels follow the IOB2 convention used in the CoNLL evaluation tradition. A prefix of B marks the beginning of a mention. I marks a subsequent token in the mention, and O identifies a token outside the annotated entities. A beginning or continuation tag also carries a category. For example, B-PER starts a person mention, and I-PER extends that mention. A person name that fits in a single token can be represented by a beginning tag on its own.

In the sample sentence, the event name receives an event beginning tag and event continuation tags. The standalone organization name receives a separate beginning tag of its own type. A location such as Halchowk can occupy a single tagged token. When two mentions of the same category are adjacent, a new beginning tag signals the start of the next span. This makes the output readable as a set of passages, even though the recognizer supplies it as a line of individual decisions.

The process joins two kinds of boundaries. The character positions specify which stretch of the original text has the annotation. The segmented positions specify the units over which the tagger can express a prediction. Once those units are fixed, recovering a name requires continuing the label across every token in the span and stopping at the appropriate point. An unnecessary split can leave the correct span expressible as a sequence while making that sequence harder for a tagger to choose.

From Nepali news text to evaluated entity spans

The steps in order.

From Nepali news text to evaluated entity spansStep 1: Clean articles and extract sentences1. Clean articles and extract sentencesStep 2: Mark and type character spans2. Mark and type character spansStep 3: Randomly partition the source articles3. Randomly partition the source articlesStep 4: Keep entity sentences and sample entity-free sentences4. Keep entity sentences and sample entity-free sentencesStep 5: Segment text using common Nepali suffixes5. Segment text using common Nepali suffixesStep 6: Project character annotations onto token tags6. Project character annotations onto token tagsStep 7: Build recognizers from the training partition7. Build recognizers from the training partitionStep 8: Score predicted spans on the test partition8. Score predicted spans on the test partition

Build an exact-match baseline

The dictionary starts with the entity spans in EverestNER-train. For every annotated occurrence, the authors can collect its sequence of tokens and its type. They use the token sequence as the lookup key. If the same key has appeared with several types, its entry takes the most frequent of those types in training. At prediction time, the system looks for exact matches in the input and favors the longest matching span. It returns the category stored with that span.

The paper illustrates the category decision with Nepal. A sequence of tokens can receive different labels across contexts, while the dictionary entry has room for a single choice. If the training occurrences make location the most frequent category for that key, the entry returns location. A longer expression has its own key when it has been recorded in training, so lookup can sometimes resolve an embedded name by matching the full phrase. The decision still arises from a stored entry for that complete form.

The baseline makes reuse of labeled strings into a concrete recognition procedure. Its length rule governs which span wins when a short known string is available inside a longer known one. Its frequency rule settles conflicts over the label of a matched string. An exact span absent from the dictionary is outside the set of things it can retrieve. For a span that does match, the selected label is the training majority for that string. These properties give the baseline a clear role in the experiment and make it possible to interpret success and failure in terms of the information it uses.

Train a bidirectional recurrent tagger

The recurrent approach uses a bidirectional long short-term memory network with a conditional random field, abbreviated BLSTM-CRF. A recurrent layer builds information along a sequence. With processing in both directions, it can represent a token using words on either side. A surname that follows an ambiguous given name can therefore provide evidence about the earlier position. The CRF scores possible output tag sequences using the information supplied by the network. This allows the choice of a tag to take account of how it fits with neighboring choices, as when a token is to continue a person mention.

The authors configure this family of taggers with NCRF++. The toolkit supports word and character features, can accept external rules, and can use supplied representations or learn them in training. The configuration featured in the main comparison is called BLSTM-CRF-wc.ft. The parts w and c indicate word and character information, and ft indicates fastText. The word input starts from pretrained word embeddings, numerical representations that the tagger can use as features. The character input represents the spelling of the token through units within it.

For the word features the paper specifies 300 dimensions from the fastText resource NPVEC1, using the variant called processed_tokenized_fast_text. A dimension is one coordinate in the representation. The character embeddings have 30 dimensions and are learned during the recognition training itself. The two inputs thus have different histories. The word representation is supplied from prior training, while the character representation is acquired when the tagger learns from the annotated Nepali news. Both contribute to predictions whose units are the benchmark tokens.

The reported setup uses 4 convolutional layers, which combine information from neighboring input positions, and dropout of 0.5. Dropout temporarily omits parts of the computation during training. The optimizer is stochastic gradient descent, which adjusts the trainable parameters using groups of training examples. The learning rate is 0.015, which governs the size of those adjustments, and the batch size is 50. A batch is the group used for a training update. The tagger is trained for 50 epochs, with an epoch meaning a pass through the training material. These settings characterize the complete recurrent configuration whose predictions are compared with the dictionary and multilingual tagger.

Adapt a pretrained multilingual tagger

The BERT-based system, called BERT-bbmu, is built with NERDA and starts from bert-base-multilingual-uncased. The paper describes that starting point as pretrained on Wikipedia in 102 languages, including Nepali. The base supplies contextual representations from a Transformer, an architecture that uses attention to relate positions in the input. A written form can receive a representation informed by the other words in its sentence. This is pertinent to both recognizing a name and deciding how much of a phrase to include.

The team uses fine-tuning to adapt the pretrained parameters to the recognition task. The supervision at this stage comes from EverestNER-train, which supplies examples of how to turn the news sentences into the benchmark’s entity labels. The authors report 10 epochs of training, a batch size of 10 and a learning rate of 0.0001. The prediction task ultimately uses the same reference spans as the other approaches.

The three systems consequently embody different uses of prior information. The dictionary reuses labeled strings from training. The recurrent system adds word representations from a Nepali resource and learns character features and sequence tagging from the examples. The multilingual system starts from parameters learned from Wikipedia across languages and adapts them through supervised Nepali tagging. The comparison evaluates each of these complete procedures on the held-out articles.

Experiments and results

What the training and test sets contain

EverestNER-train uses 847 articles and contains 13,848 sentences, with 268,741 tokens and 21,317 annotated entities. EverestNER-test uses 149 articles and contains 1,950 sentences, with 39,612 tokens and 3,270 annotated entities. The average sentence length reported for training is 19.40 tokens, compared with 20.31 tokens for the test partition. These statistics describe the benchmark after sentence selection and tokenization. The full annotation effort covered more sentences, including entity-free examples that were considered during labeling but left out of the final assessment sets.

From the perspective of a recognizer, the distributions of individual types are also part of the training conditions. Person is the largest training category, with 7,707 mentions. Locations account for 5,148 training mentions, organizations for 4,756 and dates for 3,394. The event label occurs on 312 training mentions. A learner trained on the available examples therefore has substantially fewer event occurrences from which to infer the wording of a name or the kinds of sentence in which it appears.

The count of reference mentions in the test material is called the support for a category. There are 1,115 person mentions in EverestNER-test, 809 locations, 715 organizations, 572 dates and 59 events. These are occurrences, so the counts can include multiple references to the same person, organization or other entity in different passages. A system receives credit for recovering a mention at its occurrence. Recovering a known name once gives no credit for another occurrence that it misses.

The fixed test set lets the authors compare the outputs of the three recognizers against the same human labels. The baseline’s dictionary comes from the training partition, as does the supervised signal for each learned tagger. The reference used to count successes and failures comes from the separately assigned test articles. The resulting comparison asks how the complete trained systems perform when handed sentences from those articles with the benchmark’s selection and segmentation already in place.

How the scoring works

The authors use the Python package seqeval and describe its scoring as compatible with the CoNLL shared task. The relevant unit is the recovered entity. A prediction has to identify a span and give it the correct type. If a predicted span consists of a surname and the reference includes the given name as well, matching the label on the surname is insufficient to recover that entity. A prediction with the correct extent and the wrong type likewise fails to match the typed reference. Scoring the spans makes these errors visible even when nearby tokens are tagged correctly.

Precision concerns the predictions the recognizer made. Its numerator is the number of correctly recovered entities, and its denominator is the number of predicted entities. Recall uses the corresponding count of correct entities with the number of reference entities as its denominator. A system can have strong precision by making many accurate choices among the spans it proposes, yet still have lower recall if it leaves many reference spans undiscovered. Conversely, a high recall can coexist with errors among the proposed spans. F1 rewards strong results on both precision and recall by taking their harmonic mean.

The paper’s headline comparison is micro-averaged. The scoring counts are pooled across categories before the metrics are calculated. Every correct entity contributes to the pooled count, but categories with more mentions have more opportunities to contribute. This matters on EverestNER because the amount of test evidence differs considerably by type. A micro-averaged score answers a question about the test collection as a whole. Scores calculated separately for each type put the focus on recovery of that type regardless of how common it is in the collection.

The paper reports precision and recall along with F1 because the same combined number can obscure different behavior. Consider the difference between a recognizer that is accurate among the cases it returns and one that finds more of the cases present. On a test set with exact-span scoring, both aspects depend on boundary decisions as well as category choices. A system may recover more entities by completing spans that another system began correctly or by assigning the right type to an already well-delimited phrase. The combined scores give the size of the outcome without telling which of these mechanisms accounts for it.

The comparison across systems

Dictionary lookup has micro-averaged precision of 0.71 and recall of 0.55 on EverestNER-test, giving an F1 of 0.62. It recovers a substantial set of mentions by drawing only on exact strings and their most frequent training labels. Its recall is consistent with that narrow source of candidates. For instance, an unfamiliar full name whose surname does occur in training can yield a shorter match, but the shorter match fails to recover the full reference entity. A different category for a familiar string can also produce a mismatch.

The recurrent tagger reaches micro-averaged F1 of 0.81. Its precision is 0.89, the highest in the comparison, and its recall is 0.74. These figures indicate that the recurrent system’s predictions are more frequently correct than the dictionary’s and that it recovers a greater share of the annotated spans. Because it derives a sequence of tags from features of the input, it can propose spans that were absent as whole strings in training. The overall numbers combine what it does on familiar strings with what it does on unfamiliar ones.

The multilingual tagger reaches micro-averaged F1 of 0.85, with precision of 0.87 and recall of 0.84. Its ranking by F1 comes from a combination that includes the highest recall. For the recurrent tagger, a larger share of predicted spans agrees with the reference. For the multilingual tagger, a larger share of reference spans is recovered. The F1 ordering reflects the balance measured on EverestNER-test. In the authors’ interpretation, the result shows that adaptation from multilingual pretraining is a viable way to build a strong Nepali tagger.

Recognizer comparison on EverestNER-test by micro-averaged F1

The multilingual tagger leads on the combined precision and recall measure.

Recognizer comparison on EverestNER-test by micro-averaged F1Exact-match dictionary: 0.62Exact-match dictionary0.62BLSTM-CRF-wc.ft: 0.81BLSTM-CRF-wc.ft0.81BERT-bbmu (this paper): 0.85BERT-bbmu (this paper)0.85
The numbers
System or settingF1
Exact-match dictionary0.62
BLSTM-CRF-wc.ft0.81
BERT-bbmu (this paper)0.85

The exact lookup result gives the comparison a reference point tied to the benchmark’s own training material. Both learned systems use the same labeled examples as the dictionary, but their predictions can draw on representations of the words and sentence, along with information acquired before task training. That is the practical contrast tested here. The authors can report a gain over the exact-match procedure while leaving open whether particular successes arise from identifying unfamiliar mentions, resolving ambiguous labels or finding more complete boundaries for familiar names.

The multilingual tagger by entity type

The category breakdown is for the system with the highest overall F1. On EverestNER-test, date precision, recall and F1 are each 0.91. That result concerns the entire date category as defined by the annotation scheme. A correct extraction can be a day, a range or an age expression within that scheme. Separate figures for those kinds of expressions would require further analysis. The category result measures their recovery together.

People have precision of 0.90, recall of 0.85 and F1 of 0.88. The precision indicates how often a predicted person span is correct as a whole. An everyday word used as a given name, a title beside a name, and a multiword name tend to raise different questions about where the span starts or stops. All contribute to the same entity-type result. Person mentions are also numerous in the test data, so their recoveries make up an important part of the pooled score.

Organization precision is 0.85, recall is 0.83 and F1 is 0.84. Location precision is also 0.85 at the reported precision, while location recall is 0.80 and F1 is 0.82. Hence, for the two types with the same reported precision, the organization score reflects higher recall. This comparison is within a single system and a single test set. The numbers count the final outcome for each type. They do not identify which organizations and locations share forms with expressions under another label or quantify how such overlap affects their scores.

Event precision is 0.46, recall is 0.42 and F1 is 0.44. The low precision points to problems among the predictions labeled as events, and the low recall points to problems recovering the reference events. The difficulty therefore appears on both sides of the comparison. A proposed event can fail through its type or its boundaries, and a reference event can be missed through either route. The category scores establish the extent of the difficulty at the level of the reported metrics.

BERT-bbmu on EverestNER-test by entity type and F1

Dates have the highest category score, while events have the lowest.

BERT-bbmu on EverestNER-test by entity type and F1Person: 0.88Person0.88Location: 0.82Location0.82Organization: 0.84Organization0.84Event: 0.44Event0.44Date (this paper): 0.91Date (this paper)0.91
The numbers
System or settingF1
Person0.88
Location0.82
Organization0.84
Event0.44
Date (this paper)0.91

The date and event entries make the category analysis especially informative. The best overall tagger recovers dates well under a definition that covers several kinds of temporal expressions. It has difficulty with named events under the same evaluation procedure. A reader choosing a system by overall F1 can see which system leads on the pooled test set. A reader interested in event names needs the category result to know what that leading score amounts to for that use.

What the ablations show

The paper reports no component ablations, and its analyses instead compare complete systems, examine the leading tagger by category and inspect disagreements with the reference.

What the comparisons can explain

Changing from the exact-match dictionary to either learned tagger increases both precision and recall. The dictionary defines the points at which it can choose a span through its stored entries, and it decides the category in advance for each entry. The taggers learn to choose boundaries and types with access to the sentence. The comparison establishes that the resulting procedures perform better on the shared test set. It does not count how many of their correct decisions required context or how many came from better treatment of familiar forms.

The authors emphasize BERT’s contextual representations when explaining its performance. The experiment assesses those representations together with the rest of the BERT system. The recurrent system also receives context from both directions. It uses different word inputs, different tag decoding and a different training procedure. The scores tell how the combinations fare, so the effect of contextual pretraining alone cannot be read off the ordering. Likewise, the reported recurrent configuration uses pretrained word vectors and learned character embeddings together. There is no result that isolates what either input contributes by itself.

The disaggregated category results provide a different kind of comparison. The settings of BERT-bbmu stay the same while the set of reference mentions under consideration changes. For events, the system encounters 312 training mentions, and the paper notes that each other category has over 3,000. The authors suggest that the tagger may have learned too little about event contexts or may have been affected by class imbalance. Limited examples constrain the evidence for how events are phrased. Imbalance concerns the amount of that evidence relative to other labels encountered in training. Both conditions hold in the same setup.

The category analysis does not manipulate either condition. It also shows that the ordering by frequency is insufficient to account for the ranking of scores across all categories. Dates have fewer training mentions than people and still receive a stronger F1 in the leading system. Events may differ from other types in the number of examples, the passages that qualify and the cues by which a name is recognized. The study observes their conjunction. Its suggestion about the training distribution is a plausible explanation to investigate, rather than a measured effect of changing that distribution.

A suffix split inside a person name

In the error analysis, the example of Aung San Suukyi starts with the treatment of the final part of the name. The suffix-aware preparation divides the element rendered as Suukyi into Suu and Kyi. The split resembles the removal of an attached suffix, but the resulting final piece belongs inside this name. The tagger includes Suu within the person span and labels Kyi as outside the entity. The prediction therefore starts the name in the appropriate place and stops before the end.

The authors connect this example to evidence in the training tags. The separated suffix-like token received O much more frequently than it received a person tag. To produce the full name, the tagger has to continue a span through a unit that frequently signals ordinary text outside a name. In this occurrence it follows the more familiar tagging pattern. The sequence of errors is visible because the paper can point to the place where preparation inserted a boundary, the label selected at that boundary, and the reference passage that was left incomplete.

The example also illustrates the advantage of keeping character annotations. An error can be traced to a divergence between the written name and the units presented to the recognizer. Under a different segmentation, the annotator’s original name boundary could still serve as the reference. A comparison across segmentation choices would be needed to determine how many errors are sensitive to that change. The single example establishes a specific route by which preprocessing can affect the entity score.

A familiar form in the wrong role

In Kalpana Khanal, the tagger begins a person span at Khanal and leaves Kalpana outside it. The authors identify Khanal as a surname. They also note that Kalpana has ordinary meanings that include imagination, creation and conjecture, and suggest that the ambiguity helps explain the result. In this occurrence it is part of the person’s name. The system returns a plausible surname span while missing the longer reference expression.

This case differs from the suffix example in what the input representation already makes available. The relevant units are present as separate words, and the needed change is to start the person span earlier. The following surname gives context for interpreting the first word as a given name. The paper’s example shows that a contextual tagger can still fail to use that evidence strongly enough in a particular sentence. It does not establish a general error rate for words that can function as both names and common vocabulary.

Miss Nepal presents another ambiguity. In the cited prediction, the system tags Nepal as a location within an expression the authors describe as a pageant title. The place label would be suitable for occurrences in which the word names the country. Here it directs attention to an embedded expression and misses the function of the title as a whole. The reported error illustrates why a recognizer has to examine how a familiar name is used within a larger phrase. The paper uses it to diagnose the incorrect location reading, without supplying a count of similar title errors.

When the reference is part of the disagreement

The authors also observe cases where inspecting an unexpected output revealed a problem in the annotation. They mention missing entities and reference spans assigned an incorrect type. In an automatic score, a predicted entity absent from the reference is treated as an unmatched prediction. Reading the sentence can reveal that the prediction identified something the human annotation should have included. A disagreement can therefore be evidence about annotation quality as well as evidence about the recognizer.

The inspection is qualitative. It identifies possible failure mechanisms and traces them in individual sentences. It gives particular weight to segmentation errors, ambiguous words and incomplete spans, while also documenting that some discrepancies led back to the reference. The study gives no inventory counting how often each mechanism occurs. Its error examples are most informative when read as explanations of individual outcomes, alongside the category scores that measure the overall distribution of correct and missed spans by type.

Limitations

Limits the authors identify

The authors flag the poor recovery of events and identify class imbalance as a subject for further work. They suggest oversampling a minority category such as events, which would expose the learner to some of those examples more often. That would change the frequency with which the learner sees event supervision. The study does not test that intervention, and repeating existing examples would address a different question from adding examples that cover different event names or sentence contexts. The reported event figures describe the original training distribution.

The paper also proposes trying alternative tokenization schemes and developing character-based recognizers. The segmentation errors in the analysis provide a reason to examine both. A revised segmentation could change which pieces of a word are presented to the tagger. A character-based system could choose boundaries using a different input representation. The published character annotations make either comparison possible. All of the reported performance figures come from the word-based benchmark setups, so the relative merits of those other approaches remain open.

Another direction the authors name is the addition of linguistic features such as part-of-speech tags. Explicit information about grammatical roles could give a recognizer different evidence about ambiguous forms and the boundaries of a mention. The results report how the tested taggers perform with their stated features. They do not establish the effect of supplying grammatical information alongside the features learned from the sequence.

The authors also identify nested recognition as future work. A nested annotation can include a span inside another span. The problem can arise when words forming one name are also part of a larger name and both readings are of interest. The IOB2 output used in the experiments expresses a single tag at a token position. It can represent the full event name or start a separate organization name elsewhere, as in the sample sentence. Capturing nested mentions simultaneously requires a richer output and suitable reference annotations. The reported scores apply to the task the authors actually encoded.

Limits of the evaluation design

The benchmark is drawn from one outlet and one month. Its subject range supplies several settings in which named entities occur, but the test partition remains part of the same collection. Other publishers, time periods or forms of writing could bring different spelling practices, a different mixture of categories and different sets of names. The reported evaluation establishes performance on held-out stories from the Setopati collection. Generalizing from those stories to a wider population of Nepali text would require a separate test.

Grouping sentences by article prevents a story from being distributed across the partitions. It leaves open the extent to which different articles mention the same people, organizations or places. The test also gives no separate result for exact mention strings that are absent from training. Accordingly, the overall scores combine previously observed forms with whatever novel forms the held-out articles contain. The dictionary result tells how well exact reuse works when turned into a complete rule, and the improvement of the learned taggers does not quantify their specific ability to handle novel names.

The choice to keep all sentences with entities and sample those without them changes the mix of sentences from the full annotated collection. A false positive in an entity-free sentence contributes to precision, so the prevalence of these sentences matters when interpreting that metric. The test figure corresponds to the selected mixture used by the benchmark. A different mixture would change the opportunities for false positives and might produce a different precision even with the same recognizer and the same guidelines.

The annotation scope also sets a limit on comparisons outside EverestNER. A test that excludes ages from dates, includes job titles with person names or marks every expression that signals an event would present a different target. Such a test might disagree with an EverestNER-trained tagger for following the conventions it was taught. Scores can be directly compared across systems evaluated on EverestNER under its scheme. Comparisons with other collections need to take account of what those collections count as a mention.

The agreement statistic supplies one reported value for the annotators’ shared exercise. The paper gives no breakdown of agreement on dates, events or the other individual categories. It also leaves the amount of shared material and the influence of the observed annotation errors on the scores unspecified. This limits what the reader can infer about reliability in particular difficult types. Agreement for the exercise overall and examples of incorrect or missing labels can coexist, and neither gives an estimate of how many reference decisions would change under further review.

The fixed partition supports reuse of the benchmark, while the reported evaluation consists of point scores on that partition. The paper gives no variation across repeat runs or alternative article splits. This affects how precisely one can interpret the ordering of complete systems or the stability of category results, especially for events with 59 reference mentions in EverestNER-test. The figure for the category is a measurement on those mentions. Its stability across different samples or training runs remains undetermined.

Finally, architecture, initialization and training settings vary together. The comparison provides results for specific, reproducible choices of recognizer and dataset, with the reported configurations described at the level of their main inputs and settings. It leaves the individual effects of multilingual initialization, character information and sequence decoding unresolved. That scope still supports the paper’s central empirical result: researchers can build and compare Nepali entity recognizers on a fixed public collection, and the resulting evaluation can reveal weaknesses that the pooled score would otherwise conceal.

What came after

Benchmarking Low-Resource Nepali Event Extraction cites the EverestNER paper and makes events the subject of a dedicated benchmark. Its stated scope includes identifying trigger phrases and classifying events. A trigger phrase is the wording that signals an event in the sentence. Event classification assigns an event category. The title thus identifies two decisions that an evaluation can examine in their own right.

In EverestNER, the event decision concerns the span of a named occurrence and whether to give that span the EVT label. The benchmark handles that decision alongside people, locations, organizations and dates. In the later study, the task names distinguish finding the wording that signals an event from determining its type. The studies are connected by their interest in what can be extracted about events from Nepali text, but the units being evaluated differ. EverestNER’s event F1 measures recovery under its rules for named spans. A benchmark concerned with trigger phrases and classification asks for different outputs.

The citation and the later study’s stated scope establish that event extraction became a more specific benchmark question. They leave open whether the later study reused EverestNER’s texts, annotations or recognizers. They also provide no basis for comparing its outcomes with EverestNER’s event score. The documented connection is between a broad recognition benchmark that exposes difficulty with named events and a citing study that evaluates event-related decisions as its main task.

Cite

Cite as Nobal Bikram Niraula and Jeevan Chapagain. 2022. Named Entity Recognition for Nepali: Data Sets and Algorithms. Proceedings of the ... International Florida Artificial Intelligence Research Society Conference.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.32473/flairs.v35i.130725

@inproceedings{niraula2022named,
  title = {{Named Entity Recognition for Nepali: Data Sets and Algorithms}},
  author = {Nobal Bikram Niraula and Jeevan Chapagain},
  booktitle = {Proceedings of the ... International Florida Artificial Intelligence Research Society Conference},
  year = {2022},
  doi = {10.32473/flairs.v35i.130725},
  url = {https://doi.org/10.32473/flairs.v35i.130725}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/niraula-2022-named-entity-recognition-nepali-data/