Using Language Models to Improve Rule-based Linguistic Annotation of Modern Historical Japanese Corpora
Paper · 2022 · Jerry Bonnell and Mitsunori Ogihara
Summary
A parser trained on contemporary Japanese can break a historical expression into pieces that do not belong apart. Once it has made that decision, it must assign grammatical categories and relationships to the pieces it created. The resulting errors matter to historians and other researchers who rely on linguistic annotation to study large collections of text. Bonnell and Ogihara ask whether unlabeled historical writing can help find these errors and suggest corrections. They build on an expert system that temporarily replaces a historical expression with a more familiar form, sends the revised sentence to a parser, and transfers the resulting annotation back to the original text.
The authors start with the character-based Japanese BERT used by esupar, which was pretrained on Japanese Wikipedia. They continue its pretraining on unlabeled text that includes articles from Taiyo, a general-interest magazine published during the Meiji and Taishō periods. The exercise is to recover hidden characters from their surroundings. The system then learns part-of-speech tagging from annotated contemporary Japanese. A separate component uses its representations to learn dependency parsing, which connects words through grammatical relationships. No historical annotations are used to teach either task. The authors report vocabulary overlap of ≈50% between Taiyo and BCCWJ for their frequent-word comparison, giving them a reason to test what historical text adds to contemporary training data.
On the historical UD-Japanese-Modern treebank, the resulting system, ADAPT-ESUPAR, achieves the highest reported F1 across the paper’s main comparison. It scores 74.04 for universal part-of-speech tagging and 51.89 for labeled attachment, which evaluates grammatical links together with their relation labels. The counterpart trained on the same annotation tasks without continued pretraining scores 70.28 and 47.42, respectively. This evaluation uses 822 labeled sentences from Meiroku Zasshi, a different historical magazine source. Taiyo supplies unlabeled training text and the sentences in which the authors look for rules.
For rule discovery, the authors look for a specific disagreement. ADAPT-ESUPAR treats a pair of adjacent characters as a word, while the standard esupar installation splits it. They hide each character in turn and use the predicted replacements to make trial substitutions. A replacement becomes a candidate if the standard parser’s treatment of the substituted expression agrees with the adapted system’s treatment of the historical expression on the relevant word form, grammatical category, and dependency relation. The experiment covers substitutions of a single character within a pair containing at least one kanji.
Training with Taiyo yields the highest share of expressions absent from the contemporary training collection among the expressions flagged by just one system. It also gives the highest or joint-highest candidate discovery rate on expressions that defeat each alternative. Continued pretraining on contemporary text alone still helps in parts of the rule-discovery experiment, and one contemporary-only alternative flags more distinct expressions unique to itself. The practical contribution is a way to narrow the search for hand-checkable rules. The evidence for better historical annotation comes from the labeled treebank, while the evidence for individual Taiyo substitutions comes from agreement between systems. Expert assessment of those suggestions remains open.
Deep dive: Using Language Models to Improve Rule-based Linguistic Annotation of Modern Historical Japanese Corpora
This paper uses unlabeled historical Japanese to find parsing errors and propose spelling substitutions that experts can review as annotation rules. · about 32 minutes to read
The problem and its context
An early mistake changes the rest of the analysis
A corpus can preserve a great deal of writing without saying anything explicitly about its grammar. A scholar can read an expression and infer its role from context, but an unannotated collection gives a computer no direct record of that judgment. A collection with grammatical annotation makes a different kind of work possible. It allows a researcher to retrieve instances based on how an expression is used, and to inspect the text behind those results. The paper places automatic annotation in this setting, where the scale of a collection makes the amount of human review consequential.
For Japanese, identifying the words is part of the analysis. A sentence can be written without spaces that mark every word boundary, so software has to decide how to group the characters before it can describe what the resulting units do. The paper points to tokenization errors as an important source of trouble for historical Chinese and Japanese. The immediate problem may be as small as an unfamiliar spelling. Its effects can extend to the grammatical analysis because the annotations refer to the units produced by segmentation.
Consider the distinction between finding the wrong category for a word and failing to find the word itself. In the former case, an annotation still points to the intended portion of the sentence. In the latter, the parser offers grammatical judgments about a different set of units. A researcher inspecting the individual tags would have to look back at the boundary decision to understand why the analysis failed. This is why Bonnell and Ogihara begin their search for rules with word forms. A boundary disagreement gives them a location in the text at which a short substitution might change the analysis.
The paper uses Universal Dependencies, or UD, as its annotation scheme. UD supplies conventions for describing grammatical categories, morphological information, and the links between words. The fields central to this paper are FORM, which records the written form of a token, UPOS, which gives its universal part-of-speech category, and DEPREL, which identifies the kind of dependency linking it to its grammatical head. Those fields make it possible to describe where a parser succeeds or fails at several levels. A plausible category alone would offer little reassurance if the parser had built it around the wrong character span. The broader framework is described in Universal Dependencies v2.
Two ways to bring historical usage into the analysis
The authors describe a field in which researchers already had tools that could take Japanese raw text and deliver segmentation, tags, and dependencies together. Such a tool offers a practical starting point, especially when the alternative is to annotate a corpus by hand. Its training, however, determines which kinds of writing it has learned to handle. The paper is concerned with deploying tools developed on contemporary material in a historical setting where words, spellings, or boundaries can be unfamiliar. It cites work on Japanese that addresses this difficulty through changes to morphological analysis and work that uses expert-corrected material to train annotation software.
Expert correction can supply information that raw text cannot. A corrected boundary shows which grouping a knowledgeable reader accepts. A corrected annotation can also document a convention that should be applied across a corpus. In the Japanese example the authors cite, Shirai and colleagues used training material made available through expert corrections and combined UDPipe with CRF++ for sequence labeling. The labor required to establish that material is part of the context for this paper. If every new historical collection calls for extensive correction before it can be analyzed, the burden falls on people with the very expertise the software is meant to assist.
The authors also discuss research that learns from raw text in a new domain. A contextual representation gives an expression a numerical description informed by the text around it. Continued pretraining lets a system adjust such representations after encountering the vocabulary and constructions of a new collection. The studies Bonnell and Ogihara discuss had applied this approach to tasks such as segmentation, tagging, and recognizing named entities in historical material. Their own use of unlabeled historical data follows the approach to historical sequence labeling described by Han and Eisenstein in Unsupervised Domain Adaptation of Contextualized Embeddings for Sequence Labeling.
The attraction of this approach is that domain adaptation can start before a collection has grammatical labels. The paper places that choice in a wider line of research on continuing pretraining with text from the domain of interest. Exposure to such a collection can change what a system learns about the surroundings in which expressions occur. For a scholar who wants to make a specific correction, though, exposure through training data gives limited direct control. A person can supply relevant texts, yet still have no editable record identifying the particular historical spelling that should receive a different analysis. The broader rationale for continued pretraining comes from Don't Stop Pretraining.
Why keep the rules?
Bonnell and Ogihara had previously developed an expert system for Modern Historical Japanese with a direct place for a scholar’s judgment. Before parsing, it substitutes a familiar equivalent for a historical form. After parsing, it aligns the resulting analysis with the original word forms. The historical text remains the object of study. The rewritten sentence is an intermediate representation used to obtain an analysis from existing software.
The paper illustrates the arrangement with 假令へ and たとえ. A rule gives the system an explicit place to record their correspondence for annotation. Someone inspecting the output can see which text prompted the substitution and which form was sent to the parser. If the rule causes trouble, the correspondence can be examined independently of the parser’s internal representations. This is the concrete sense in which the earlier workflow gives a domain expert a way to intervene.
Writing these correspondences by hand leaves a search problem. An expert may know how to repair a historical form after seeing it in context, while still having no economical way to decide which among many forms to inspect first. The amount of work depends on how many different rules a corpus needs and where the existing parser is weakest. Looking through the entire output also means spending time on passages where the parser’s analysis may already be adequate.
The new paper brings automatic adaptation into that search. Its premise is that a system exposed to historical writing may handle some expressions differently from a standard parser. Those disagreements identify passages worth investigating. A character prediction task can then generate forms to try, with the parser itself used to test what each proposed substitution does. The resulting objects are still rules that a reader can inspect. The shift is in how the expert finds them, and in how much evidence can be gathered before a person has to make a linguistic judgment.
The method, step by step
A historical magazine for learning and a separate one for evaluation
The historical text used for adaptation comes from Taiyo, a general-interest Japanese magazine published by Hakubunkan. NINJAL (National Institute for Japanese Language and Linguistics) maintains the collection within its Corpus of Modern Japanese. The paper describes Taiyo as spanning 1895-1925 and containing 3400 documents by 1000 writers. It notes that literary and colloquial styles changed during the magazine’s run and that both can occur within a single article. Domain adaptation here means learning from a collection with variation inside it, including variation within a document.
Taiyo comes without the linguistic metadata needed to score a parser against reference annotations. The authors can therefore use the articles as evidence about which characters and expressions occur in context, but their method needs another source for examples of the desired UD output. For supervised learning, where each example comes with labels, they turn to contemporary Japanese. For historical accuracy testing, they use a smaller set of historical texts that already has annotations.
The Balanced Corpus of Contemporary Japanese, or BCCWJ, provides the principal contemporary source. Its annotated derivative, UD-Japanese-BCCWJ r2.8, comes from the edited core of the corpus and contains 1980 documents and 57K sentences. The authors add UD-Japanese-GSD, a Japanese treebank from the Google Universal Dependency Treebanks. A treebank is a collection of sentences annotated with grammatical structure. These contemporary treebanks provide both text for the continued pretraining stage and grammatical labels for the subsequent task training. The Japanese UD resources are described in Universal Dependencies Version 2 for Japanese.
Historical evaluation uses UD-Japanese-Modern. It contains 822 labeled sentences sampled from Meiroku Zasshi, another magazine source in NINJAL’s Corpus of Modern Japanese. This gives the experiment a labeled sample of the kind of writing the authors want to annotate. The distinction between collections matters whenever a result is described as historical. A score on UD-Japanese-Modern evaluates predicted structure against historical reference labels. An observation on Taiyo concerns the historical text used for domain adaptation and rule discovery, with evidence drawn from the outputs of the systems.
The authors also need to distinguish the Taiyo text seen during continued pretraining from the text used to search for rules. Since there is no standard split for the corpus, they randomly partition documents in a 75%/25% scheme. They report 2121/707 documents for the training and testing partitions. The training partition contributes raw text to adaptation. The test partition provides the sentences in which bigram disagreements are raised and the contexts in which suggested replacements are tried. The historical treebank is a separate source of evidence and plays no role in teaching the annotation tasks.
Choosing a starting point and measuring the domain gap
The authors focus on Japanese annotation tools whose prior training draws on contemporary text. This matches the situation they want to study, where a researcher has an existing contemporary tool and a historical corpus to process. They acknowledge that Japanese BERT variants trained on material closer to the historical domain were available and leave them outside this comparison.
The paper uses GiNZA 5.1.0 and esupar 1.1.5. GiNZA is based on ELECTRA and draws on a large Japanese web crawl and UD-Japanese-BCCWJ r2.8. It supplies an independent comparison on the labeled historical treebank. Esupar uses BERT for universal part-of-speech prediction and a recurrent neural network with a biaffine scoring mechanism for dependencies. It can start from different pretrained BERT configurations. For their trained variants, the authors use KoichiYasuoka/bert-base-japanese-char-extended, a character-based configuration pretrained on Japanese Wikipedia.
To see how much the domains differ in observed vocabulary, the authors segment samples using MeCab with UniDic for Modern Literary Japanese. They take the top 10K words of each sample and compare the lists by percentage overlap. Their comparison includes material from several Taiyo publication years, Meiroku Zasshi, the contemporary treebanks, and Japanese Wikipedia. Using the same segmentation setup across samples gives the comparison a common basis. The overlap describes frequent word types under that segmentation. It is a different measurement from the later search for character pairs absent from the source training collection.
The vocabulary comparison gives an initial reason to expect adaptation to matter. Some frequent words are shared across the historical and contemporary collections, which gives contemporary training material a way to be useful. Other frequent items fall outside the shared list. The contrast frames the experimental question: how much does access to Taiyo itself contribute, given what the starting system has already learned and what further contemporary text can teach it?
Continued pretraining without grammatical labels
The first training stage uses masked character prediction. The task gives BERT a piece of text with some positions hidden and requires it to predict the original contents at those positions. The target comes from the text itself. An article can therefore supply examples regardless of whether a human has identified its word boundaries or described the structure of its sentences.
In the adapted condition, the input consists of the Taiyo training partition together with the text of the training splits from the contemporary treebanks. The grammatical labels are set aside for this stage. This is continued pretraining because it updates the existing Japanese BERT from its Wikipedia-trained starting point. The adaptation is unsupervised with respect to grammatical annotation. The system receives an answer for each masked character, while the training objective makes no use of a part-of-speech or dependency label for that position.
The authors generate ten random maskings for each sample. Each masking randomly hides 15% of the tokens. They run three epochs over the masked data. An epoch is a training pass through the data, so the setup repeatedly exposes the predictor to text with different positions hidden. The authors set the maximum sequence length to 50 and segment the material into chunks of that size. They chose the shorter segments because these gave lower training loss in their experiments. Training loss measures performance on the prediction objective during learning. The choice therefore concerns how well the system learned to recover masked text in this setup.
This stage equips the historical text to contribute in two places. The updated contextual representations supply the starting point for training the annotation tasks. The ability to fill a masked position is also used later to propose substitutions. The first use concerns what the system recognizes when it analyzes a sentence. The second concerns what alternative characters it can suggest for a sentence that has already drawn attention.
Learning what to label and how to connect it
After continued pretraining, the authors use fine-tuning to teach universal part-of-speech prediction. They train on labeled examples drawn from the training splits of the contemporary treebanks. At this point, a target is a grammatical category assigned to a unit in the annotated training material. The adjusted contextual representations help the predictor decide which category to assign when it encounters a unit in a new sentence.
Dependency training follows. The representations from the BERT system fine-tuned for UPOS serve as an input layer to a bidirectional long short-term memory network, or BiLSTM. Bidirectional processing lets the sequence representation incorporate information from both directions. The deep biaffine component scores grammatical attachments using representations of the units involved. It is trained with dependencies from the contemporary source corpora. This follows the esupar architecture described by Yasuoka.
The resulting annotator combines knowledge acquired from two sorts of evidence. The historical text has supplied examples of how characters occur together. Contemporary treebanks have supplied examples of how grammatical categories and relationships are expressed in UD. For the dependency component, the authors assume that the benefit of the adjusted representations can carry through the additional training step. The historical evaluation tests the combined system after that transfer has taken place.
The authors made their implementation publicly available as adapt-esupar. Their BERT and BiLSTM implementations use PyTorch with HuggingFace Transformers 4.16.2 and esupar 1.1.5, respectively. They report running the experiments on an NVIDIA Tesla P100 GPU and using parallel execution to speed up annotation. These implementation details belong to the training and evaluation setup. The rules themselves have the simpler form of a correspondence between written expressions.
From historical text to candidate annotation rules
The steps in order.
Finding a disagreement narrow enough to act on
Rule discovery starts with the annotations of sentences in the Taiyo test partition. The authors compare the system they trained with the standard esupar configuration used as a reference for disagreements. The search focuses on FORM because FORM records which written span the annotator has treated as a word. The eligible case is a bigram, an n-gram of adjacent characters, containing at least one kanji. The trained system must group the pair together, while the standard parser must divide it.
The paper gives the example 夫れ. If one output has a token covering 夫れ and the standard output divides it into 夫 and れ, the difference can be located at a specific pair of characters. That pair supplies the historical side of a candidate rule. An ordinary disagreement between two category labels on an already shared token does not enter the search. The direction of the boundary disagreement is also fixed, which makes the proposed change easy to express as a local substitution.
A flag records what each system did. Treating it as evidence of an actual error requires reason to trust the adapted analysis. The authors first ask whether adaptation improves accuracy on the annotated historical treebank. That evidence makes it reasonable to investigate the adapted system’s decisions on Taiyo. Each individual occurrence still calls for its own judgment because the corresponding Taiyo sentence has no reference annotation.
Turning a character prediction into a rule proposal
Once a bigram is flagged, the authors collect the contexts in which it occurs in the Taiyo test partition. They pass each context to the domain-tuned BERT with its masked prediction component. In one version of the context, the first character of the bigram is hidden and the second stays visible. In another, the second is hidden and the first stays visible. They retrieve the top 15 predictions for each masked position.
This makes the candidate search local without reducing the input to an isolated pair. Characters outside the bigram remain available in the sentence and can influence the prediction. The same bigram may occur in several sentences, so the suggestions can reflect different surrounding expressions. At the same time, every proposal generated by a mask keeps the unmasked character of the pair. The search space follows directly from that decision.
The paper walks through the process for 之の. ADAPT-ESUPAR treats this expression as a unit, assigns the universal category DET and gives it the dependency relation det. The upper-case label identifies the token as a determiner. The lower-case label describes its grammatical relation to its head. In this context, masking 之 yields predictions including そ, こ, 此, and 別. Leaving the second character as の gives trial forms including その, この, 此の, and 別の. Masking の instead yields a different set of forms with 之 still in the first position.
The paper writes a rule as a mapping. Its expert-system example has this form.
假令へ → たとえ
假令へ is the original historical expression. → marks the direction of substitution. たとえ is the form supplied to the parser in the rewritten sentence. In the rule search, the expression on the left comes from the flagged FORM disagreement. The expression on the right comes from a masked prediction inserted at the position that was hidden. The arrow describes an intervention in the annotation workflow. It carries no claim that the expressions are interchangeable in every sentence.
A high prediction rank gets a form into the search. To evaluate the form, the authors actually insert it into its sentence and run the standard parser again. They check whether the resulting token covers the intended expression and whether its UPOS and DEPREL agree with those assigned by the adapted system to the historical expression. Since the original and replacement can have different characters, agreement on FORM concerns how the replacement is recognized as a unit in the substituted sentence. The analyses are compared at the corresponding expression.
The 之の example illustrates why the parsing step matters. The paper marks その and この as candidates, while 此の and 別の appear among the predictions without that designation. When the second character is masked, 之ゝ is also marked as a candidate. A contextual prediction can suggest a plausible string while failing to produce the intended annotation when the parser sees it. Conversely, passing the annotation check makes a string worth inspecting even when a scholar has yet to decide how broadly the substitution should apply.
The authors favor replacements that produce consistent agreement across occurrences. This rewards a form that helps the parser in the relevant sentences, rather than one that happens to work at an isolated position. The paper describes the ranking through that consistency criterion. The candidate list can then be curated and added to the expert system. When the rule is used there, the system parses the substituted sentence and restores the historical forms in its annotated output. Discovery, validation by a parser, and acceptance by an expert are distinct decisions in that sequence.
Experiments and results
The comparisons separate text exposure from task training
ADAPT-ESUPAR receives unlabeled data from both the historical target and contemporary source during continued pretraining. It then learns UPOS and dependencies from the labeled contemporary training material. The alternatives use the same BERT starting point and the same kinds of supervised annotation tasks. Their differences are designed to show what changes when continued pretraining uses different data or is skipped.
- FINETUNED-ESUPAR goes straight to task training on the labeled source data.
- OMIT-ESUPAR continues pretraining on the available unlabeled source training text and leaves out Taiyo.
- SUB-ESUPAR replaces the Taiyo material used by the adapted system with an equal amount of unlabeled text from the non-core part of BCCWJ before the same task training.
SUB-ESUPAR addresses a specific ambiguity in the comparison. Adding Taiyo changes the domain of the text and increases the material used for continued pretraining relative to OMIT-ESUPAR. Giving SUB-ESUPAR an equal amount of replacement text lets the authors ask whether additional contemporary material can deliver similar benefits. Its replacement corpus changes the vocabulary and contexts available during training, so the comparison tests the historical collection against a particular contemporary alternative.
The standard ESUPAR installation and GINZA have separate roles. GINZA is scored against the historical treebank. Standard ESUPAR, using KoichiYasuoka/bert-base-japanese-upos, provides the output against which the authors detect splits and test substitutions on Taiyo. The authors omit it from the treebank comparison because the records of its task training did not let them establish whether it had already used UD-Japanese-Modern. As a result, the accuracy experiment and the rule experiment share an aim but have different reference points.
Historical tagging and dependency scores
The authors report F1 scores on UD-Japanese-Modern. UPOS measures agreement on universal part-of-speech tags. UAS is the unlabeled attachment score, which checks the choice of grammatical head. LAS is the labeled attachment score, which also requires the dependency relation to be correct. MLAS is the morphology-aware labeled attachment measure, and BLEX is the bi-lexical dependency measure, which evaluates lexical information as part of the analysis. These last measures make the evaluation broader than checking the individual fields used for rule screening. The scoring measures come from the CoNLL 2018 Shared Task on Multilingual Parsing.
Universal part-of-speech tagging F1 on UD-Japanese-Modern
Training with unlabeled Taiyo text gives the highest tagging score in the comparison.
The numbers
| System or setting | F1 |
|---|---|
| SUB-ESUPAR | 68.87 |
| GINZA | 69.51 |
| OMIT-ESUPAR | 69.77 |
| FINETUNED-ESUPAR | 70.28 |
| ADAPT-ESUPAR (this paper) | 74.04 |
The tagging comparison shows that continued pretraining is sensitive to the text used. The scenario with no continued pretraining, FINETUNED-ESUPAR, leads the two versions continued only on contemporary text. ADAPT-ESUPAR leads across the comparison. Because the trained esupar variants share the supervised task setup, the ranking is evidence that the choice of raw text matters to the grammatical predictions learned afterward.
Labeled attachment F1 on UD-Japanese-Modern
The Taiyo-trained system leads on grammatical attachments scored together with their relation labels.
The numbers
| System or setting | F1 |
|---|---|
| GINZA | 44.05 |
| SUB-ESUPAR | 47.39 |
| FINETUNED-ESUPAR | 47.42 |
| OMIT-ESUPAR | 47.49 |
| ADAPT-ESUPAR (this paper) | 51.89 |
For unlabeled attachment on the historical treebank, ADAPT-ESUPAR scores 71.63 F1. OMIT-ESUPAR leads the training alternatives with 65.15, followed by FINETUNED-ESUPAR at 64.44 and SUB-ESUPAR at 63.97. GINZA scores 58.88. OMIT-ESUPAR also leads the training alternatives on labeled attachment, so the ranking among them depends on whether the measurement is tagging or grammatical attachment. ADAPT-ESUPAR’s lead on both attachment measures shows that the benefit appears when checking head selection alone and when checking heads together with their relation labels.
The morphology-aware measure gives ADAPT-ESUPAR 32.76 F1 for MLAS, with FINETUNED-ESUPAR at 29.41, SUB-ESUPAR at 28.62, OMIT-ESUPAR at 28.56, and GINZA at 24.26. On BLEX, the respective scores are 42.95, 38.47, 38.17, 38.12, and 31.84. The authors add a comparison with the generally trained UDify, which scores 35.47% on BLEX. Each trained esupar variant exceeds that BLEX result in the paper’s comparison. The reported evidence for this comparison is strongest on BLEX, with the authors describing the systems as competitive on the other measures.
Together these scores support the first premise of the rule workflow. A system trained with historical raw text gives better annotations on a labeled historical sample than the alternatives in the main experiment. They do not measure how frequently a particular Taiyo disagreement reveals an error. The later experiments therefore ask narrower questions about the expressions flagged and about the ability to find a substitution that changes the standard parser’s output.
Which character pairs draw attention?
For the disagreement study, each trained system produces its own set of flagged bigram types from the Taiyo test partition. Membership means that the trained system grouped the pair as a word while standard ESUPAR separated it. The authors compare the sets to see how often the systems identify the same types and how much each system contributes on its own.
The share common to all four trained systems is 33% of the flagged differences shown in the overlap analysis. Another region, shared by SUB-ESUPAR, FINETUNED-ESUPAR, and OMIT-ESUPAR, accounts for 8%. Among regions unique to one system, SUB-ESUPAR has the largest share at 9%. ADAPT-ESUPAR follows at 8%, and FINETUNED-ESUPAR has the lowest share at 5%. These percentages describe regions in a comparison of lists of flagged types. The experiment does not weight the regions by the number of times a given expression appears in the magazine.
The authors next ask how far the flagged types depart from the available source vocabulary. An out-of-vocabulary bigram, or OOV bigram, is one that is absent from the combined source training collection used for this comparison. That collection brings together UD-Japanese-BCCWJ, UD-Japanese-GSD, and the non-core BCCWJ samples used as replacement material. All four systems are measured against that common collection. An OOV designation therefore means absence relative to the experiment’s source data and can be interpreted consistently even though the systems saw different text during continued pretraining.
Source-vocabulary OOV rates for uniquely flagged Taiyo bigrams
The adapted system’s unique flags contain the highest share of bigrams absent from the source training collection.
The numbers
| System or setting | OOV % |
|---|---|
| FINETUNED-ESUPAR | 69.7 |
| OMIT-ESUPAR | 71.7 |
| SUB-ESUPAR | 71.7 |
| ADAPT-ESUPAR (this paper) | 75.3 |
The rate for the bigrams flagged by every trained system is 67.8%, lower than the rates in the unique regions. The chart treats a higher rate as preferable for the purpose of finding source-unseen forms. SUB-ESUPAR’s larger unique region and ADAPT-ESUPAR’s higher OOV share answer different questions. One concerns how many flags are distinctive to a system as a share of the comparison. The other concerns how those distinctive flags are distributed between pairs present and absent in the source data.
Can another system help when one has no candidate?
The final experiment looks at bigrams that all four trained systems flag. This common set gives the authors a starting point where every system agrees that the standard parser split a pair that it grouped together. The authors then consider, for each system in turn, the subset for which its masked predictions yielded no acceptable candidate. Such a term is called difficult for that system.
Acceptance always uses the ADAPT-ESUPAR analysis as the target. For a candidate to count, inserting it and parsing the new sentence with standard ESUPAR must give the relevant agreement on FORM, UPOS, and DEPREL. The other systems attempt to produce candidates for the difficult subset. The result for a tested system is the percentage of that subset for which it finds at least one candidate. This measure is about whether the search turns up an option, independent of how many additional options it returns for the same bigram.
Among the bigrams difficult for FINETUNED-ESUPAR, ADAPT-ESUPAR and SUB-ESUPAR each find candidates for 23.5%. The paper identifies this group as the one for which the other systems generally have the most success. On the group difficult for OMIT-ESUPAR, ADAPT-ESUPAR finds candidates for 16.7%, SUB-ESUPAR for 13.6%, and FINETUNED-ESUPAR for 10.2%. The authors report that, for each competing system’s difficult subset, ADAPT-ESUPAR has the highest or joint-highest candidate discovery rate.
The authors also look at the reverse comparison. When the difficult subset comes from ADAPT-ESUPAR, the other systems recover candidates at lower rates than ADAPT-ESUPAR achieves on their respective difficult subsets. The paper takes that pattern as evidence for the usefulness of Taiyo training in the candidate search. The interpretation depends on the chosen acceptance standard and on the subset of bigrams that every system flagged. It measures coverage under a fixed definition of a successful substitution.
What the ablations show
Removing continued pretraining gives different answers for different tasks
The controlled experiments vary the unlabeled pretraining stage while keeping the basic annotation architecture and the use of contemporary labels. The most direct contrast is between the adapted system and FINETUNED-ESUPAR, which skips continued pretraining. The adapted system is ahead across the historical treebank measures. It also contributes more distinctive flags, and its masked predictions more frequently provide candidates when another system has failed under the paper’s criterion.
The annotation scores show why an ablation should be read with the metric in view. FINETUNED-ESUPAR is the strongest training alternative on UPOS, MLAS, and BLEX. OMIT-ESUPAR edges ahead of it on UAS and LAS. The absence of continued pretraining is more apparent as a weakness in the search for rules. FINETUNED-ESUPAR has the smallest unique flag region, the lowest OOV share in that region, and a difficult subset on which the other systems frequently succeed. A system capable of competitive grammatical labeling after supervised training can still be relatively weak at suggesting useful character substitutions.
There is a reason for that distinction in the design. Training on annotated source sentences directly exercises the prediction of UPOS and dependencies. The search for replacements later exercises masked prediction and judges what happens when the resulting text goes through the standard parser. Improving the first capability and improving the second can involve different evidence. It is therefore possible for the same training choice to look stronger in the treebank comparison than in the candidate experiment. The paper’s results support that reading without isolating the internal source of the difference.
Replacing Taiyo tests the role of the historical text
OMIT-ESUPAR and SUB-ESUPAR keep continued pretraining but exclude Taiyo. With OMIT-ESUPAR, continued pretraining uses the contemporary source training text. With SUB-ESUPAR, the larger allocation is retained by introducing additional non-core BCCWJ text in place of the historical material. The comparison between these systems shows what is feasible with a contemporary-only supply of raw text. The comparison with ADAPT-ESUPAR tests how much the particular historical collection contributes beyond that supply.
On the historical treebank, the equal-amount replacement fails to reproduce the adapted system’s advantage. SUB-ESUPAR does not lead the training alternatives on any of the reported treebank measures. The strongest evidence for including Taiyo is consequently the consistent direction of ADAPT-ESUPAR’s lead across measures whose requirements differ. Since the comparison holds the amount of replacement material equal, the result gives more information than a simple contrast between training with extra text and training without it.
The rule search gives the replacement baseline a stronger showing. SUB-ESUPAR flags the largest unique share of bigrams and matches ADAPT-ESUPAR on candidate discovery for expressions difficult for FINETUNED-ESUPAR. The paper’s discussion describes a 3.6% reduction in OOV rate for SUB-ESUPAR relative to ADAPT-ESUPAR in their respective unique regions. The underlying rates show why the paper emphasizes both the usefulness of continued pretraining generally and the extra value of historical data. Additional contemporary text can yield distinctive suggestions, while the historical training condition makes its own unique flags especially concentrated among forms missing from the source collection.
The authors connect the strength of the contemporary-only baselines to the ≈50% vocabulary overlap observed between Taiyo and BCCWJ in the frequent-word analysis. Shared expressions give a system opportunities to learn from the contemporary material in ways that can carry over to Taiyo. The overlap offers an explanation for why continued pretraining away from the target can still help. Since the paper does not change overlap independently of the corpus used, the explanation remains an interpretation of the comparison.
Agreement across systems serves a different purpose from novelty
The overlap diagram and the OOV analysis address different aspects of the flags. A bigram common to all the sets indicates that the outcome is robust to these changes in training. Such agreement shows where several trained versions see a boundary differently from the standard installation. It does not isolate which part of historical adaptation accounts for the difference. The common region is also the one with the lowest observed OOV rate, so being easy for several systems to notice and being unusual relative to their source data come apart.
A unique region gives a more direct way to ask what a particular training setup contributes. By construction it contains the types other variants missed. The OOV rate then asks a narrower question about the character of that contribution. ADAPT-ESUPAR’s rate suggests that its distinctive flags are more closely associated with the vocabulary gap that motivated the work. SUB-ESUPAR’s larger unique share shows that the number of distinctive flags can increase under a training setup with no exposure to Taiyo.
This analysis matters for rule generation because a research team could have different purposes in inspecting a list. A broad search may benefit from disagreements that consistently recur across systems. A search for expressions characteristic of the gap between historical and contemporary text may draw more information from the unique regions. The paper supplies evidence about which types of flags each setup produces. A judgment that one inspected occurrence calls for a rule depends on how the expression is used.
The difficult subsets test recovery under a fixed target
The difficult-bigram comparison begins inside the region of common flags. In that region each trained system agrees about the original grouping, so candidate differences cannot be explained simply by one system overlooking the bigram at the initial flagging stage. What varies is whether the masked predictions discover a replacement that passes the subsequent annotation check. Defining a difficult subset for each system exposes cases where another system may have useful alternatives that the first one failed to suggest.
The percentages are conditional on those subsets. A high score for a system on the difficult terms of FINETUNED-ESUPAR describes its ability to recover where that particular baseline fails. OMIT-ESUPAR defines its own subset, whose terms may have different properties. ADAPT-ESUPAR’s highest or joint-highest score within each comparison is the consistent result. Comparisons across subsets also reflect which terms enter them in the first place.
Keeping the ADAPT-ESUPAR annotation fixed as the acceptance target makes the systems answer the same question for a given term. Under that standard, the study shows that the Taiyo-trained predictor is good at producing substitutions that bring the standard parser into agreement with the adapted analysis. The choice of reference also bounds the conclusion. A different acceptable grammatical analysis could change which candidates count as successes. The experiment isolates variation in recovery under the paper’s criterion, while the labeled treebank supplies the independent comparison of historical annotation accuracy.
Limitations
Limits the authors identify
The authors identify the shape of the search as an immediate limit. It begins with a pair of adjacent characters containing at least one kanji, and the relevant error is a split made by the standard parser. Only one character can be replaced in a trial. A correction that changes both characters together, adds or removes characters, or applies to a longer expression is outside the search. So is the reverse kind of boundary dispute, where a unit produced by the standard parser should be separated. The authors propose extending the search to longer forms and to cases in which a proposed bigram should be split.
They also identify the choice of source material as consequential. Their contemporary data share a substantial amount of frequent vocabulary with Taiyo, and continued pretraining on that material remains valuable for some outcomes. The authors expect the distance between sources to affect the gain attributable to target-domain adaptation. They propose studying this relationship more directly and looking beyond vocabulary overlap as a way to describe domain similarity. Their experiment supplies comparisons among particular corpora. It gives no scale on which a reader can place an arbitrary new collection and predict the gain from adaptation.
The authors leave evaluation by domain experts for future work. They argue that flags can direct attention and that explicit rules make changes understandable and editable. The paper evaluates annotation scores, the composition of flagged lists, and candidate recovery. An expert study would address distinct questions about how much review the suggestions require, how frequently they are accepted, and whether they help with the actual work of building a corpus. Those questions matter because the intended outcome includes a more workable review process as well as better automated predictions.
The paper also marks a practical access constraint. Copyrighted material limits public access to the complete Taiyo corpus, which the authors describe as available through NINJAL on disc. The released code documents their workflow, but repeating the experiment on the original collection requires access to that collection. The paper’s general description of Taiyo gives 3400 documents, while the reported experimental split is 2121/707 documents. The reason the split covers a smaller collection is left unspecified.
Limits visible in the experimental design
The independent historical evaluation and the rule-discovery corpus are different. UD-Japanese-Modern gives the authors reference labels from Meiroku Zasshi. It supports a claim about transfer to the historical sample represented in that treebank. The Taiyo experiments have access to text but lack a reference for each token, category, and dependency. A higher score on the labeled resource therefore gives general support for trusting ADAPT-ESUPAR on historical writing. It cannot settle which parser is right for a given Taiyo disagreement.
The same distinction limits what the candidate recovery rates establish. An accepted substitution has passed a test of segmentation, category, and relation agreement. That test gives a concrete mechanical check on the rule’s intended effect. A scholar evaluating the rule would also want to know whether the proposed form preserves the historical expression’s meaning and function across the contexts where the rule would apply. In the paper’s example, several forms can pass the annotation check for 之の. Their shared category and relation provide evidence about how they are parsed, while a choice among them can depend on what a particular passage says.
The relation label is also less information than the complete structure of the sentence. The candidate check looks at the relevant token and selected UD fields. A parser could return the expected relation label at that token while making other attachment decisions elsewhere in the sentence. The rule experiment does not score the full effect of a curated ruleset on independently labeled historical sentences. The treebank F1 scores belong to the trained systems themselves. They should therefore be read separately from the rule candidates that could be added to the earlier expert system.
The flagged sets depend on the particular standard ESUPAR configuration. A different parser may split different expressions or benefit from different substitutions. GINZA provides a useful independent point of comparison on labeled historical text, but the paper does not repeat the Taiyo rule search with GINZA as its reference parser. The authors also set aside pretrained Japanese BERT configurations whose training data were closer to the historical material. The result establishes what their adaptation adds to the contemporary starting point they selected.
The difficult-bigram study imposes two further restrictions. Its starting material is the set of expressions flagged by every trained system, and each failure set depends on the system whose predictions defined it. The reported recovery rates consequently provide no estimate of coverage across all historical expressions, or even across all flags unique to ADAPT-ESUPAR. Since the acceptance target is ADAPT-ESUPAR’s own grammatical analysis, the design tells us how well different predictors help the standard parser reach that analysis. A separate source of expert labels would be necessary to judge whether the intended analysis and the proposed substitutions are both linguistically appropriate.
Finally, each training comparison changes the text as a whole. Substituting a contemporary sample for Taiyo changes the domain and the actual vocabulary, styles, and contexts supplied during continued pretraining. The equal-amount comparison controls the allocation of text in the design. It cannot tell whether a particular gain comes from seeing a historical spelling, seeing a familiar spelling in a historical context, or learning broader features of the magazine’s writing. The experiments show which training condition worked best for the reported historical measures and where other conditions remained competitive.
What came after
No later study is identified that applies or extends this workflow. The paper itself sketches a continuation in which the direction of transfer would change. In the tested workflow, the adapted annotator suggests where an expert system could benefit from a new rule. The proposed continuation would take annotations produced through expert-approved rules and use them as labeled target data in supervised training. A spelling correspondence accepted by a scholar could then influence how the trained annotator handles later text, as well as how the expert system processes occurrences of that correspondence.
That proposal would require a new evaluation. It would use historical labels derived through the expert system, whereas the reported annotation experiments learn their grammatical tasks from contemporary labels. The authors note that training on labeled target data can reduce labeling accuracy in the original source domain, a possibility they leave outside their historical evaluation. Their other proposed continuation is direct review by domain experts. That would supply evidence about whether the flags point readers to worthwhile corrections and whether the proposed rules make the resulting annotations easier to inspect and revise.
Cite
Cite as Jerry Bonnell and Mitsunori Ogihara. 2022. Using Language Models to Improve Rule-based Linguistic Annotation of Modern Historical Japanese Corpora. Proceedings of the 6th Joint SIGHUM Workshop on Computational Linguistics for Cultural Heritage, Social Sciences, Humanities and Literature.
@inproceedings{bonnell2022using,
title = {{Using Language Models to Improve Rule-based Linguistic Annotation of Modern Historical Japanese Corpora}},
author = {Jerry Bonnell and Mitsunori Ogihara},
booktitle = {Proceedings of the 6th Joint SIGHUM Workshop on Computational Linguistics for Cultural Heritage, Social Sciences, Humanities and Literature},
year = {2022},
url = {https://aclanthology.org/2022.latechclfl-1.5/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bonnell-2022-language-models-improve-rule-based/