Elamur Research

A Basic Language Resource Kit for Persian

Paper · 2012 · Mojgan Seraji, Beáta Megyesi and Joakim Nivre

Summary

A Persian word can be written with its parts joined, divided by ordinary spaces, or separated by an invisible character that keeps the letters from joining. These choices matter to software. A space can make a suffix look like a separate word, and visually similar letters can have different character codes. The paper presents a Basic Language Resource Kit for Persian that addresses these problems before attempting grammatical analysis. It brings together a preprocessor, a sentence segmenter and tokenizer, a part-of-speech tagger, and a dependency parser, along with the annotated data needed to develop and evaluate them. Its starting point is an existing Persian corpus whose texts and grammatical labels can be reused after revision.

The authors turn that material into the Uppsala Persian Corpus, or UPEC. They standardize character encodings and digits, make decisions about where words should begin and end, add sentence boundaries, and revise some grammatical categories. The resulting corpus contains 2,782,109 tokens with annotations for parts of speech and morphological features. These changes serve different purposes. Uniform character codes give software a consistent representation to work with, while the revised token boundaries determine which units receive grammatical labels and can participate in syntactic relations.

The tests show how strongly the results depend on the input and the evaluation. On 100 randomly chosen sentences written in the standard style, the tokenizer achieved 100% accuracy. On a random sample of nonstandard writing, the authors report 98% recall and 95% precision at the character level, with inconsistent boundaries inside words accounting for the difficulty. For part-of-speech tagging, TagPer obtained 96.9% overall accuracy on the Bijankhan corpus and 97.8% on the corresponding UPEC split. The authors attribute the improvement provisionally to more consistent text and annotation. The comparison evaluates those revisions together.

The project also begins a treebank, a collection of sentences with grammatical structure annotated. The authors adapt Stanford Typed Dependencies to Persian, adding relations for the direct-object marker and for the preverbal element in a light verb construction. They sample 10,000 sentences from UPEC for the planned treebank and manually validate 215 sentences for initial training and evaluation. In 10-fold cross-validation on those 215 sentences, the parser achieves a mean labeled attachment score of 62%, which measures whether a word receives both the correct syntactic head and the correct relation label. The corpus and text-processing tools are usable outcomes of the project. The parsing result describes the treebank at its seed stage, before the proposed cycle of automatic annotation and human correction expands it.

Deep dive: A Basic Language Resource Kit for Persian

The Persian Basic Language Resource Kit standardizes written text, adapts an annotated corpus, and tests tools for tagging and dependency parsing. · about 34 minutes to read

The problem and its context

A kit requires resources that work together

The paper starts from a mismatch between how widely a language is used and what researchers can readily do with written material in that language. Persian has about 100,000,000 speakers worldwide, according to the paper, yet has relatively few widely accessible resources with linguistic labels. The authors contrast this situation with that of English, where a researcher has more tools and datasets to choose from. The idea of a Basic Language Resource Kit is to make the foundations of language analysis available for reuse. In the authors’ account, a full kit could include dictionaries and lexicons, general and specialized text collections, and software for processing them. They see applications in language study, language technology, and teaching.

The Persian kit presented here concentrates on written-text processing and the data that support it. A corpus provides examples of how the language is written. Grammatical labels on those examples provide training material for a tagger and a way to assess its output. A treebank adds information about how the words of each sentence are related. Software for cleaning and dividing text prepares new input for these forms of analysis. Each component therefore has a use of its own and a role in the larger process. A tokenization convention, for example, determines what counts as a word occurrence in the corpus and what the parser will later receive as a candidate node in a sentence.

For this project, building a corpus from scratch would have meant recreating grammatical work that already existed. The Bijankhan corpus offered a substantial collection with labels. Its original purpose, however, left room for decisions about sentence boundaries, the treatment of expressions containing several words, and the representation of affixes. The authors treat those decisions as part of the research. A corpus can be large and linguistically informative while still needing preparation before it serves as the common input for several tools.

The paper describes Western Persian, or Parsi or Farsi, alongside Dari and Tajiki. Its practical discussion of standard writing centers on the Farsi orthography of the Academy of Persian Language and Literature. This matters because the authors need a convention against which to define consistent input. A description of the language can acknowledge several varieties, while an implementation must specify what it expects of the text it processes.

Why a space can be a grammatical problem

Persian uses a cursive script based on the Arabic alphabet, with additional letters for Persian sounds. The appearance of a letter depends partly on whether it joins its neighbors. Some letters can join on both sides, while others permit joining on the right side only. Consequently, a visible break between letters can occur inside a word. Software needs to work with the text’s encoded characters and its boundary conventions, as the appearance of a break alone gives an incomplete account of the word structure.

The paper distinguishes an ordinary space from the zero-width non-joiner, abbreviated ZWNJ. An ordinary space marks a word boundary in the writing convention the authors adopt. A ZWNJ controls how adjacent letters appear while keeping the two parts close together. In the cases the kit is designed to handle, it can mark an internal boundary between parts of a single word. Keeping these signals distinct is fundamental to tokenization, the process of deciding which pieces of the text the software will treat as units.

Writers do not always use these signals consistently. A person typing a compound or an inflected noun might use an ordinary space where the standard calls for a ZWNJ. Another might leave out the internal separator. The paper illustrates the range with a compound meaning “library,” combined with the plural ending and the linking particle called ezafe. It records 12 written forms of the resulting expression. The example brings together boundaries within a compound and boundaries involving material attached to it. A single expression can thus present several distinct decisions about where to use a space, where to prevent joining, and where to leave adjacent characters together.

There is another source of variation below the level of the word. Persian and Arabic forms of the letters ye and kaf can have different Unicode representations. The paper attributes the occurrence of Arabic forms in Persian texts partly to operating-system defaults. It also describes variation among Persian, Arabic, and Western digit characters. The same value or the same intended letter can therefore reach the software through different encoded forms. Character normalization can merge variants of this kind before the corpus is searched, counted, or used for training.

Some ambiguity persists even with consistent character encoding and orthography. Short vowels are ordinarily omitted, so one written form can support readings with different meanings or grammatical roles. The paper gives examples glossed as “man” and “died,” as well as “sugar” and “thank.” If the character sequence is already valid under the target writing convention, rewriting it will leave both readings possible. A tagger needs the surrounding words to help decide which grammatical role the form has in a particular sentence.

What grammar adds to the boundary decisions

Persian word structure gives these distinctions practical importance. Morphology concerns how parts of a word express information such as plurality, person, or tense. The paper describes an extensive system of affixes and clitics. An affix attaches to a stem or word to form a larger word. A clitic is a grammatical element that depends on a neighboring form to which it attaches. Persian plural markers include forms used with native vocabulary and markers restricted to Arabic loanwords. The paper also describes inherited broken plurals, in which the shape of the borrowed noun changes internally. A rule about spaces before a suffix addresses a particular written pattern within that broader system.

Pronominal clitics show why a form’s attachment and its grammatical function are separate questions. The paper describes uses as possessors, objects of prepositions, direct objects, and other functions. In an example that means “they hit him/her,” the written verb includes a stem, an ending marking the subject’s agreement, and the pronominal clitic that supplies the object. These pieces have distinguishable roles even when written together. The surface boundary that a preprocessor records and the function that a later annotation assigns answer different questions about the same occurrence.

Relations between words are also more varied than a fixed subject–object–verb template suggests. The paper describes Persian as usually verb-final and notes that some dependents precede their heads. An object commonly comes before the verb, for example. Other structures go in the opposite direction. A preposition comes before its object, and an adjective modifying a noun can come after the noun. A head is the central word on which another word, its dependent, grammatically relies. The position of the two words provides a clue to their relationship whose interpretation depends on the construction.

Subject placement adds a further complication. Persian allows an understood subject to be omitted, and verbal inflection supplies information about person and number. The paper also describes flexibility in the positions of optional constituents. A syntactic resource consequently has to record functions across patterns of occurrence in which arguments may move or remain implicit. The aim of dependency parsing is to represent grammatical relationships between individual words in sentences with these properties.

What earlier resources provided

The paper identifies Bijankhan as the first linguistically annotated Persian corpus. Released in 2004, it draws on newspaper material and other texts, covering 4,300 topics across areas such as culture, technology, fiction, and art. It contains 2,597,939 words by the count the paper gives for that resource. Its original annotations combine grammatical information with some semantic distinctions. The original inventory organizes 550 tags hierarchically, so a label can specify a broad class and then narrow it through subcategories. An updated version uses 40 tags for major parts of speech and basic morphological information. The rich annotations and the scale of the collection made it an attractive starting point for further work.

Other collections met different needs. The Persian Linguistic Data Base offered pronunciation and grammatical information for more than 56 million words, with access restrictions. The Tehran English–Persian subtitle corpus supplied 554,621 aligned sentences, with bilingual dictionary material also added. The Persian 1984 corpus contributed a morphologically annotated Persian translation within the MULTEXT-East parallel collection. These examples show how a resource’s purpose determines what it can support. Parallel sentences provide evidence about correspondences between languages, while a large collection of individually tagged Persian words provides evidence for assigning grammatical categories in context.

The authors also describe speech collections and lexical resources. The speech collections include read material and telephone conversations, with annotations suited to such tasks as speech recognition and language identification. For written vocabulary, Dehkhoda supplies entries with information about the internal structure of compounds. PerLex is a morphological lexicon whose material comes from Bijankhan and Wikipedia. These resources contribute knowledge about sound or vocabulary. The kit’s text pipeline requires corpus-wide decisions about sentence and token boundaries, as well as labels suitable for supervised grammatical analysis.

On the software side, STeP-1 was an existing Persian text preparation system combining tokenization, morphological analysis, and spell checking. The paper identifies source availability as a limitation of that option. The authors also discuss Dehdari’s freely available Persian parser, which uses the approach described in Parsing English with a Link Grammar. They point to a difference in the resulting representation. A node in the parser’s output cannot always be mapped uniquely to a token position, and the output supplies no explicit means to identify the sentence head. A treebank intended to train a dependency parser needs an explicit mapping between tokens and their grammatical attachments.

The paper places its project alongside other Persian treebanks being developed at the time. The Persian Dependency Treebank uses its own inventory of grammatical relations. The Persian Tree Bank draws texts from Bijankhan and uses a rule-based procedure informed by Head-driven Phrase Structure Grammar. The authors choose a separate representation based on Stanford Typed Dependencies. Their choice makes it possible to ask which grammatical relations from an existing scheme can express Persian constructions and where a Persian-specific distinction is needed.

The method, step by step

Following the text and the training data

The kit has a route for processing text and a route for building the annotated data used by the tools. On the processing side, PrePer regularizes the script, SeTPer divides the text into sentences and tokens, TagPer assigns word categories, and ParsPer can assign syntactic dependencies. On the data side, the authors revise an already annotated corpus, then draw sentences from the revision and validate their grammatical structures. Those sentences supply the training material for the dependency parser. A tool can then assist with preparing further treebank sentences for review.

The stages work at different scales. Character normalization decides which encoded forms should be treated alike. Sentence segmentation identifies stretches of text to be processed together. Tokenization establishes positions within each of those stretches. Tagging describes the grammatical category of the unit at each position. Parsing adds relationships between the units. An error or inconsistency in an early representation can affect all the later stages that rely on it. If a suffix receives its own token position, for instance, a tagger is asked to label that position and a dependency parser has to accommodate it.

From Persian text to dependency annotation

The steps in order.

From Persian text to dependency annotationStep 1: Normalize character codes, digits, and internal spacing1. Normalize character codes, digits, and internal spacingStep 2: Identify sentence boundaries from punctuation2. Identify sentence boundaries from punctuationStep 3: Split sentences into consistently defined tokens3. Split sentences into consistently defined tokensStep 4: Assign grammatical tags using annotated corpus data4. Assign grammatical tags using annotated corpus dataStep 5: Build dependency trees with the trained parser5. Build dependency trees with the trained parserStep 6: Correct parsed sentences for future training6. Correct parsed sentences for future training

The last step describes the authors’ plan for expanding the treebank. The experiments already use a manually validated seed collection. The plan takes a parser trained on that collection and uses its proposed trees as the starting point for annotating further sentences.

Normalize the representation before dividing the text

PrePer is the entry point for running the kit on Persian text. The Ruby implementation relies on the existing Virastar module for part of its formatting. The written standard they aim to follow comes from the Academy of Persian Language and Literature. In the paper’s account, this entails choosing common Unicode forms for letters and digits and marking internal word boundaries according to that orthography.

Character conversion and spacing conversion call for different kinds of decisions. Where Arabic-style letters have distinct Unicode representations, PrePer maps them to the corresponding Persian forms. It converts Arabic and Western digits to Persian digits. These changes operate on the representation of a letter or number. The spacing changes require recognizing circumstances in which neighboring material belongs within a word. Replacing an ordinary space with a ZWNJ everywhere would erase ordinary boundaries between independent words, so PrePer applies the replacement in specified grammatical environments.

Among those environments are nouns followed by plural suffixes such as -hâ and -ân, as well as certain plural endings associated with Arabic loans. PrePer also handles suffixes that express indefiniteness or form abstract nouns. The paper distinguishes written forms of the suffix according to what precedes it, including the forms after a long vowel or silent h. This is a concrete reason to condition the spacing change on the surrounding letters and forms. A general recognition that something is a suffix is only the starting point for finding the appropriate boundary in the text.

The same approach extends to a noun followed by a pronominal clitic and to a past participle followed by an enclitic copula. Compounds formed from a noun and a verbal stem also receive internal boundary treatment. The authors include suffixes that help form action nouns and cases where a suffix on a noun derives an adjective or related form. Some prefixes are handled too, including negative prefixes. Across these environments, the desired effect is to represent the adjacent material as parts of one word while retaining the visible break in joining where the writing convention calls for it.

A ZWNJ therefore preserves a distinction of interest to both the writer and the software. Someone reading the text can still recognize the shapes at the internal boundary, while the tokenizer can interpret the location differently from an ordinary space. The paper’s list describes the environments in which PrePer carries out that edit. The scope of the operation is specific: in these cases it turns an ordinary space into a different encoded character. The list captures a set of regularities the authors deemed important for Persian text preparation.

Revise the existing corpus at the same levels

The authors prepare UPEC by applying corresponding conventions to the Bijankhan corpus and revising some of its annotations. This introduces linguistic annotation decisions alongside text normalization. A correction to a character code changes how an occurrence is stored. A correction to a tag changes what the corpus says about that occurrence. The authors make both kinds of change because they want to train tools on the result and later add syntactic structure to selected sentences.

The conversion to Persian letters and digits carries over to the corpus. Within compounds and before relevant inflectional material, the authors substitute the ZWNJ for ordinary spaces. They also supply sentence boundaries, which the release of Bijankhan they discuss lacked. A tagger can use sentence boundaries to establish the context within which it makes decisions. A treebank needs them because the sentence supplies the set of tokens over which a tree is drawn.

One token-level revision concerns multiword expressions. Bijankhan sometimes represented an expression as a single token and sometimes assigned positions to its individual words. UPEC adopts the latter treatment consistently. The paper illustrates the issue with expressions glossed as “because” and “hence,” among others. An English gloss may contain only one word even when the Persian expression has distinguishable parts, so the translation offers little guidance on token count. The authors base the revised analysis on the units of the Persian expression.

This change and the ZWNJ change can move in different directions while serving the same aim. A phrase conventionally written as several words retains separate units even when the expression has a conventional meaning. The elements inside a compound or before an inflectional boundary can remain within a single token. What matters is the kind of boundary present. For dependency annotation, separate positions give the annotator a way to state relations involving the component words. The scheme can also record their association as a multiword expression.

The tag revisions clarify several distinctions. Bijankhan marked the object marker râ as P, the label for a preposition. UPEC gives it CLITIC, reflecting its position after the object and the authors’ analysis of it as a case marker. The tag for past participles changes from V PA, which groups them with past-tense verbs, to V PP, which identifies the participial form. These revisions align the tag names with grammatical distinctions the authors want to preserve in annotation. For the tagger, each such distinction defines what the correct output should be.

Another revision concerns forms that combine a preposition with a pronoun. The paper gives examples glossed as “of you” and “to you,” involving pronominal clitics, and “to this” and “to that,” involving demonstrative pronouns. Forms of these kinds received P in Bijankhan. The UPEC tag P PRO makes the pronominal element explicit in the grammatical category. This is different from the decision to split multiword expressions. Here the annotation can describe the presence of different grammatical components within the unit being tagged.

The authors also correct observed tagging errors and describe further correction as work they intend to carry out. The result is a revised text collection with a revised set of expected answers for some cases. This fact matters when the authors later compare tagging accuracy across the original and revised corpora. The outcome can reflect changes in the text presented to the tagger, the unit receiving the label, and the label that counts as correct.

Identify sentences and tokens with rules

SeTPer uses Uplug, a modular platform for combining text-processing tools. Its sentence segmenter and tokenizer use rules expressed as regular expressions, which identify recurring patterns in a string. This lets the authors adapt Uplug’s existing components to the punctuation and written forms they expect in Persian, with normalized internal boundaries as input to tokenization.

Sentence segmentation identifies where one sentence ends and another begins. The paper names the full stop, question mark, and exclamation mark as signals for Persian sentence boundaries. Tokenization operates at a smaller scale and considers a broader set of signs. Brackets, apostrophes, dashes, question marks, and other punctuation may separate units even when there is no ordinary space at the position the tokenizer needs to recognize.

The function of a character still depends on what surrounds it. SeTPer handles numerical expressions, web addresses, abbreviations, and titles, all environments in which dividing text mechanically at punctuation can break an expression that ought to be recognized as such. The authors also include acronym handling. They describe acronyms as uncommon in Persian and mention text messaging and social media as settings in which the feature can matter. These cases explain why the implementation uses patterns over text. A punctuation mark supplies boundary evidence, while a larger pattern can determine how to use that evidence.

Normalizing first gives SeTPer a principled way to treat a ZWNJ differently from an ordinary separator. A plural ending separated internally by a ZWNJ can remain with the noun. A genuine space between independent words can still establish distinct positions. The approach depends on whether the text expresses the distinction or PrePer’s rules can recover it. The evaluation of different writing styles tests this dependence at the stage where it becomes visible as a token boundary.

Assign grammatical categories in context

TagPer is based on HunPoS, an open-source reimplementation of TnT. The authors aim to handle both words with more than one possible grammatical category and words that were absent from the training data. The first situation calls for a choice among familiar analyses. The second calls for generalization beyond the exact written forms encountered in training.

HunPoS uses a hidden Markov approach with trigram context. The observed sequence consists of the written tokens, and the sequence to be inferred consists of their tags. A trigram is a sequence of three items. In this setting, using trigrams allows the tagger to account for the preceding pair of tags when considering the next tag. The training corpus supplies examples of which tags occur in such contexts and how written forms are associated with tags. As a consequence, the category chosen for a token can depend on the grammatical sequence around it.

This is where the paper’s example glossed as “man” or “died” is instructive. The unvowelled form can fit a noun reading or a verb reading. A tagger can weigh those readings in the context of the surrounding sentence. The tagging task is to assign the appropriate grammatical category for the occurrence. A word with several senses within the same category presents a different problem, since there may be a single correct tag under either interpretation.

The authors try several feature settings and combinations in adapting HunPoS for Persian. After reporting the overall tagging result of their Bijankhan experiments, they rerun the experiment on UPEC with the same training and test splits. The relevant categories include the distinctions supplied by the corpus annotations, so the training process is tied to the definition of a token and to the tag inventory. TagPer as trained with UPEC is described as freely available.

Establish a grammar for the treebank

To extend word-level information to sentence structure, the authors sample 10,000 sentences at random from UPEC. The sampled sentences have an average length of 19 words per sentence. The authors choose UPEC for its size, the balance they attribute to it, and its existing morphological annotation. The sample provides the material for the planned Uppsala Persian Dependency Treebank, abbreviated UPEDT. The authors validate 215 sentences for the seed dataset used in the present paper.

Their grammatical sketch gives the usual order of the main sentence elements as follows.

(S) (O) V

S represents the subject, O the object, and V the verb. Parentheses indicate that the corresponding element is optional in the sketch, and the unparenthesized verb is the required element. The arrangement gives the ordinary order described by the authors. A subject can also occur elsewhere in a sentence, and the paper describes flexibility in the order of optional elements. This notation states a linguistic pattern. The paper supplies the learning procedure by identifying the parser, its seed annotations, and the way it is evaluated.

A dependency tree associates tokens with heads and labels the connections according to grammatical function. A sentence’s main head is marked by the root relation. Elsewhere, a nominal dependent may be marked as a subject, a modifier may be assigned a relation that specifies the type of modification, and a noun after a preposition may be marked as its object. The annotations make the head position and the relation explicit. Both have to be defined clearly for later automatic predictions to be checked against manual analysis.

The paper illustrates this representation with a sentence about a school bell bringing children to class. Even in the English gloss, there are several distinct relationships to represent. The bell is associated with the school within the subject expression. The children are the entity brought, and the destination is expressed with a preposition. These associations belong at different points in an analysis of the sentence. The figure presents the Persian sentence as a set of labeled connections, giving a concrete example of the kind of structure the seed data supply to the parser.

Adapt the relation inventory to Persian

The authors use Stanford Typed Dependencies as the basis of their annotation scheme. Their account notes that it was developed for English and had also been applied to Chinese and Finnish. The cross-linguistic precedent makes it a candidate for reuse, with the grammatical fit assessed during annotation. The seed work shows that many of its functional labels are applicable to Persian. The inventory includes labels for such functions as nominal subjects, auxiliaries, adjectival modifiers, objects of prepositions, and relative clauses.

The authors add acc for the marker associated with accusative direct objects. This is a syntactic relation and should be read together with, but distinguished from, the CLITIC corpus tag. The corpus tag describes râ as a kind of grammatical element. The dependency relation describes the element’s function in the structure of a particular sentence. The parallel revisions are useful because the same Persian marker poses a category decision in tagging and a relation decision in parsing.

They also add lvc for a light verb construction. In the constructions covered by this label, an element before the verb can be a noun, an adjective, or an adverbial. The new relation identifies the role of that element in the construction. A category label alone would describe the kind of word present, while the dependency label states how the element contributes to the verbal construction. This is a case in which the authors judge that the existing inventory needs an explicit distinction to capture Persian usage.

The history of the scheme also includes a decision to reuse existing relations where their functions fit. The authors had previously used a special ez relation for ezafe, the linking particle occurring after a consonant as -e or after a vowel as -ye. Ezafe can link elements within nominal and other phrases. The revised scheme uses poss for possessive modification and amod for adjectival modification in place of the common ezafe label. With these labels, an annotation states the grammatical role of the linked element. The authors likewise replace their earlier int label for interjections with the existing parataxis relation, on the grounds of functional similarity.

These decisions show what adapting a scheme entails in practice. A visible or audible sign of linkage can correspond to several grammatical functions, and familiar grammatical categories can take part in a construction for which the existing relations lack a suitable label. The authors’ treatment of ezafe follows the first case. Their light verb extension follows the second. The unit of comparison across languages is the grammatical relationship the label is intended to express.

Validate a seed and use it to train the parser

The authors use the TrEd tree editor to annotate and correct the syntactic analyses. The 215 manually validated sentences form the seed set for MaltParser, the open-source dependency parser used for ParsPer. The procedure is an instance of supervised machine learning. The training examples specify the head and relation label for the tokens in sentences whose analyses have been reviewed. The trained parser can then propose labeled connections for other sentences.

The planned extension relies on alternating automatic proposals with human correction. Once the seed-trained parser proposes analyses for more UPEC sentences, the authors intend to correct those trees and add them to the training material. That gives the next training round more validated examples. The paper evaluates the first parser using the sentences already reviewed. The subsequent rounds are described as future work, including the possibility of improving the parser as the treebank grows.

Human correction is central to the proposed cycle. An automatically proposed tree can save annotators from entering all of its decisions from scratch, but the reviewed version is what enters the training set as a reference. A mistake in the head changes which words are connected. A mistake in the label changes what grammatical function the connection is understood to have. The combination of an explicit scheme and a tree editor provides a way for annotators to resolve both kinds of error before using the sentence for training.

Experiments and results

Tokenization under different writing conventions

The authors evaluate SeTPer on text in the standard writing style and on nonstandard text. The relevant convention is the Academy’s treatment of internal word boundaries. The test asks whether the tokenizer can identify units when the text already expresses the expected spacing distinctions and how it fares when those distinctions are represented inconsistently. These conditions matter because they concern the same phenomenon that motivates much of the preprocessing work.

For standard writing, the authors report 100% tokenization accuracy on 100 randomly chosen sentences. This is the result for the evaluated sample. In the standard condition, the text marks internal boundaries according to the convention around which the tokenization rules were designed. The result shows that the tested sentences supplied the combination of character and boundary cues needed for successful tokenization.

For the random sample of nonstandard text, the reported results are 98% recall and 95% precision, measured at the character level. Recall describes how much of the reference target the tokenizer recovers. Precision describes how much of what it identifies agrees with the reference. The authors attribute the errors to inconsistent marking of boundaries within words. An ordinary space can look like a signal to create a token even when it appears where the standard uses a ZWNJ, and missing internal marking can remove a clue to the intended word form.

The standard and nonstandard figures answer related questions with different reported metrics. The standard sample has an accuracy figure, while the nonstandard sample has character-level precision and recall. Each result is best read in the terms used for its own evaluation. The paper evaluates writing conditions with SeTPer itself, leaving a comparison against another tokenizer outside the reported setup. It also leaves sentence segmentation without a separate score. Though both operations belong to SeTPer, the figures reported here concern tokenization.

Tagging the original corpus and its revision

The main numerical comparison uses TagPer with the Bijankhan corpus and then with UPEC. The original-corpus experiment gives an overall accuracy of 96.9%. The paper reports that this result came from the authors’ prior experiments on adapting the tagger to Persian. They repeat the experiment using UPEC, holding the training and test split assignments consistent with the Bijankhan run. On the UPEC version of the test data they report 97.8% overall accuracy.

TagPer overall tagging accuracy on Bijankhan and UPEC

TagPer achieves higher overall tagging accuracy on the revised corpus.

TagPer overall tagging accuracy on Bijankhan and UPECTagPer on Bijankhan: 96.9TagPer on Bijankhan96.9TagPer on UPEC (this paper): 97.8TagPer on UPEC (this paper)97.8
The numbers
System or settingoverall accuracy %
TagPer on Bijankhan96.9
TagPer on UPEC (this paper)97.8

Overall tagging accuracy measures agreement with the reference tags across the evaluated tokens. It combines common and uncommon categories, unambiguous and ambiguous occurrences, and familiar and unseen words into a single result. For the purpose of this comparison, the Bijankhan run is the baseline. The tagger comes from the same approach in the repeated experiment, and the split choice keeps the source content assigned to training and evaluation in a corresponding arrangement. This gives the authors a more direct comparison than they could obtain by collecting scores from unrelated experiments.

The revised corpus can change both sides of the evaluation. Character standardization affects the forms that the tagger encounters. Tokenization revisions affect which units are presented to it. Label corrections and reclassifications affect the expected answers. The authors suggest that more consistent normalization and morphosyntactic annotation explain the higher accuracy on UPEC. The comparison shows an improvement for the resulting corpus and tagger combination under its own annotation conventions, which is the configuration the kit uses.

The paper also discusses how the Bijankhan result stands among previously reported results for Persian. The authors consider it competitive and describe it as the best published result they knew for an open-source Persian tagger at that point. They qualify the comparison because they cannot confirm that the other experiments used the same training and test split. This matters even when evaluations draw on a collection with the same name. Changes in which texts are held out can change the forms and grammatical contexts a system encounters during evaluation. The paper gives the paired Bijankhan and UPEC results greater interpretive weight by matching the splits in that comparison.

The two goals named for TagPer, handling ambiguity and handling words absent from training, provide reasons to care about the overall score. They also identify questions the aggregate leaves open. Accuracy can be high because frequent, familiar cases account for much of the test data. An overall result summarizes how the tagger performs across cases in the test as a whole. The paper gives neither group a separate reported score in this comparison.

Parsing the manually validated sentences

The parser evaluation uses the 215 manually validated UPEDT sentences. These form the seed from the larger random sample of UPEC, whose intended treebank size is 10,000 sentences. The important division is between sentences available as candidates for annotation and sentences that already contain the reviewed grammatical structure required for training and scoring. Only the seed provides that structure for this experiment.

The authors use 10-fold cross-validation. In cross-validation, the available annotated sentences are divided into groups. For each run, one group provides the held-out evaluation and the others are used for training, with the choice of held-out group rotating across runs. The process lets the authors evaluate on sentences outside the corresponding training run while drawing on the same small collection across the experiment. The reported mean summarizes the runs.

The result is a mean labeled attachment score of 62%. For an attachment to count as correct under this measure, the parser must identify the reference head for the token and assign the reference dependency label. A correct head paired with a different function fails the labeled criterion. So does a correct function applied to a connection with the wrong head. For a reader comparing the kit’s components, this explains why the parser score and tagging accuracy describe different outcomes. A tag is a category assigned to a unit. An attachment requires both a structural decision about another unit and a label for the relation.

The parser result provides a starting estimate for ParsPer trained on the available seed. The paper discusses an earlier Persian link grammar parser in its review of tools and describes differences in how that software expresses structures. The parsing experiment itself reports the result for MaltParser on the UPEDT annotations. Its value lies in locating the current stage of the project. The team has a reviewed set on which a supervised dependency parser can train and be evaluated, and the score indicates how much correction the proposed trees may still require in the work of expanding the resource.

Reading the results together

The evaluated components operate on different representations, use different assessment data, and have different criteria for correctness. The tokenizer result concerns division of independently sampled standard or nonstandard text. The tagging result concerns agreement with a word-category annotation, with matched training and test assignments across corpus versions. The parsing result concerns labeled grammatical links in a cross-validation study of the seed treebank. Each score is tied to its own conditions.

This distinction is important for judging what the kit offers as a sequence of tools. The tagger comparison shows that a revised annotated corpus can support higher measured tag accuracy in the authors’ repeated experiment. The tokenizer results show that spelling and spacing conventions remain relevant to what the software receives in fresh text. The parser result shows what can be measured once annotated sentence structures are available, at the scale attained by the project so far. These component experiments leave the behavior of the complete pipeline on the same raw documents as a separate evaluation question.

What the ablations show

The paper reports no component-removal ablations and instead analyzes variation across writing styles, compares tagging on matched corpus splits, and examines the fit of the dependency scheme to Persian.

The writing-style comparison directly concerns the boundary information available to the tokenizer. Its rules were built around an orthography that distinguishes spaces between words from nonjoining marks inside them. Standard writing supplies those cues consistently. Nonstandard writing can present the same orthographic position with a different spacing choice. The authors’ explanation for the errors therefore follows from the design of the tokenizer and the character-level evaluation. The comparison changes the text sample along with the writing style. It indicates where the rules are vulnerable, while leaving the contribution of each preprocessing substitution unresolved.

The tagging comparison keeps the training and test split assignments aligned across Bijankhan and UPEC. It is the closest the paper comes to a controlled performance comparison. This alignment makes the corpus revision the relevant change at the level being tested. Within that revision, character conversion, token boundary decisions, corrections to labels, and changes to grammatical categories occur together. A higher score for UPEC is evidence about the combined revision. The experiment leaves open how much any single edit contributes and whether some edits matter primarily through their interaction with others.

The distinctions among the edits suggest different routes to the observed outcome. Character conversion can make forms that look alike share a training representation. Consistent segmentation can give recurring expressions more comparable sequences of tokens. Changes to the annotation can reduce variation in the labels assigned to grammatical patterns. Each is a plausible interpretation of part of the improvement. The paper’s evidence supports describing the measured result for the package of revisions and the authors’ explanation that uniformity in the corpus probably helped.

The paper mentions experiments with feature settings and combinations for HunPoS. It gives an overall result from the adaptation and the outcome of repeating the experiment on UPEC. The account leaves the individual feature comparisons unspecified, so the headline score cannot identify a feature as the main source of successful tagging. Similarly, the overall metric cannot show whether the revised setup is especially helpful for unseen word forms or for choosing among several readings of a known form.

The review of the dependency labels is qualitative. The authors assess whether a proposed label expresses the relation they encounter during annotation. They find places where the existing inventory can be used and places where it leaves a Persian construction without a satisfactory relation. The addition of acc and lvc records the latter decisions. The replacement of ez and int shows the converse judgment that familiar relations can express some functions initially given local labels. These are findings about the expressiveness and fit of the scheme. The paper leaves the effect of each label change on parsing accuracy unmeasured.

The parsing cross-validation addresses a different source of variation. By rotating the held-out sentences, it estimates performance across training and evaluation partitions of the validated seed. The study keeps the parser approach and the annotation scheme in place. It gives a first performance estimate for the seed-based system. How performance responds to additional training data will become measurable once more sentences have been corrected and brought into the training cycle.

Limitations

Limits identified by the authors

The authors explicitly qualify their claim about how TagPer compares with earlier Persian taggers. They are unable to establish that those studies used the same training and test split, so the reported numbers may reflect differences in the experimental data as well as in the tagging methods. Their own matched-split comparison between Bijankhan and UPEC supports a more specific conclusion about the revised corpus in their setup.

The paper also identifies inconsistent internal word boundaries as a limitation of the tokenizer on nonstandard writing. The official orthography supplies a stable target for text preparation, but it is a convention that some input follows more closely than other input. A form typed with an ordinary space or with its parts joined can leave different evidence for the tokenizer. The reported nonstandard-text results show that this remains a practical issue even with rules designed around Persian spelling.

The corpus corrections are a continuing effort. The authors describe correcting errors they found and planning to extend that work. UPEC thus embodies deliberate changes to the source corpus and a set of corrections completed by the time of the study. The process of checking every existing annotation remains an open part of the resource’s development. This is especially relevant when using the corpus to assess a tool, because its labels define the reference against which the tool is scored.

The treebank is also explicitly under development. The planned collection contains 10,000 sampled sentences, and the parser experiment is based on the 215 that had undergone manual correction and validation. The authors intend to optimize ParsPer as the treebank expands. The mean labeled attachment score describes the first evaluated stage. Any result for the completed collection, including the effect of training with checked trees from later rounds, would require measurements beyond those reported.

Limits of what the experiments establish

For normalization, the main evidence is a description of the cases handled by PrePer and the corpus changes associated with the target convention. The paper leaves the accuracy of each normalization rule unmeasured. In particular, the tokenizer’s nonstandard-text score does not identify which inputs were successfully repaired by which rule, or which unresolved cases account for most of its errors. An evaluation before and after the relevant normalization steps on the same samples would answer a different question from the comparison reported here.

The standard tokenizer test establishes successful tokenization on the 100 randomly chosen sentences it evaluates. The size and provenance of the nonstandard sample receive less specific treatment in the reported evaluation. That constrains inferences about the spread of error across genres and typing practices. The result supports an account of what happened in the samples and the authors’ explanation about internal boundaries. The breadth of possible standard and nonstandard Persian text remains larger than those samples.

The combined UPEC intervention limits causal conclusions about tagging. Since the revised corpus can present different tokens and reference tags, the experiments concern both the data and the task definition. This matters even with matching splits. Agreement can improve when input forms are more consistent, when grammatical boundaries better suit the tagger, or when the reference categories are easier to apply consistently. The reported outcomes leave those explanations intertwined. They also leave open how the tagger trained with UPEC would fare on independently annotated texts using another set of conventions.

The aggregate tagging score leaves variation across constructions unresolved. The authors want TagPer to deal with ambiguous forms and with vocabulary absent from training. A score specifically for those cases would show how well the tool meets each of those goals. The paper’s overall result places all evaluated tokens in the same measure, so a reader cannot derive either subgroup’s performance from it. The same applies to the revised categories for participles, object markers, and forms combining prepositions with pronouns. The annotation decisions are documented, while their separate accuracy remains unspecified.

For the treebank, the paper describes manual correction and validation using TrEd. An agreement statistic across independent annotators would supply a separate estimate of how consistently the guidelines can be applied to the same sentences. This would be particularly informative for constructions that prompted revisions to the relation inventory. The reported validation establishes that the seed trees were reviewed, and the illustrated tree shows the form of the annotation. The account leaves agreement and the distribution of difficult constructions across the seed unspecified.

The parsing evaluation likewise has a limited diagnostic scope. The mean labeled attachment score combines head and relation decisions. The report leaves open how many errors come from choosing the wrong head and how many come from assigning the wrong label to a correct head. It does not break down the result by relation, so it cannot show whether the newly introduced Persian relations are easier or harder to predict than the reused ones. Cross-validation describes performance across held-out parts of the seed. Generalization to a separately collected body of Persian text is a further question.

Finally, the planned annotation cycle has a potential benefit that the paper treats as a reason for using a parser. Correcting an existing tree can be more efficient than creating one manually, and an expanded training set can support later improvements. The study reports the seed parser’s accuracy. It gives neither a measurement of annotator time saved nor a comparison across successive rounds of corrected training data. The observed result therefore establishes a basis for the cycle, while the practical gains anticipated from it remain to be measured.

What came after

The paper sets out a continuation for UPEDT. The authors plan to have ParsPer propose trees for further sentences from UPEC, correct the predicted heads and relation labels, and add the reviewed sentences to the training data. This would extend the same dependency scheme over more of the sampled text and allow the parser to be evaluated at a later stage of treebank development.

The paper records this as planned work and supplies no documented follow-up showing how later research used the kit. The other Persian treebanks it describes were contemporaneous projects using their own annotation schemes. Their presence establishes the range of approaches available at the time, while the proposed expansion of UPEDT is the continuation the authors describe for this resource.

Cite

Cite as Mojgan Seraji, Beáta Megyesi and Joakim Nivre. 2012. A Basic Language Resource Kit for Persian. Proceedings of the Eighth International Conference on Language Resources and Evaluation (LREC'12).

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

@inproceedings{seraji2012basic,
  title = {{A Basic Language Resource Kit for Persian}},
  author = {Mojgan Seraji, Beáta Megyesi and Joakim Nivre},
  booktitle = {Proceedings of the Eighth International Conference on Language Resources and Evaluation (LREC'12)},
  year = {2012},
  url = {https://aclanthology.org/L12-1162/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/seraji-2012-basic-language-resource-kit-persian/