ParsTwiNER: A Corpus for Named Entity Recognition at Informal Persian
Paper · 2021 · MohammadMahdi Aghajani, AliAkbar Badri and Hamid Beigy
Summary
A person's name can be easy to spot in a newspaper and hard to pick out in a tweet. The name may be spelled differently, and the words around it may give fewer clues about where it begins, where it ends, or what it refers to. ParsTwiNER studies this problem for Persian. The authors build a collection of annotated tweets and use it to test whether a recognizer developed for formal Persian can be adapted to everyday writing. The task is to recover the complete expression and assign it a type, a pair of decisions known as named entity recognition.
The corpus comes from ordinary Persian Twitter accounts. Before labeling the text, the authors filter the collection, remove features such as account identifiers and links, and standardize the text. Their rules cover personal names, places, organizations, events, nations, and political groups. The corpus statistics give 232,917 tokens, of which 24,061 carry entity labels according to the category table. The paper gives different tweet totals in its collection and statistics sections. In a separate check, the annotators relabel a sample and obtain Cohen's κ of 0.95, a measure of agreement that takes into account how frequently annotators would be expected to agree by chance.
The experiments compare the existing ParsBert recognizer with two adaptations. The sequential approach starts from ParsBert's pretrained Persian encoder and trains it for name recognition on the tweets. The parallel approach uses a common encoder for tweets and for formal text from PEYMA, with a different classifier for each corpus. Each training batch comes from one corpus. Formal batches are more likely at the beginning, and tweet batches become more likely as training proceeds. The classifier for tweets can learn distinctions specific to ParsTwiNER while the encoder continues to receive training signals from both kinds of Persian.
On ParsTwiNER, the reported overall exact-match, micro-averaged F1 is 69.5% for ParsBert, 78% for sequential adaptation, and 81.5% for parallel transfer. Parallel transfer gives the higher overall score, though sequential adaptation does better on locations. Political groups and nations score higher with parallel transfer than with sequential adaptation, and the original ParsBert recognizer lacks those categories. Events remain the weakest category. The authors also describe the parallel recognizer as competitive on formal Persian, with no numerical results for that evaluation. The experiments establish the performance of the combined training procedure on the tweet corpus. They leave the contribution of the changing batch schedule unresolved, along with performance on names wholly absent from training.
Deep dive: ParsTwiNER: A Corpus for Named Entity Recognition at Informal Persian
ParsTwiNER provides an annotated corpus of Persian tweets and tests how training on formal Persian helps a recognizer find names in informal writing. · about 35 minutes to read
The problem and its context
Finding the expression and assigning its type
Suppose a sentence introduces someone by a professional title. Even if the name is unfamiliar or partly obscured, the title gives a reader grounds for expecting a person. A recognizer can exploit the same clue, provided it has learned how such titles are used and can identify the words next to them. It must still decide whether the title belongs in the extracted text. Under the convention used in this paper, a leading title such as Doctor stays outside the name. The surrounding words can therefore make a prediction easier without becoming part of the predicted expression.
The paper also gives the example of the United Nations. A recognizer has to interpret the words together to find the institutional name. Assigning a type to one word in isolation could miss the expression or mistake a word inside it for a separate entity. The example illustrates two kinds of evidence available in a sentence. Words inside the expression help establish what it names, and words outside it help establish how the expression is being used. The result has to specify a type and the portion of the text to which that type applies.
This is why the authors formulate the task as labeling a sequence. Each position in the input has a corresponding position in the output. The labels identify which tokens lie outside names and which belong to one. For a multiword expression, the labels also give the positions that begin and continue it. An application can then recover complete expressions from the sequence. That is the level at which a component can pass named mentions to another stage of information extraction.
In informal writing, spelling and sentence structure can make both decisions harder. A familiar name can have an unfamiliar written form, weakening the clue supplied by the name itself. A sentence can also depart from the patterns seen in formal training material, weakening the clues supplied by its surroundings. These changes can affect different parts of the prediction. A recognizer might assign the right general type to an expression but cut it short, or it might capture the right stretch of text and assign the wrong type. A test of complete expressions is sensitive to either error.
Why Persian tweets needed their own evaluation
The paper treats informal Persian as a problem of training and assessment. Formal text gives a recognizer examples of names and the context in which writers use them. A formal test can show whether the recognizer learned to use those examples in similar writing. The practical question is how much that experience carries over when the input consists of tweets. Answering it requires labeled tweets against which predictions can be checked. It also requires a definition of what the benchmark expects a recognizer to identify, so that a missing type can be distinguished from errors made while attempting to predict it.
The available Persian corpora served different purposes. For edited Persian, the authors point to PEYMA and ARMAN as established resources used in recognition research. PEYMA also has a specific role in the new experiment because it can supply the formal side of task training. Its value for the study is the supervision it already contains. It gives the encoder a source of examples in which names have been located and categorized, beyond whatever contextual knowledge the encoder acquired during its original Persian training.
For social media, the paper discusses ParsNER-Social, whose material was drawn from 10 Telegram channels. The authors use that collection to explain the remaining need for a corpus with wider informal coverage under established annotation instructions. A collection of channels and a collection of ordinary Twitter accounts provide different opportunities to observe language, even when both are described as social media. The claims the paper makes about scope concern those collection choices. The relative difficulty of the resulting corpora would require comparisons under conditions that account for the differences in data and labels.
The authors use conventions associated with MUC and CoNLL to frame the new annotation. A shared convention gives annotators a basis for deciding, for example, whether an expression should receive one label as a whole. It also helps a reader interpret the resulting benchmark. The local decisions still matter because a standard way to mark boundaries leaves room for different collections to choose different sets of types. The earlier shared task is described in the CoNLL-2003 shared task introduction.
How earlier recognition work shaped the design
The paper's survey of formal Persian approaches illustrates several ways to use context. One system for PEYMA combines regular expressions with a conditional random field. The regular expressions can capture text that fits specified patterns, while the statistical component handles label sequences using learned evidence. The authors also cite work using conditional random fields alone and a separate approach combining hand-written rules with a hidden Markov method. In each case, the design provides a way to move from observable words and their surroundings to decisions about the labels a text should receive.
Another line of Persian work starts from a small amount of supervision and expands it through repeated predictions. The procedure described in the paper accepts tokens assigned labels with high confidence as material for the next round of training. This makes predictions themselves a source of additional supervision. PersoNER, another system discussed in the survey, uses a bidirectional recurrent network with a conditional random field. The recurring problem across these approaches is how to use sequences to resolve uncertain token labels. ParsTwiNER addresses that problem with representations inherited from ParsBert and adds a question about which labeled corpus should supply updates during adaptation.
The English-language work describes an existing precedent for studying tweets directly. The Ritter-11 corpus comprises 2400 tweets and 34K tokens, as reported in the Persian paper's survey. The WNUT2017 collection concentrates on rare and unusual names and includes classes such as products and creative works. Its inventory illustrates how a benchmark can emphasize certain phenomena by the types it chooses and the material it collects. ParsTwiNER uses its own inventory, and its experiment asks about transferring from formal Persian to a broader collection of ordinary tweets. The earlier English resource is introduced in Named Entity Recognition in Tweets.
The paper also describes earlier English systems that combine transfer with cues from sentences, or use pronunciation-related information, word representations, and grammatical tags to cope with noisy writing. For ParsTwiNER's training design, the closest precedent in the survey is Gu and Yu's work on data annealing. In that approach, changing the balance of training data over time helps adapt a recognizer to informal text. ParsTwiNER takes up the question of when to expose the recognizer to each source of data. Its particular constraint is that formal and informal examples have their own classifiers, so selecting training material also determines which classifier receives the update.
The formal Persian work supplies a trained encoder as well as examples labeled for recognition. Those are different assets. An encoder offers a starting representation for Persian text. A formal corpus teaches a specific decision about which positions form a name and what type to assign. Training only on tweets after loading the encoder makes use of the first asset. Bringing labeled formal batches into adaptation makes use of both. The distinction motivates the comparison at the center of the paper.
The method, step by step
The project begins by defining the text and the expected output. The authors collect Persian tweets, prepare them for labeling, and mark the named expressions. They check whether their annotation rules give consistent decisions on a sample and divide the collection for training and evaluation. The recognition work then compares adaptation from a pretrained encoder with adaptation that continues to use formal entity labels. In the parallel procedure, selecting a batch source determines both the kind of input the encoder will read and the classifier that will learn from it.
Building ParsTwiNER and training on both registers
The steps in order.
From Twitter to annotation units
The authors choose Twitter as a source of everyday written Persian. They seek ordinary accounts, on the reasoning that these yield more casual language than official accounts or news sources. Their collection account records a crawl of 10,053 accounts and an initial collection of 10,014 tweets. These are counts of different things. The account count describes the reach of the crawl as reported, and the tweet count describes the material gathered at that stage.
They strip emojis, links, user identifiers, and the hashtag sign. The wording about hashtags concerns the sign. It gives no basis for assuming that all the attached text was discarded. They also exclude tweets containing material they classify as racist, offensive, or violent. Removing features within a tweet changes the text that can be labeled. Excluding whole tweets changes the range of contexts in which named expressions can appear. Both decisions shape the inputs on which the later experiments are based.
The collection account gives 7632 as the tweet total after filtering. The corpus-statistics account later lists 7667. The paper gives no reconciliation of those figures. They are most precise when cited with their respective descriptions. An account of how many posts entered annotation or how many went into each eventual split would need a consistent connection between those stages.
The next operation is to divide each prepared tweet into tokens and normalize its text with Parsivar. A token is the unit to which an annotator can attach a label. A change to how the text is divided can change which boundaries the annotation can express and how many labels a complete name requires. Normalization standardizes aspects of the input before that labeling work. The paper identifies the software and the two operations, leaving the exact normalization transformations unspecified. The resulting labels are aligned to the outputs of this tokenization process.
This sequence of operations preserves the central challenge the authors want to study, namely informal language within the retained text, while defining a narrower input than the original post. For instance, the name in the body of a tweet is a possible annotation target, and a removed account identifier is outside the material the annotator sees. A result on the final corpus applies to the recognition problem after these preparation decisions.
Deciding which tokens belong together
The authors agree on guidelines drawing on MUC and CoNLL, then label the data themselves. Both annotators are described as specialists in natural language processing. They mark six semantic types. In the statistics and result tables, they go by the labels people, organizations, places, events, countries, and political groups. The corpus construction account uses the broader word groups, and political groups is the label under which the results are reported.
The rules have to resolve what gets included in a marked expression. Consider a name made up partly of words that would have ordinary meanings outside that name. If those words lie inside the full named phrase, the authors include them in its extent. That rule gives the expression a continuous boundary and reflects the role those words play in the phrase. Applied to the institutional example in the paper, the recognition decision concerns the expression as a whole, with the sequence of labels marking every included token.
A title before a personal name is handled differently. The paper gives Doctor and Professor as examples of leading titles excluded from the named expression. For a name preceded by one of these titles, the beginning label belongs at the name itself. That gives the scoring procedure a way to distinguish the expected output from an otherwise plausible extraction that includes the title. The title remains in the surrounding text and can still help the encoder establish the type. This is a decision about the extent of the mention made explicit in the linguistic annotation.
The representation is IOB. An O label is used for a token outside an entity. A beginning label marks the first token of a name, and an inside label marks a continuation. The beginning and inside labels also carry the entity type. Thus the representation says both where the expression starts and what kind of entity it denotes. A name occupying a single token has a beginning label with its type. In a longer name, the tokens that follow take the corresponding continuation label. A distinct beginning label allows adjacent mentions to be distinguished even when they have the same type.
The classification problem presented to the recognizer has 13 labels in the informal task. That is the paper's stated inventory of token decisions. The semantic types each have a beginning and a continuation form, and O accounts for positions outside names. This is the connection between annotating a complete expression and training a classifier that predicts at token positions. Once a label sequence has been predicted, it represents a collection of spans, with each span extending from its beginning through its continuations.
The authors report making the corpus and the annotation instructions available through the official ParsTwiNER project on GitHub. Together, they expose both the decisions made in the data and the rules readers need to interpret them. That distinction matters for reuse. A label for a personal name identifies a class, and the instructions establish whether an adjacent title should be included when someone prepares another collection on the same basis.
Relabeling a portion of the corpus
The authors ask the annotators to relabel a sample of 9673 tokens and compare the decisions. They report 76 differences. Their account traces some errors to interpretations of a word or of its sentence context. This connects the quality check to the recognition problem itself. A word can look as if it belongs to a name until its role in the sentence is understood, and annotators can interpret a difficult context differently even when they share the instructions.
The paper reports 99% agreement in its discussion of the full relabeled sample. It also notes that the sample contains 983 entity-labeled tokens and gives an agreement figure of about 93% in its discussion of those tokens. The distinction matters because O is common. Two annotators can reach a high raw agreement across all positions while disagreeing on decisions that matter to an entity recognizer, such as whether a phrase begins at a particular word. The paper gives the second percentage as a way to draw attention to entity decisions. Its description leaves the precise inclusion rule for that percentage open, including how it treats a token that only one annotator considered part of a name.
To account for expected agreement, the authors use Cohen's κ. The observed match rate is considered relative to the match rate expected by chance. The coefficient uses the part of the agreement available above that chance level as its scale.
κ = (p₀ − pₑ) / (1 − pₑ)
Here κ is Cohen's agreement coefficient. The symbol p₀ denotes the observed proportion of matching decisions on the relabeled items. The symbol pₑ is the expected proportion of matches under the chance comparison. The constant 1 represents complete agreement. Subtracting pₑ from p₀ gives the amount of observed agreement above expectation. Subtracting pₑ from 1 gives the amount of agreement possible above that expectation, and the slash divides the former quantity by the latter.
The paper gives the range of κ as [−1, +1] and obtains 0.95 on the relabeled sample. In this application the high value indicates close agreement between the participating annotators, after accounting for the expected match rate. The frequency of O makes that adjustment relevant. If both people use a label frequently, matching each other on that label is also more likely under the chance comparison. The observed agreement acquires meaning in relation to that expectation.
The unit of the reported quality check is the token. Complete mentions are assembled from token labels. A disagreement at the start of a long expression can therefore be important to a span-level application while contributing a token disagreement to the audit. The check provides evidence of consistency in the labels the classifier will learn. A separate assessment at the complete-expression level would answer how often the annotators agree on every part of a mention, including its type.
Dividing the data
The authors identify tweet topics covering political matters, economics, social matters, sports, health, culture, and technology. These describe what a post is about. The types defined by the annotation describe the named expressions found within it. A sports tweet can mention a person and an organization, and the same type of expression can appear in tweets on different subjects. Topic and entity type consequently give different information about the composition of a partition.
The paper says that both distributions enter the split into training, validation, and test sets. The training portion supplies examples for the recognizer to learn from. A validation set can be used to make decisions during development, and the test set provides a partition for evaluating the resulting recognizer. The paper gives the dimensions considered in creating the partitions but leaves their sizes and exact allocations unspecified. In particular, balancing topics and types does not by itself determine how recurring names will be distributed.
Adapting ParsBert directly to tweets
The sequential approach starts with the Persian encoder from ParsBert. The encoder transforms each input position into a representation informed by other positions in the input. That gives the classifier access to context when deciding whether a token belongs to a name and which type it should receive. For the authors' motivating example involving a leading title, the representation at the name position can reflect the title, even though the desired tag on the title itself is outside. Updating inherited parameters for a new task is the operation known as fine-tuning.
The authors specify a BERT base architecture with a hidden width of 768 and 12 encoder layers. They also report a count of 12 for multi-head attention. Attention allows the representation at a position to draw on other input positions, and using multiple heads gives the attention computation multiple ways to do so. The paper's architectural description uses unusual wording for the attention count, calling it multi-head attention layers in addition to specifying the encoder layers. The relevant design for the experiment is a contextual BERT encoder followed by a fully connected feed-forward layer that produces the informal tag decisions. The encoder uses the Transformer and attention architecture.
The authors put a [CLS] marker at the beginning of a tweet and a [SEP] marker at its end. These are special input tokens that frame the tweet for the encoder. They specify 1 for the segment setting throughout the input. That makes each tweet a single sentence-like unit for processing. The formatting accommodates tweets with irregular syntax because it defines the input extent directly from the post, without requiring each post to be a grammatical sentence.
The sequential training starts with a learning rate of 5 ∗ 10⁻⁵ and reduces it linearly. The learning rate governs the size of parameter updates, so the schedule reduces the size of the steps taken later in training. The authors use dropout at a rate of 0.1 to guard against fitting the training examples too closely. Dropout temporarily suppresses some activations during training, limiting reliance on particular activations in each update. These settings are described for this direct adaptation.
The information inherited in this run is the pretrained Persian encoder. ParsTwiNER supplies the task-specific training examples and the labels the new classifier must learn. In the authors' account, the sequential run uses the general linguistic knowledge in ParsBert and has no continuing source of formal recognition supervision. That makes it a useful comparison for the next procedure, in which text labeled for the formal task can continue to change the encoder during adaptation.
Putting both tasks on a common encoder
The parallel arrangement has a single encoder, with a fully connected classification head for each corpus. A head is the component that turns the encoder output into scores for the labels of its task. PEYMA examples are routed to the formal head. ParsTwiNER examples are routed to the informal head. Each head learns the label decisions defined for its own data, and once trained can use the encoding produced by the common component.
This gives the corpora a way to influence each other through the encoder. A batch of formal examples can teach the encoder to represent some feature of named expressions in context. The informal head can then use that representation when it reads a tweet. An informal update can also change the representation received by the formal head later on. The heads separate the last stage of prediction, where decisions depend on the corpus's labels. The encoder is the part in which compatible evidence from both corpora can accumulate.
A training step processes eight tweets or sentences, all drawn from the selected corpus. The choice of corpus selects the appropriate classifier. Its errors generate the gradients, the signals used to update its parameters and the shared encoder. The other classifier receives no direct update from that batch. The paper uses whole batches from a single source to maintain this routing. Across steps the formal and informal tasks are trained together, with each individual step devoted to one of them.
The authors describe beginning with formal training on PEYMA and then bringing in ParsTwiNER. Their batch-level account explains how the procedure can continue drawing on formal examples once both sources are in use. The precise duration of any separate initial phase is less clear from the description. At the level of the schedule they publish, the distinction is that PEYMA has a larger chance of being selected initially, and that the chance changes with the training step.
Giving tweet batches more weight as training progresses
The schedule is the authors' adaptation of data annealing. Here annealing refers to a gradual change in which data are likely to be used. The unit of the change is the entire batch. Early in training the formal corpus is favored, giving formal recognition supervision more opportunity to shape the encoder. Over time, the probability of choosing the tweets increases so that more of the training emphasis lies with the intended informal application. The paper gives the formal-corpus rule first.
pₜˢ = αλᵗ⁻¹
The symbol pₜˢ is the probability of selecting a formal batch at step t. The subscript t identifies the current step, and the superscript s identifies the source corpus, PEYMA. The Greek letter α is the starting probability of choosing PEYMA, and λ is the factor that controls how quickly that probability decays. The superscript t⁻¹ in the displayed product represents the exponent t minus 1 on λ, so the λ term is raised according to how far training has progressed from the first step. The paper puts α and λ strictly between 0 and 1. Because the decay factor lies inside that interval, further steps reduce the formal selection probability.
pₜᵀ = 1 − αλᵗ⁻¹
Here pₜᵀ is the probability of selecting the target corpus, ParsTwiNER, at step t. The superscript T identifies that target. As before, t is the step, α sets the initial probability of the formal source, and λ controls its decay. The exponent is t minus 1. The constant 1 represents the total probability across the available choices. The minus sign makes the probability for a tweet batch the complement of the probability for a formal batch. When the formal probability goes down, the informal probability goes up.
The prose about favoring PEYMA initially supplies a condition on the intended starting balance beyond the open interval given for α. The formula can express different starting balances depending on that parameter. It also defines probabilities, so a sequence of actual batches can depart from the direction of the trend over a short stretch of training. A formal batch can still occur late, and a tweet batch can occur early. The changing probabilities describe which choice tends to occur, while the separate heads determine what happens when each choice is made.
The paper leaves the selected values of α and λ and the complete training duration unspecified. The equations therefore describe the direction and functional form of the shift. The practical amount of exposure to each corpus depends on those settings and on the batches actually drawn. Alongside the corpus and instructions, the authors report releasing the training code through the ParsTwiNER project and making the trained recognizer available under the name twiner-bert-base-mtl on Hugging Face.
Experiments and results
Reading the corpus counts
The corpus-statistics section records 232,917 tokens and gives a mean tweet length of 32 tokens. Its class table lists 24,061 entity-labeled tokens in total. The surrounding prose calls that figure a number of named entities, but the table gives the counting unit explicitly as tokens. This matters for comparing the statistics with the recognition results. Several labeled tokens can describe one complete mention, and exact-match scoring gives a decision about the complete mention.
The class counts show the uneven distribution of labeled material. Persons account for 9586 labeled token occurrences, with 3932 unique tokens in the category. Locations have 6676 occurrences and 1914 unique tokens. Organizations have 5122 occurrences and 1875 unique tokens. The remaining categories have fewer labeled tokens. Events have 1146 occurrences and 428 unique tokens, nations have 956 occurrences and 341 unique tokens, and political groups have 575 occurrences and 255 unique tokens. The table gives 8727 as the overall unique-token total.
The unique-token column provides a view of vocabulary within the entity annotations. Repeating a token increases its occurrence count while leaving the number of unique tokens unchanged. A person's name can include several distinct tokens, and a token can occur in the names of different people. Thus a high unique-token count indicates variety in the words marked within a class. A tally of distinct complete names or of the people and institutions they refer to would require a different counting procedure. The class table gives no corresponding split-specific count of complete mentions.
The paper reports 302,530 tokens and 41,148 named entities for PEYMA in its survey. That describes the formal resource the authors select for parallel training. It does not give the effective quantity of formal supervision used in the experiments, since each step samples a corpus for a batch. ParsTwiNER's corpus counts likewise describe the collection as a whole. The amount of material encountered during training depends on partitioning and on how training proceeds within each corpus.
What the comparison measures
The reference system in the recognition tables is ParsBert. The direct adaptation trains the inherited encoder on the informal tagging task, and the parallel approach trains on both PEYMA and ParsTwiNER using its separate heads. The result tables present the three approaches against ParsTwiNER annotations. Though the paper describes train, validation, and test partitions, the tables identify the evaluation corpus without naming a precise partition. The reported numbers can therefore be attributed to the ParsTwiNER evaluation without assigning them to a split more specifically than the paper does.
An exact match requires the predicted extent and the type of the entity to agree with the annotation. Suppose a recognizer correctly identifies that a person is mentioned but includes a leading professional title in the extracted expression. Under the stated boundary rule, the start of the resulting span differs from the start in the annotation. Correctly categorizing the expression still leaves a mismatch at the level being scored. This is a stricter target than accumulating correct token decisions inside a partly correct expression.
Precision measures the share of the predicted mentions that match the annotations. A recognizer that returns many extra mentions can lose precision even if it recovers much of what is in the corpus. Recall measures the share of annotated mentions that it retrieves. A recognizer that returns only its most certain predictions can have good precision while missing many others. F1 combines those two aspects of recognition and is sensitive to weakness in either. For the aggregate, micro-averaging pools the recognition decisions before producing the reported metric. Categories with more evaluated mentions can have more influence on that overall result.
The original ParsBert recognizer has a more limited output inventory. The tables identify political groups and nations as unsupported, and their baseline cells provide no category scores. This leaves an important qualification on the pooled comparison. A recognizer can improve on the target by learning to distinguish categories that were previously unavailable and by improving predictions for categories the systems already share. The paper provides scores by category to show where those changes occur, though it does not give a new pooled result restricted to the common inventory.
Aggregate recognition
Overall exact-match micro-averaged F1 on ParsTwiNER
Parallel transfer gives the highest pooled score in the reported comparison.
The numbers
| System or setting | F1 % |
|---|---|
| ParsBert | 69.5 |
| Sequential transfer | 78 |
| Parallel transfer (this paper) | 81.5 |
Training the informal classifier and adapting the encoder on tweets gives a higher pooled score than applying the existing ParsBert recognizer directly. Parallel training gives the highest reported F1. The sequential run has overall precision of 76% and recall of 80% on ParsTwiNER. The parallel run has overall precision of 80% and recall of 83%. Both measures rise in the pooled results, so the F1 ordering accompanies higher reported correctness among predictions and greater recovery of the annotated expressions.
These scores describe the outputs of the complete training procedures. The baseline and the adaptations differ in their experience of informal labeled text, and the adaptations can emit categories missing from the baseline. Sequential and parallel training present a closer comparison for the informal task because both can produce those categories. That comparison shows how performance changes when the study moves from target supervision alone during adaptation to the procedure using a common encoder and batches from both corpora.
A pooled result can obscure two different stories that lead to a similar average. A system can improve modestly on many types, or improve markedly on some while moving backwards on others. In ParsTwiNER the type-level results show both: parallel transfer is stronger across several of the types in the tables, while the location result moves in the other direction. The case is informative precisely because the adaptation choice can matter differently depending on which type a reader cares about.
People, locations, and organizations
For persons, the published ParsTwiNER F1 values are 80% for ParsBert, 87% for sequential adaptation, and 91% for parallel transfer. The sequential run reports person precision of 85% and recall of 91%. The parallel run reports precision of 90% and recall of 91%. At the displayed precision and recall, the change is in how reliably the predictions match the annotations, while the reported recall is the same. The parallel table's F1 is quoted as published. Its relationship to the displayed precision and recall is left unclear by the paper's reporting conventions, so the displayed F1 should be read as a table entry instead of a value reconstructed from the printed components.
For locations, ParsBert has F1 of 68% on ParsTwiNER. Sequential adaptation gives precision of 84.3%, recall of 85.5%, and F1 of 84.9%. Parallel transfer gives precision of 81%, recall of 83%, and F1 of 82%. The sequential approach has the stronger reported location result on both components of F1. The two adapted systems still exceed the baseline on location F1. That pattern supports the value of adaptation for this category while giving the advantage, among the reported settings, to training on the tweets alone during adaptation.
Organization F1 on ParsTwiNER is 55% for ParsBert, 62.2% for sequential adaptation, and 69% for parallel transfer. Sequential organization precision is 61.8% and recall is 62.7%. With parallel training, precision is 70% and recall is 69%. The stronger organization result gives direct evidence of a change on a category the baseline supports. Along with persons and events, it shows that the comparison includes improvements within the common output inventory as well as gains on the extra categories. The paper does not combine the shared classes into their own weighted summary.
Events, political groups, and nations
Event recognition on ParsTwiNER by exact-match F1
Event recognition improves with adaptation and remains the weakest category under parallel transfer.
The numbers
| System or setting | F1 % |
|---|---|
| ParsBert | 12 |
| Sequential transfer | 29.2 |
| Parallel transfer (this paper) | 41 |
The detailed event results help locate the difficulty. Sequential event precision is 30% and recall is 28.5%. Parallel transfer reports event precision of 35% and recall of 50%. The change is more pronounced in the reported recall. The parallel recognizer recovers more of the annotated events, while a substantial share of its predicted events fail the exact-match criterion. The table provides no breakdown of whether the problems are wrong boundaries, incorrect types, or failures to detect the mention in the first place. It establishes that the event category remains difficult on both prediction quality and coverage.
Political groups show a different pattern. Sequential adaptation reports precision of 36%, recall of 40.9%, and F1 of 38.3%. Parallel transfer reports precision of 94%, recall of 77%, and F1 of 85%. Both precision and recall are higher under parallel transfer, with a particularly large change in the proportion of predictions that qualify as exact matches. Because ParsBert lacks the political-group output, the relevant numerical comparison here begins with sequential adaptation. The two adaptations demonstrate different performance on a class both are designed to predict.
For nations, the sequential result on ParsTwiNER is precision of 60.5%, recall of 76.6%, and F1 of 67.6%. The parallel result gives precision of 68%, recall of 93.3%, and F1 of 82.3%. The report again shows higher values for both components. The parallel system retrieves more annotated nation mentions and a higher share of its nation predictions match the reference labels. That result applies to nations under ParsTwiNER's annotation and corpus conditions. The baseline has no nation F1 in the table.
Political groups and nations both have fewer labeled tokens in the whole corpus than events. Their better parallel F1 illustrates why the overall token count for a type cannot explain its difficulty on its own. A corpus-level token total leaves open how many complete examples went into training, how repetitive those examples were, and what kinds of ambiguity arise in evaluation. The reported event result motivates a closer investigation, while the counts and scores alone leave the cause open.
The evidence for formal Persian
The related-work discussion reports ParsBert at 90.59% F1 on PEYMA. That is a cited formal-corpus result for the earlier recognizer. The paper's own numerical comparisons assess the recognizers on ParsTwiNER. Comparing the cited formal score directly with the new informal scores would combine differences in corpus, annotation inventory, and evaluation circumstances. Their juxtaposition supplies the motivation for testing adaptation on tweets, and the direct baseline comparison on those tweets supplies the more relevant measurement of target performance.
The authors say they also evaluated the parallel approach on formal Persian datasets and found it competitive with ParsBert. They present this as an empirical observation, but give no numerical formal results for the adapted recognizer. The magnitude of any change in formal precision, recall, or F1 is therefore unknown. The paper's quantified finding is the higher aggregate score on the informal corpus. The formal performance claim remains qualitative.
What the ablations show
The paper reports no component-by-component ablation, and its evidence for how the method behaves comes from comparisons between complete training procedures, the breakdown by entity type, and the separate audit of annotation agreement.
What can be learned from the training comparisons
The direct adaptation puts an intermediate result between the original recognizer and parallel transfer. It demonstrates that useful adaptation is already possible by starting with the Persian encoder and training on the new annotations. The move to parallel transfer then comes with a further increase in the aggregate. This is evidence for the effectiveness of the full procedure that continues to draw on formal examples. It is also compatible with the authors' explanation that formal recognition training adds something beyond the knowledge inherited from pretraining.
Several parts of the procedure change together. Putting both tasks on the same encoder creates a route for formal labels to influence the informal predictions. Using separate heads allows each task to retain its own output distinctions. The schedule changes the likelihood of training on each corpus over time. The paper compares the combination with sequential adaptation, leaving the contribution of each part unresolved. In particular, a comparison with a constant sampling probability under the same architecture would be needed to distinguish the effect of annealing from the effect of simply including formal supervision.
There is also a difference between the order of the evidence and its total amount. A schedule that favors PEYMA early can expose the encoder to a different amount of formal text than a fixed mixture, depending on how long training runs. An experiment trying to isolate the effect of order would need to account for the overall exposure as well. The paper's batch equations specify how the probabilities evolve, but the score comparison leaves the effects of timing and quantity combined.
The two heads carry a practical advantage in the reported design because the label spaces can be handled independently. The experiment leaves open how a system with deliberately reconciled label spaces would compare. Likewise, the results do not isolate the effect of continuing formal supervision from any benefit of the particular training order the authors describe. The available comparison shows a better target score for one procedure as implemented, instead of a separate estimate for each proposed mechanism.
What the class breakdown reveals
The location result is a check on an overly broad interpretation of the overall score. Parallel transfer can be preferable under the pooled metric even though the sequential approach is better on locations. A type-specific judgment may therefore differ from the judgment made using overall F1. This is especially relevant here because the task inventory has uneven numbers of labeled tokens. The importance of one type to a particular use of the corpus can differ from its contribution to the aggregate.
The improvement on organizations shows that the parallel procedure's gains extend to a class the original recognizer could already express. Political groups and nations, in turn, show a benefit within the target inventory when the two adaptations with that inventory are compared. What the tables establish is the change in exact-match performance. They give no evidence tying those gains to a particular kind of PEYMA example or showing that one formal tag is responsible for a specific informal distinction.
Events provide the strongest signal about where recognition remains weak. The sequential and parallel comparison indicates improved recovery, and the precision figures show that producing more correct event predictions leaves considerable room for improvement in the reliability of the outputs. The paper offers no categorization of event errors that would locate the problem in phrase boundaries, confusion with other types, or the coverage of training examples. The numerical breakdown therefore identifies the problem more precisely than the aggregate, while stopping short of a causal explanation.
What agreement adds to the comparisons
The annotation audit addresses the quality of the reference labels against which the recognizers are assessed. The authors show that the full-token agreement and the discussion focused on entity-labeled positions give different views of consistency. Cohen's κ provides a further view by adjusting for expected matches. Together these observations help readers interpret a task with many outside positions, where a strong full-token agreement figure can coexist with more uncertainty on names.
That evidence concerns how consistently the annotated target was produced. It cannot explain the difference between sequential and parallel transfer because the comparison uses the same corpus annotations for the informal task. The audit also gives no category-specific basis for connecting event recognition to disagreement between the annotators. An error on an event in the recognition table and a disagreement on a token in the audit are observations from different procedures. Establishing a link would require information about which particular cases produced each kind of error.
Limitations
Questions the authors leave open
The authors identify events as the weakest part of their recognition results and leave investigation of the cause for later work. The evidence supports the diagnosis. Events have the lowest F1 in the parallel table, and their reported precision and recall describe a task with both missed annotations and unmatched predictions. The next question is what these errors have in common. A mention with the wrong boundary would call for a different explanation from a complete mention assigned the wrong type, but the paper does not enumerate those cases.
The authors also leave open how well the trained recognizer handles entities completely absent from training. A new tweet can contain a name the recognizer has already encountered. Success in that tweet may reflect knowledge of the name as well as the ability to use its unfamiliar context. A tweet mentioning a previously unseen entity poses a different test, where an annotated example of that entity was unavailable during task training. A split designed to preserve topic and type distributions does not on its own establish the latter evaluation. The authors specifically identify it as a question for future work.
Limits of the population and text being evaluated
The study's evidence concerns ordinary Persian Twitter accounts and the subset of their tweets retained under the collection rules. The authors' choice is suited to collecting casual public writing. Broader conclusions about informal Persian would require evidence from other writing settings. The paper gives no account of how the crawl is distributed over time or across user communities, and it supplies the topics considered without a detailed sampling account that would establish representativeness.
Within Twitter, the retained text has already been processed. Identifiers, links, emojis, and the hashtag sign have been removed before annotation. The exclusions also leave some kinds of tweets outside the collection entirely. The tested task is therefore recognition in the resulting text, with the name boundaries defined on tokens after preparation. Running the recognizer on untouched posts could present input structures and contextual cues outside those conditions. The paper supplies no separate result for that case and no comparison of recognition before and after the preprocessing choices.
The conflicting tweet totals are another limit on interpreting coverage. The collection procedure reports 7632 retained tweets, while the statistics section reports 7667. The reported average length and corpus token counts are attached to the statistics account. The documentation leaves the transition between the two tweet figures unknown. For entity coverage, the distinction between tokens and mentions similarly bounds the interpretation of the totals. A category's labeled token count gives useful information about the annotation, but cannot establish how many separate mentions or distinct referents that category contributes.
Limits of the annotation evidence
The relabeled sample provides evidence about consistency between the two participating annotators under their shared instructions. The full label-by-label agreement data and category-specific disagreement counts are absent. A reader can see that the balance between entity labels and O matters for the raw statistic, but cannot reconstruct the κ calculation from the counts given. The paper also leaves open how decisions involving a mismatch between O and an entity tag were counted in the entity-focused discussion.
The audit is at token level. Recognizer evaluation is at exact-match mention level. A disagreement on a single boundary can affect the complete span, and a long correctly labeled mention can contribute several matching token decisions. It follows that token agreement and mention agreement can give different views of labeling consistency. The paper provides the token audit, leaving the exact-match reliability of the annotations across categories unmeasured. Consistency between the original experts also gives limited evidence about how easily another annotation team would apply the same instructions.
Limits of the training and performance comparisons
Several details needed to reconstruct the experiment numerically remain unspecified in the paper. These include the sizes of the partitions, the exact evaluated partition named by each result table, and the chosen values of the annealing parameters. The paper describes how corpus selection changes, but leaves open how long PEYMA dominates the draws and how much formal material the encoder eventually encounters. The written description identifies the architecture and general training scheme, while the reported release is a separate source of implementation detail.
The overall ParsBert comparison combines a difference in label coverage with differences in training. Both factors matter to a user who wants the complete set of ParsTwiNER outputs. For the more specific question of adapting recognition of categories already available in ParsBert, the overlap in class scores offers partial evidence. A matched-inventory micro-average would be informative for that question, and the paper does not publish one. For the comparison between the two adapted recognizers, the missing component controls leave the effects of the shared encoder, the formal batches, and the schedule unresolved.
The paper reports point results without giving variation across training runs. This matters for the interpretation of differences between settings because batch selection and training can vary. The tables support the reported ordering for the experiment as presented. The extent to which the ordering would persist across repeated runs remains unknown. The precision, recall, and F1 entries should also be preserved at their published precision, especially where the relationship among the rounded entries is unclear.
Finally, the parallel architecture is intended to support formal and informal recognition at the same time. The lack of numerical results for the formal evaluation prevents a quantitative judgment about retention, such as whether gains on tweets came with a change on any particular formal category. The article's strongest measurable claim is bounded by the reported ParsTwiNER comparison. Its broader application would require separate evidence, including for any downstream extraction system that relies on the recognized names.
What came after
The later citing work includes a study centered on Persian blogs. Its title identifies the use of blog text for BERT pretraining. This addresses source choice at a different stage from the ParsTwiNER experiments. ParsTwiNER starts with an existing Persian encoder and varies the labeled material used to teach entity recognition. Blog pretraining concerns which text supplies the encoder's earlier training. The citation connects the studies, while the description of the later work leaves its use of ParsTwiNER's corpus, labels, or batch schedule unspecified. FaBERT
The other later work applies Persian named entity recognition to literary text through a study of The Little Prince. Its subject changes the kind of text on which recognition is investigated. ParsTwiNER defines its target through ordinary tweets and their annotation, whereas the literary work identifies a particular book as the setting for its case study. The citation documents the connection between the papers. It leaves open whether the literary study reused tweet data, compared against ParsTwiNER's recognizer, or used its annotation conventions. Named Entity Recognition for Persian Literary Text
The two works put different parts of ParsTwiNER's research question in view. Blog pretraining concerns the text from which the encoder acquires its initial representations. Literary recognition concerns the text on which an entity recognizer is asked to make its decisions. ParsTwiNER makes the relationship between those stages measurable for its own setting by bringing formal supervision and annotated tweets into one experiment. The documented connection to the later works is citation and a concern with text sources in Persian. A direct reuse of the corpus or transfer procedure is unconfirmed.
Cite
Cite as MohammadMahdi Aghajani, AliAkbar Badri and Hamid Beigy. 2021. ParsTwiNER: A Corpus for Named Entity Recognition at Informal Persian. Proceedings of the Seventh Workshop on Noisy User-generated Text (W-NUT 2021).
@inproceedings{aghajani2021parstwiner,
title = {{ParsTwiNER: A Corpus for Named Entity Recognition at Informal Persian}},
author = {MohammadMahdi Aghajani, AliAkbar Badri and Hamid Beigy},
booktitle = {Proceedings of the Seventh Workshop on Noisy User-generated Text (W-NUT 2021)},
year = {2021},
doi = {10.18653/v1/2021.wnut-1.16},
url = {https://doi.org/10.18653/v1/2021.wnut-1.16}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/aghajani-2021-parstwiner-corpus-named-entity-recognition/