---
title: "Combining Machine Learning and Rule-based Approaches in"
description: "Decision trees help a rule-based translator choose Spanish copulas and Japanese location markers, with gains that depend on the training text."
canonical: "https://research.elamur.ai/free/en/papers/melero-2002-combining-machine-learning-rule-based/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/melero-2002-combining-machine-learning-rule-based/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2002](https://md.research.elamur.ai/free/en/papers/2002/) / Combining Machine Learning and Rule-based Approaches in Spanish and Japanese Sentence Realization

# Combining Machine Learning and Rule-based Approaches in Spanish and Japanese Sentence Realization

Paper · 2002 · Maite Melero, Takako Aikawa and Lee Schwartz

**Authors:** [Maite Melero](https://md.research.elamur.ai/free/en/authors/maite-melero/), Takako Aikawa and Lee Schwartz · **Year:** 2002 · **Venue:** Proceedings of the International Natural Language Generation Conference · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

[**4** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W1278513192) · [Proceedings of the International Natural Language Generation Conference](https://aclanthology.org/volumes/W02-21/) · [licence](https://creativecommons.org/licenses/by-nc-sa/3.0/)

- [Publisher's page](https://aclanthology.org/W02-2104/)
- [PDF](https://aclanthology.org/W02-2104.pdf)
- [OpenAlex](https://openalex.org/W1278513192)

Citations: OpenAlex, 2026-10-14.

## Summary

A sentence can arrive at the final stage of translation with its meaning mostly in place and still contain the wrong word. English *be* can correspond to either *ser* or *estar* in Spanish. A place expressed with English *in* can take either *de* or *ni* in Japanese, depending on what the sentence says happens or holds there. The authors investigate whether a rule-based generator can learn to make these choices from examples. They use decision trees, which reach a prediction by testing features of a sentence’s grammatical and semantic structure. The tree supplies the disputed word, and the existing grammar builds the sentence around it. This puts a narrow [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/) component inside a [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/) system.

The authors train separate trees on the Encarta encyclopedia and on technical material in each language. They compare the trees with hand-written rules on fresh sentences from both sources. In Spanish, the basic trees outperform the hand-written rule on both blind sets, whichever source they were trained on. Giving the trees access to the base form of the copula’s complement especially helps the tree trained on technical manuals. It reaches 96.94% accuracy on blind sentences from the manuals and 95.10% on blind Encarta sentences. The authors also test this tree in English-to-Spanish translation. Among the outputs where the tree and the translation system’s existing word choice differed, reviewers preferred the tree’s copula in 116 cases and the existing choice in 22.

The Japanese results depend more strongly on where the examples come from. The Encarta tree reaches 70.90% on blind Encarta sentences, and the technical tree reaches 78.50% on blind technical sentences. Each modestly improves on the hand-written rule in its own domain, while the rule does better than either tree when that tree is tested outside its training domain. The experiments show that a generator can learn some of the context needed for these choices from sentences already written in the target language. The Spanish translation test shows that such a tree can also make useful decisions on structures produced during translation. The Japanese comparison shows why that usefulness has to be checked on the kind of text the generator will handle.

## Deep dive: Combining Machine Learning and Rule-based Approaches in Spanish and Japanese Sentence Realization

Decision trees help a rule-based translator choose Spanish copulas and Japanese location markers, with gains that depend on the training text. · about 30 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### A word choice can survive into generation

Sentence realization is the part of [text generation](https://md.research.elamur.ai/free/en/topics/text-generation/) that turns a structured representation into a sentence a person can read. In the authors’ translation system, analysis first represents what the source sentence says. Transfer maps that representation into one suited to the target language. The target-language generator then produces the words in their final order and form. These stages divide up the work, but some choices made during transfer still need attention during realization. For the Spanish and Japanese constructions in the paper, the generator can have enough information to reconsider an earlier choice.

MSR-MT represents its sentences as logical forms. A logical form identifies predicates and their arguments and attaches linguistic information to them. A predicate expresses something like an action, condition or relation. The arguments identify the participants or other elements associated with it. Information about a location, for example, can be attached to the part of the structure that expresses where a situation holds. Analyzing a source sentence yields a logical form in the source language. Transfer produces a logical form for the target language, and hand-written generation rules turn that structure into a surface string. The logical form is the interface at which the experiments bring grammatical information and [meaning representation](https://md.research.elamur.ai/free/en/topics/semantic-parsing/) together.

The system already combines methods at different stages. Its analysis and generation components use hand-written linguistic rules. Transfer relies on examples. The authors describe MindNet, the automatically constructed resource used for transfer, as coming from alignments between the logical forms of bilingual texts. Earlier work on the same architecture had described the generation component and its responsibility for the fluency and grammaticality of the final sentence. In that account, generation could already revise some choices supplied by transfer. The present experiments give it another way to decide when a particular choice needs revision.

The paper also situates the experiments alongside contemporary work on learning specific linguistic operations. It cites work that treated operations in German sentence realization as classification problems and work that used the same learning toolkit to build a generation component. Its question about training material follows earlier research on how the choice of corpus affects statistical generation. Those connections explain the scope of the study. The authors keep the existing grammar and test learning at particular points where a generator has a well-defined choice. They train on encyclopedia articles and technical material to see whether the context learned for one kind of writing carries over to the other.

#### Why Spanish needs more than a translation for *be*

A copula connects a subject to an identity, description, state or related expression. Spanish has *ser* and *estar*, both of which can correspond to English *be*. The paper introduces *ser* through uses involving identity or an inherent property and *estar* through uses involving a condition or a location. It then distinguishes constructions for which different kinds of evidence matter. The broad meaning of each verb helps explain the choice, but a generator needs concrete features in the sentence representation to apply the distinction.

Some constructions supply a strong grammatical cue. In the authors’ account of the main-verb uses, a noun phrase identifying or classifying a subject calls for *ser*. The construction with a main copula and a past participle that the authors classify as a stative passive calls for *estar*. A system can frequently recognize these environments from the category or form of the complement. The relevant information includes [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/), such as whether a form is a past participle.

Place expressions illustrate why the same kind of complement can also create a harder problem. The paper contrasts the venue of a party with the whereabouts of a person or a book. Spanish can use *ser* to say where the party takes place, while *estar* locates the person or book. Looking only for a phrase that denotes a place would give the generator similar evidence in both cases. The type of subject and the relation of the place expression to it help distinguish where an event takes place from where an entity is situated. The choice therefore draws on [lexical semantics](https://md.research.elamur.ai/free/en/concepts/lexical-semantics/) as well as the grammatical structure.

Adjectival descriptions are particularly demanding. The authors explain the difference in terms of how a property is presented. A description can characterize its subject or report the condition that happens to hold. The paper uses cold snow to illustrate that the same adjective can take either copula if the intended interpretation changes. Other adjectives are more restrictive. The terms meaning *available* and *eternal* are given as examples that favor *estar* and *ser*, respectively, in the account the authors use. A color word can also appear with *estar* in an appropriate context. A traffic light offers such a context because its color can change.

These examples make it possible to see what a rule writer would have to account for. The grammar can look at the category of a complement, the identity of an adjective, properties of a subject and the interpretation of the description. The evidence has different force in different constructions. Knowing the adjective can be decisive for an adjective with a fixed preference. With an adjective that allows either copula, a fuller description of the subject and the intended situation becomes important. The authors take advantage of the fact that this complicated context leads to a discrete output that can be learned as a classification task.

#### Why Japanese needs more than a place label

The Japanese task concerns a postposition, a grammatical marker that follows the expression it marks. Both *de* and *ni* can mark a location noun in the constructions studied. The authors relate the choice to the kind of situation the sentence describes. The place where an activity happens takes *de* in their examples, while the place where a state holds takes *ni*. The difference is visible when the location expression stays the same. In the paper’s pair of examples, someone lives in a place in one sentence and eats there in the other. The location gets *ni* with living and *de* with eating.

Analysis of an original Japanese sentence gives the generator a structure that identifies the location noun and carries the marker already used in the sentence. A transferred structure can identify the right noun as a location and still give it the wrong marker. The authors illustrate this with a sentence about someone eating lunch in a room. Transfer supplies *ni* for the room, even though the Japanese construction for the place where the eating occurs calls for *de*. The generation component needs a way to choose the marker from the context it receives.

The nature of the predicate is informative, but a verb’s identity can leave the choice open. The paper pairs an example about a robot exhibition in Tokyo with another about French restaurants in Tokyo. Both use *aru*, a verb of existence, and both name the same city. The exhibition is an event, so the city marks the site of its occurrence with *de*. The restaurants are entities whose presence is asserted, so the city takes *ni*. In this contrast, the subject supplies a distinction that the verb and location by themselves leave unresolved.

The authors describe the dictionary’s information about verbs and nouns as too limited to support a detailed rule for all these cases. To do the job by hand, a linguist would need to account for the kinds of complements verbs take, the kinds of situations they can describe and the ways that other sentence elements affect the interpretation. A learned decision can draw on information the system already represents and combine it in ways suggested by actual sentences. The same argument motivates the Spanish experiment, although the grammatical evidence and the strength of the eventual gains differ.

### The method, step by step

#### From sentences to labeled decisions

The starting material is text already written in the language the generator will produce. A Spanish sentence containing a relevant copula shows which verb the writer used. A Japanese sentence with a marked location shows which postposition occurs there. The existing analyzer derives a logical form from the sentence. From that structure the authors can take a label for the observed choice and collect features of the context that might predict it. This gives the learner examples of decisions without requiring a person to mark each sentence independently.

A decision tree makes a prediction by following a path through tests. One test might check whether the complement has the form of a past participle. Another might inspect the category of an argument or the identity of a word associated with the choice. Each answer determines which branch to follow. The tests encountered on a path can express an interaction between pieces of evidence. A tree can, for instance, use a property of a subject in the branch where the predicate or complement makes that property relevant. Branching nodes are the points at which the tree poses these tests.

The authors use WinMine to construct the trees. For each language, they build separate trees from Encarta and from technical material, so evidence from one source does not enter the tree trained on the other. WinMine makes a 70/30 split of each development corpus. The training portion supplies examples for fitting trees, and the 30% portion is used to choose among candidates. The toolkit varies its prior preference for simpler tree structures, yielding candidates of different complexity. The authors select a tree and evaluate it again on separate blind sentences. The performance observed during tree selection and the performance on that later test answer different questions.

Training and using a tree for sentence realization The steps in order.

At generation time, the decision is made on the structure at the position where the word has to be supplied. For Spanish, the paper describes the call explicitly. A grammar rule gives the prediction function the chosen tree, the target feature for *estar* and the logical-form node for the copula. The returned value tells the rule which verb to use. The grammar still handles realization of the resulting structure. In the Japanese blind evaluation, the authors likewise use the tree’s location-marker choice during regeneration, then inspect the resulting marker against the original sentence.

#### Representing the Spanish choice

The Spanish Encarta development corpus contains 131K sentences, and the corpus from technical and computer manuals contains 55K sentences. Every sentence selected for this part of the study contains *ser* or *estar*. The learner predicts a Boolean feature, meaning that it returns a yes-or-no answer. Here the question is whether the copula is *estar*. A positive answer yields *estar*, and a negative answer yields *ser*. This setup names the less frequent alternative explicitly and makes the majority behavior straightforward to measure.

The authors obtain 290 candidate variables from the logical forms of the sentences or the relevant clauses. Each variable combines a structural position with information that can be read from that position. A feature on the logical subject can tell the learner about the entity being described. A feature on the logical object can tell it about the complement. Assigning the same property to different positions gives the tree distinct evidence. An animate subject and an animate complement need not play the same role in deciding which copula belongs in a clause.

The paper illustrates the notation with these feature names.

```
Anim(Tsub)
```

`Anim` is the animacy feature. `Tsub` identifies the logical subject, and the parentheses indicate the position at which the feature is checked. The variable records whether the subject carries the animacy feature.

```
Time(Tobj)
```

`Time` is the feature for time, and `Tobj` identifies the logical object. The parentheses again give the position the feature applies to. This variable records whether time information is present there.

Most variables use 1 for presence and 0 for absence. The authors retain the actual value of certain features, including the syntactic category of the logical object and the base form of a preposition in a prepositional complement. This lets the tree distinguish particular categories or particular prepositions. A word’s base or citation form is its [lemma](https://md.research.elamur.ai/free/en/concepts/lemma/). Using a lemma lets the system refer to the same lexical item across different forms in which it may appear.

The design divides the work of defining the features between the linguists and the learner. The authors choose the logical-form positions to inspect. Within those positions, they make features available for automatic selection and let WinMine determine which ones to use. In each basic Spanish tree, the algorithm retains 55 of the 290 candidate variables as predictors. This count refers to distinct variables selected for prediction. The number of places at which the tree branches measures something different, since a predictor can be useful in more than one part of the tree.

The strongest predictors have much in common across the Spanish trees. They include the relation between the copula and its argument, the presence of a past participle, and properties of the subject such as animacy or whether it is a proper name. The trees also look at the argument’s lexical features, including properties related to color or location, and at modifiers expressing such information as manner or time. Count and mass distinctions appear among the useful lexical features. The identity of the preposition attached to a complement can also matter. These cues let the tree distinguish contexts that the surface fact of an English *be* would leave together.

The authors identify some choices of predictor that they found less obvious. The Encarta tree uses features for such items as intensifiers, classifiers or operators on an argument. Coordination can also enter the decision, at the main node or within an argument. Their appearance shows which pieces of information the fitted trees used in the available corpus. The paper’s interpretation of these features is based on examining the predictors and the errors. It does not assign a measured share of predictive performance to a particular unexpected feature.

The authors subsequently enrich the Spanish input with the lemma of the copula’s argument. The basic trees already have access to the identity of a preposition in the relevant environment. The added feature gives them lexical information about the attribute itself, especially the adjective in the construction that motivated the experiment. Now the classifier can distinguish adjectives with different preferences even where they share the same broad syntactic category and some of the same semantic features. The authors train an enriched version for each text source, so the effect of the change can be examined within each corpus.

This enrichment also changes where lexical knowledge resides. The authors envisage the tree discovering groupings of lemmas from their distribution in training examples. A tree can use those groupings when deciding which copula to predict. The grouping is learned for the decision at hand, while the dictionary continues to supply the lexical information it already encodes. The addition is particularly relevant because broad grammatical information can readily separate several of the paper’s constructions, while adjectives within a single construction can behave differently with respect to the copula.

#### Representing the Japanese choice

The Japanese Encarta tree is trained using a development corpus of 76.7K sentences. The corresponding collection from technical and computer documents contains 27.4K sentences. The prediction concerns the marker for a designated location noun. To find useful evidence, the authors inspect the location noun, the predicate that governs it and that predicate’s subject. Each of these positions can contribute a different kind of information about how the location relates to the situation described.

The identity of the governing predicate is available as a lemma. The tree also sees its subcategorization features, which describe the kinds of arguments the predicate takes. Distinctions relevant to the experiment include intransitive, transitive and ditransitive uses. Voice is another source of information, including whether the predicate is passive. The design gives the learner access to lexical identity and to broader grammatical properties that can be shared by several verbs. That distinction matters when different verbs occur in different kinds of writing.

The Encarta tree retains 69 variables and rejects 160. Among the retained information are the predicate’s lemma and subcategorization, its voice and features of its modifiers. The tree also draws on modifiers of the location noun, such as a possessor or an appositive, and on lexical-semantic properties of the subject. This makes it possible for the learner to use cues outside the verb itself. The paper’s paired examples with *aru* explain why such information is relevant. The class of thing whose existence is asserted can help determine how its location is understood.

The Japanese technical tree selects 30 variables and rejects 138. Its choices are concentrated especially on the governing verb’s identity and subcategorization. The paper reports the two selection outcomes from their respective corpora. They describe the fitted trees and the candidate variables those trees encountered. The difference in selected counts on its own cannot distinguish an effect of the kinds of sentences, the availability of features, the size of the corpus or the distribution of the target choice.

#### Keeping the evaluation separate from training

The generation tests use the author’s original word choice as evidence about what the system should produce. For Spanish, the authors first analyze the blind sentences and regenerate them with the original copula intact. The outputs form a reference file. They then remove the copula from the structure and regenerate the sentence with the choice supplied by the decision tree or the hand-written rule. A changed output counts as a regression in this comparison. Because the reference has passed through the same analyzer and generator, the test focuses on the effect of recalculating the copula within that pipeline.

The Japanese blind comparison also runs through regeneration. The authors compare the result with the original sentence for the assignment of *de* or *ni* to the location noun. They repeat the procedure with their hand-written rule. In both languages, the native-language analysis provides a structure from which the correct target-language word can be removed or reassigned for testing. The Spanish translation experiment later supplies a different kind of input. Its test structures have gone through transfer from English, so the context available to the classifier comes from the translation system rather than the analysis of the desired target sentence.

The paper uses accuracy for the proportion of correct predictions or regenerated sentences in the stated evaluation. It also reports precision and recall for the individual choices on the development holdouts. Precision asks how often a prediction of a given choice is correct. Recall asks how frequently the classifier recovers that choice among examples where it actually occurs. These measures expose different errors. A system can be conservative about predicting a less frequent word, so that the predictions it makes are usually right, while still leaving many occurrences of that word unrecovered.

The paper summarizes those measures with their harmonic mean, the F-measure.

```
F = 2 × P × R / (P + R)
```

`F` is the F-measure for the choice being evaluated, `P` is its precision and `R` is its recall. The constant `2` is the multiplier in the harmonic mean. `×` denotes multiplication, `/` denotes division and `+` adds precision and recall in the denominator. The parentheses group that denominator, and `=` identifies the value yielded by the expression. With precision and recall given as percentages, the resulting F-measure is also a percentage. It reflects weakness in either measure, which is useful where the choices are unevenly represented.

### Experiments and results

#### Spanish on the development holdouts

For each Spanish source, the paper compares the basic tree with a majority baseline that always chooses *ser*. On the 30% development holdout from Encarta, that baseline gives 82.85% accuracy, and the Encarta tree gives 95.10%. On the corresponding holdout from the technical manuals, the majority baseline gives 68.21%, and the technical tree gives 90.36%. The choice distribution matters when reading these results. An unconditional preference for *ser* is more successful on Encarta, so the overall scores of the two trees reflect different starting conditions.

The class-level scores show where the advantage for *ser* remains. On the Encarta development holdout, *ser* has precision of 95.78%, recall of 98.43% and F-measure of 97.09%. The results for *estar* are 91.23% precision, 79.07% recall and 84.71% F-measure. The tree is often right when it chooses *estar*. Its lower recall for that verb shows that recovering all the places where it belongs is a separate difficulty.

The technical development holdout shows a similar contrast. The scores for *ser* are 89.82% precision, 96.84% recall and 93.20% F-measure. For *estar*, they are 91.86% precision, 76.45% recall and 83.45% F-measure. On that holdout, a prediction of *estar* is more precise than a prediction of *ser*, while recall still strongly favors *ser*. The accuracy of the classifier can therefore rise well above the majority baseline even while recovery of one choice is substantially less complete.

These measurements belong to the holdouts used in choosing the trees. They characterize the selected trees and give a view of the errors for each verb. For a separate check of performance, including what happens when a tree encounters another domain, the authors use blind sets with a regeneration procedure. The reference for that procedure is the original choice as carried into the regenerated sentence.

#### Spanish on blind sentences from both sources

The authors use 10K blind Encarta sentences and 10K blind sentences from technical manuals. They compare the tree trained in each domain against the same hand-coded rule. The rule takes some of its cues from inspecting the learned trees. It is a practical comparison with a compact linguistic rule informed by the behavior of the classifier. Its performance measures the rule the authors implemented, and the paper gives the error analysis needed to see some of the consequences of keeping that rule simple.

On blind Encarta sentences, the basic Encarta tree has 447/10k reported errors and 95.53% accuracy. The basic technical tree has 753/10k errors and 92.47% accuracy on the same set. The hand-coded rule has 959/10k errors and 90.41% accuracy. Both learned classifiers improve on the rule there, and the tree trained specifically on encyclopedia text gives the best score. The technical tree’s accuracy on Encarta is also higher than its accuracy on the technical blind set.

On blind sentences from the technical manuals, the basic Encarta tree gets 89.78% accuracy, with 1022/10k errors, and the basic technical tree gets 90.34%, with 966/10k errors. The hand-coded rule reaches 86.17%, with 1383/10k errors. This time the technical tree does best among the basic systems. Each basic tree therefore does best relative to the other basic tree on its own type of text. In absolute accuracy, all three systems score higher on the Encarta test than on the manuals. The authors suggest that the higher prevalence of *ser* in the encyclopedia material may help explain that pattern, and leave the reason open.

The enriched technical tree is evaluated on these same blind sets. On technical sentences it produces 306 reported errors and 96.94% accuracy. On Encarta sentences it produces 490 errors and 95.10% accuracy. The score on the manuals is the strongest Spanish blind result for that set. The Encarta score is close to the basic Encarta tree’s result and above the basic technical tree’s score on encyclopedia text. That gives the enriched technical tree support both on the source it was trained on and on the other source tested.

Spanish copula accuracy on the blind technical manuals The technical tree with complement lemmas leads the comparison.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Hand-coded rule | 86.17 |
| Basic Encarta tree | 89.78 |
| Basic technical tree | 90.34 |
| Technical tree with complement lemmas (this paper) | 96.94 |

The blind figures summarize changes at the sentence level. In Spanish, a sentence can contain several copulas, and several errors within such a sentence can give rise to one counted regression. The reported error counts therefore describe the evaluated sentences more directly than they describe the number of wrong individual copula tokens. That distinction matters if the results are compared with the class-level measures from development, where the statistical choice itself is the object of the precision and recall calculations.

#### Spanish in English-to-Spanish translation

To evaluate the learned choice on transferred structures, the authors process about 9K English sentences from computer manuals. In the first pass, the Spanish generator keeps the copula supplied by transfer. In the second, a generation rule removes that choice and calls the enriched Spanish tree trained on technical manuals. The two passes give the authors output pairs that can be compared. A pair enters the manual review when the copula selected by the tree differs from the one selected by transfer.

There are 154 disagreements. The authors find 116 cases in which the tree gives the better choice and 22 in which transfer gives the better choice. In 16 cases, the translation is too ill-formed for reviewers to decide the copula question. The adjudication counts show a clear preference for the tree within the cases where the alternative choice changes the output. They also show that the transferred structure can be good enough to support a classifier learned from monolingual Spanish even when transfer has supplied the less suitable verb.

The comparison is narrower than the size of the English batch might suggest. Outputs on which transfer and the tree agree do not enter the manual review. That leaves shared successes and shared errors outside the result. The reported counts measure the direction of the changes produced by the new component among its disagreements with transfer. The experiment establishes that the classifier can be integrated and can help in that setting. Its design gives no overall accuracy for either way of choosing the copula across the translation batch.

#### Japanese on the development holdouts

For Japanese, the Encarta tree gives 79.10% overall accuracy on its development holdout, against the paper’s baseline of 62.27%. The technical tree gives 90.44% on the corresponding technical holdout, against a baseline of 79.40%. The ranking of those raw accuracies goes in the opposite direction from Spanish. The technical Japanese result also has the higher reported baseline, so its higher accuracy should be read in the context of the easier starting point for this comparison.

On the Japanese Encarta holdout, precision for *de* is 75.08%, recall is 66.78% and F-measure is 70.69%. For *ni*, precision is 81.13%, recall is 86.57% and F-measure is 83.76%. On the technical holdout, *de* has 77.93% precision, 74.79% recall and 76.33% F-measure. The scores for *ni* are 93.53% precision, 94.50% recall and 94.01% F-measure. All three per-marker measures favor *ni* on each source’s holdout. The breakdown makes the difficulty of the *de* choice visible inside the overall accuracy.

The Japanese development scores summarize the trees selected for each corpus. The stronger technical holdout score gives evidence about that particular development set. It leaves open how much of the learned context will apply to another sample, even from the same source, and how much will apply across sources. The blind comparisons address these questions by testing the same learned decision on separate material and by retaining a hand-written rule as a common point of comparison.

#### Japanese on blind sentences from both sources

The Japanese blind sets each contain 1K sentences, with one set from Encarta and one from technical documents. The hand-written rule consults the dictionary’s classification of the predicate. It assigns *ni* with directional motion verbs, verbs that require a location argument and verbs of existence. The examples given include the verbs for going, putting and existing. In other cases, the rule assigns *de*. This procedure captures a broad distinction using properties of the governing verb that the dictionary already supplies.

On the Encarta blind set, the matching tree produces 291 errors and 70.90% accuracy. The rule produces 305 errors and 69.50% accuracy. The technical tree, used on that same set, produces 421 errors and 57.90% accuracy. The advantage of learning is modest for the matching tree, and switching to a tree trained on a different kind of text puts the result below the rule.

On the technical blind set, the matching tree produces 215 errors and 78.50% accuracy. The rule produces 240 errors and 76.00% accuracy. The Encarta tree produces 440 errors and 56.00% accuracy. This reproduces the ordering from the Encarta test once the roles of the two trees have been switched. The tree trained in the same domain leads, the hand-written rule follows, and the tree trained in the other domain finishes below it.

Japanese location-marker accuracy on the blind Encarta set The Encarta tree narrowly leads the rule, and the technical tree trails both.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Technical tree | 57.90 |
| Hand-coded rule | 69.50 |
| Encarta tree (this paper) | 70.90 |

Japanese location-marker accuracy on the blind technical set The technical tree leads the rule, and the Encarta tree has the lowest accuracy.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Encarta tree | 56.00 |
| Hand-coded rule | 76.00 |
| Technical tree (this paper) | 78.50 |

The paper attributes the Japanese domain sensitivity to differences in the predicates found in the two sources. That explanation is consistent with the role of the verb’s lemma and subcategorization among the selected features. A tree that uses verb-specific information can benefit from seeing the kinds of predicates found in its test set. The rule, which makes decisions using broader lexical classes, maintains a more stable position relative to the learned systems across these tests. In both domains, it is a stronger choice than importing the tree learned on the other source.

### What the ablations show

#### What changes when the Spanish tree sees the attribute

The paper’s direct feature comparison concerns the lemma of the Spanish copula’s complement. The authors train basic and enriched versions on each source. They keep Encarta as the source for its pair and technical text as the source for the other pair. This makes it possible to ask how the choice of input representation affects a tree within a domain. The comparison also shows whether adding the same kind of lexical information has similar effects on different text.

On the Encarta development holdout, overall accuracy is 95.10% for the basic tree and 95.40% for the enriched tree. On the technical development holdout, the basic tree gives 90.36% and the enriched tree gives 97.04%. In the technical comparison, the enriched tree has 72 branching nodes, while the basic tree has 117. A new input feature could have produced a tree with more tests. Here the fitted technical tree becomes smaller as its accuracy increases, consistent with the lemma giving the tree a more direct cue for some choices.

The change is motivated by the errors on adjectival constructions. The authors find that the basic trees and the rule commonly fall back on *ser* there. When the identity of the attribute is available, a tree has evidence that can separate adjectives with different copula preferences even if other features make their contexts look alike. The development comparison supports giving the technical tree that evidence. The blind results show that its advantage also appears on separate technical sentences, and that the enriched tree retains high accuracy on the Encarta blind set.

The reported outcomes for the enriched trees are aggregate accuracies. They show the value of having the lemma available to the technical classifier, while the reason for adding it comes from the analysis of adjectival constructions. How frequently the tree corrects the specific adjective cases that prompted the change remains open. The paper also gives no separate blind result for the enriched Encarta tree. The strongest evidence about the feature comes from the matched development comparisons and the follow-up blind testing of the enriched technical tree.

#### What changes with the domain or the decision rule

The cross-domain tests vary the source of the training examples while holding the blind set fixed. In Spanish, each basic tree leads the other basic tree on the test set that matches its training source, and both basic trees stay ahead of the hand-coded rule on each test. In Japanese, the relative ordering changes more sharply. A tree provides a gain over the rule on matching text, while an imported tree is beaten by the same rule on that same test set. Thus the Japanese result depends on training source even when the grammatical operation and the definition of a correct answer are held fixed.

The hand-written comparisons also expose differences in how the rules use linguistic evidence. The Spanish rule abbreviates patterns the authors observed in trees with many branch conditions. In the error review, the rule is somewhat more inclined to choose *estar* than the trees. In adjectival constructions, the rule and basic trees share a strong tendency to choose *ser*. These observations concern different slices of behavior. A rule can be more inclined than a tree to use *estar* across its full set of decisions and still make frequent *ser* defaults within a particular construction.

The Japanese rule uses the verb classes available in the dictionary, whereas the tree can combine a verb’s identity, its class and evidence from other positions in the logical form. The tree’s in-domain advantage shows that learning from the available context can improve on this particular rule. Its performance across domains gives a reason to examine which of its cues remain informative after the text source changes. The paper reports selected predictors and discusses the likely importance of the verb distribution. It leaves the separate contributions of predicate identity, subject information, modifier features and other cues unmeasured.

The Spanish translation test varies the source of a decision inside the same translation pipeline. The original pass uses transfer’s copula choice. The experimental pass uses the learned choice during realization. Reviewing disagreements isolates cases in which the replacement has an observable effect and lets reviewers judge its direction. It answers a different question from the lemma comparison. The lemma comparison tests a change to the tree’s input, while the translation comparison tests a different decision procedure at the point where the system supplies the Spanish copula.

### Limitations

#### Limits identified by the authors

The authors recognize that their monolingual regeneration tests create a favorable setting for inspecting a local choice. A native Spanish or Japanese sentence is analyzed before the desired word is predicted. The resulting structure comes from the sentence whose original choice provides the answer. This arrangement is what makes systematic automatic evaluation possible. In translation, a structure can carry the effects of source analysis and transfer, and those effects can change the evidence available at realization. The Spanish experiment addresses that distinction through an additional test using transferred structures.

The authors also acknowledge noise in the Spanish development data. The selection procedure allows sentences where *ser* or *estar* is an auxiliary, even though the linguistic discussion concentrates on main-verb uses. They describe these auxiliary cases as relatively infrequent. The inclusion matters for interpretation because the corpus filter identifies the verb form broadly, while the motivating categories concern particular grammatical uses. A classifier fitted under that filter learns from the mixture it encounters.

For Spanish blind evaluation, the authors point out that the regression counter registers one changed sentence even when several copula decisions are wrong within it. They consider the size of the blind set sufficient to accommodate the resulting noise. The measurement is consequently strongest as a count of affected sentences. It gives a less detailed picture of errors in clauses or individual copula decisions when more than one such decision is made in a sentence.

In the Spanish translation review, the authors explicitly preserve a category for cases where the surrounding output is too ill-formed to judge the copula. A reviewer needs to be able to make sense of the construction before deciding which verb better expresses it. The presence of unjudgeable cases shows a practical boundary of local repair. The learned choice can improve what the generator does with a usable structure, while some failures elsewhere in the system leave the local question undecidable from the output.

The authors also qualify their explanation for the domain effects. The higher Spanish scores on Encarta could reflect the stronger prevalence of *ser*, an explanation they offer without identifying a definitive cause. For Japanese they point to the different kinds of predicates in the corpora. That account fits the learners’ use of predicate features and the observed cross-domain losses. The paper treats the usefulness of the distinguishing features as dependent on the type of text from which they were learned.

#### Limits visible in the design

The evaluation measures recovery of an observed word in a specific context. In the Spanish blind test, success is tied to the original copula carried through the reference regeneration. In the Japanese test, success is tied to the original location marker. This is well suited to tracking whether the classifier preserves the writer’s choice, but it does not establish that a different word would make every counted sentence unacceptable. The Spanish examples themselves show that some adjectives admit both verbs with a change of interpretation. A test against one observed wording cannot by itself judge how much of the original interpretation a changed sentence preserves.

The roles of training size and training material are intertwined. Encarta and technical collections differ in size as well as subject matter and word use. The majority baselines and development scores also reveal differences in the target distributions. Testing both trees on the same blind set demonstrates whether one transfers better to that set. A comparison of that kind alone cannot identify which characteristic of the training data produced the difference. The paper gives evidence for domain sensitivity and plausible linguistic explanations, without a controlled separation of these factors.

The same caution applies to the contrast between languages. The Japanese and Spanish tests target different grammatical operations, with different feature inventories, sample sizes and hand-written rules. Spanish copula selection can rely on highly constraining evidence in some constructions. Japanese location marking frequently draws on the kinds of predicates and subjects that happen to be frequent in a corpus. The experiments establish that the language-specific implementations behave differently across these sources. They give no general ranking of how portable learned rules are across Spanish and Japanese sentence realization.

The rule comparisons use particular implementations. For Spanish, the rule reflects some patterns the authors saw in their classifier and simplifies the contexts where those patterns apply. For Japanese, it consults selected lexical classes in the dictionary. Those choices provide meaningful alternatives inside the system studied. The results establish how the trees compare with these rules under the stated conditions. They leave open what a more detailed hand-written rule, a richer dictionary or a training corpus reflecting a different mix of text would yield.

The precision and recall results characterize verbs or markers on development holdouts. The paper reports blind accuracy and error counts without the same breakdown for every word and construction. That limits claims about how the learners improve accuracy. For example, the aggregate gain from adding Spanish attribute lemmas is clear for the technical tree. The results leave room for that gain to be unevenly distributed among adjectives and constructions. In Japanese, the development measures show that *de* is harder than *ni* by the reported class-level measures. The blind cross-domain scores do not establish how much each marker contributes to the deterioration.

The Spanish translation result covers a particular application setting, English input from computer manuals and a classifier trained on Spanish technical text. Manual review of disagreements shows that the added decision often improves the choice when it changes it. An estimate of accuracy over all copulas in the translation batch would require judgments on agreements as well. Broader translation quality would also require evaluating other aspects of the outputs. The paper’s translation evidence concerns the copula decision at the interface between transfer and generation.

Japanese has no corresponding translation-output comparison in the paper. Transferred structures motivate the task and illustrate an error the generator needs to handle. Its quantitative Japanese findings come from blind sentences originally written in Japanese. They establish how the procedure performs when recovering locative markers from those analyzed sentences. Its behavior on the output of transfer therefore remains open for Japanese, especially given the sensitivity already visible when the source of the monolingual text changes.

### What came after

The paper gives no account of subsequent studies that adopted or extended its experiments, so a line of later work cannot be established from its findings. The authors close by describing several possible roles for the learned information. They demonstrate a direct role in Spanish, where a grammar rule calls the tree during translation. They also discuss inspecting learned decisions to inform a better hand-written rule or to identify lexical information worth encoding in the dictionary.

The open questions differ across the two experiments. In Spanish, the application test shows that knowledge learned from original Spanish can help choose a copula on a structure transferred from English. It leaves the overall accuracy of that choice across translated output unresolved. In Japanese, the strong cross-domain effect leaves a prior question about which predicate and context features generalize across kinds of text, alongside the untested question of performance on transferred structures. Those are extensions suggested by the experiments themselves. The results reported here concern the two local decisions and the generation system in which the authors tested them.

## Cite

Cite as Maite Melero, Takako Aikawa and Lee Schwartz. 2002. Combining Machine Learning and Rule-based Approaches in Spanish and Japanese Sentence Realization. Proceedings of the International Natural Language Generation Conference.

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

```bibtex
@inproceedings{melero2002combining,
  title = {{Combining Machine Learning and Rule-based Approaches in Spanish and Japanese Sentence Realization}},
  author = {Maite Melero, Takako Aikawa and Lee Schwartz},
  booktitle = {Proceedings of the International Natural Language Generation Conference},
  year = {2002},
  url = {https://aclanthology.org/W02-2104/}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
