Exploring Difficulties in Parsing Imperatives and Questions
Paper · 2011 · Tadayoshi Hara, Takuya Matsuzaki, Yusuke Miyao et al.
Summary
A parser can recognize every word in a sentence and still misunderstand how the words fit together. A command can begin with its main verb and leave the subject unspoken. A question can put an auxiliary before the subject or bring a question word to the front. These patterns matter because a parser learns from the sentences it sees during training. The authors use parsing experiments to ask what happens when systems trained on Wall Street Journal text encounter constructions that are common in literary writing and dialogue.
The authors extract commands and questions from the Brown portion of the Penn Treebank, a collection of sentences with annotated grammatical structure. They also evaluate questions from QuestionBank, a collection drawn from queries. Their tests cover a part-of-speech tagger, which assigns grammatical categories to words, as well as the MST and Malt dependency parsers and the Enju parser. The dependency parsers identify which words govern others and label their relationships. Enju also identifies relationships between predicates and their arguments. The study adapts these systems using annotated material from the target collection and varies whether a parser receives predicted or reference word tags.
Adaptation improves performance, with particularly large gains when the training and test questions both come from QuestionBank. Malt’s labeled attachment accuracy on that test set rises from 58.75 with newspaper-trained tagging and parsing to 92.55 with both components adapted to QuestionBank. For Brown questions, the corresponding Malt scores are 71.12 and 80.03. Correct word tags help, but comparisons that supply those tags to both the original and adapted parsers still expose substantial differences. In Brown commands, for example, adapting Malt cuts the number of missed sentence-head dependencies from 33 to 9 in the error analysis of 100 sentences, even with reference tags supplied in both conditions.
The remaining errors show why recognizing sentence structure matters. A tagger may read a command’s opening verb as a noun. A parser may promote the name of the person being addressed to sentence head, or mistake the verb in an introductory phrase for the verb that carries the command. The question collections also give different results when training is switched between them. Adaptation to Brown gives modest gains on QuestionBank, while adaptation to QuestionBank hurts parsing on Brown questions. The authors relate that asymmetry to the wider mix of question forms in Brown, including yes-or-no questions, and identify annotation differences as another obstacle to transfer.
Deep dive: Exploring Difficulties in Parsing Imperatives and Questions
This study traces why parsers trained on newspaper text struggle with commands and questions, and which errors survive retraining. · about 32 minutes to read
The problem and its context
When the familiar words are in unfamiliar places
A parser trained on newspaper text learns more than a vocabulary. Its training sentences also teach it where particular grammatical roles tend to appear and which combinations of roles tend to go together. A word near the beginning of a sentence may be a good candidate for a noun in one collection. In a collection of commands, the same position may frequently hold the governing verb. The change is consequential even when the word itself was present in the training corpus.
Consider what the system must establish in an imperative, the grammatical construction used for commands in this study. It needs to find the verb that states the requested action and determine which words depend on it. An explicit subject can be absent, so the parser has to make sense of a verb phrase where experience with statements might lead it to expect a noun phrase followed by a verb. The tagger faces a related decision. A verb in base form can resemble a present-tense verb in writing, and an ambiguous word at the start of the sentence can admit a noun reading. Both decisions depend on what the system takes the entire sentence to be doing grammatically.
Questions redistribute the evidence in a different way. A yes-or-no question can begin with the auxiliary, putting it before the subject. A question that asks for a person, thing, reason or other missing detail can start with a question word or phrase. The opening of the sentence then gives information about the kind of question, while the role of the opening expression may depend on words farther along. A strategy that works for a statement can therefore make the wrong assumptions about both the position and the grammatical function of familiar words.
Literary dialogue gives these constructions room to vary. A command may have a name at the end because the speaker is addressing someone. A question can be quoted, with punctuation that reflects the surrounding text. A sentence can give a purpose or set a condition before it reaches the command or question. When such material appears together, recognizing a locally plausible phrase is only part of the job. The parser also has to identify which phrase contains the sentence’s main clause and how the other material relates to it.
This is the distinction motivating the paper. A shift of domain can change the words and expressions a parser encounters. It can also change how frequently it encounters particular grammatical configurations. The first kind of change makes it harder to recognize lexical items or their uses. The second changes how the same items combine. The two can occur together in real text, which makes the source of a drop in accuracy hard to diagnose from a single score.
Domain adaptation before this study
The paper describes a substantial line of work on domain adaptation, the effort to make a system trained on one kind of text work better on another. The studies under review typically use the Penn Treebank’s Wall Street Journal section as their training source. Examples of target text include biomedical research papers and broadcast news. Moving to such collections raises questions about unfamiliar words, characteristic expressions and changes in the relative frequency of analyses that a parser already knows how to produce.
Some earlier approaches used unannotated target material or combined it with annotated material. The paper includes Structural Correspondence Learning, reranking and self-training for parser adaptation and automatic domain adaptation for parsing in its account of this research. It also describes supervised approaches, which have access to target sentences whose correct analyses are already recorded. Across that literature, the authors see an emphasis on making the parser’s vocabulary and learned preferences suit the target genre.
The authors ask how far that approach can take a parser when the target changes the constructions it sees. If a decision depends on estimating that a familiar attachment is more frequent in the target genre, additional evidence from that genre may be sufficient. A decision can also depend on recognizing a structural cue that the system’s features represent weakly, such as the relationship between an introductory phrase and a later clause. In that case, supervised examples still provide evidence, but the system must have a way to use the evidence where the cue occurs. This motivates examining the actual mistakes after adaptation as well as recording the overall change in accuracy.
The broader Brown Corpus provides a reason to investigate this distinction. The paper describes Brown as a difficult target compared with Wall Street Journal text even in settings with substantial target training data. A corpus-wide result can establish that a transfer is difficult. Looking at named constructions within the corpus gives the authors a way to locate some of the difficulty in decisions about word category, attachment and the sentence head.
Why earlier question studies leave room for a different test
QuestionBank had already made question parsing a specific adaptation problem. Its creators manually annotated question sentences with Penn Treebank-style phrase structures, then used the collection for supervised training of a parser based on Lexical Functional Grammar. The paper describes that study as finding a substantial benefit from question-specific training. QuestionBank omits function tags, which indicate grammatical roles of phrases, and empty categories, which represent certain positions without an overt word. Those omissions matter when analyses must be converted to other formats.
Another earlier study, by Rimell and Clark, adapted the C&C parser using TREC questions. The annotations supplied part-of-speech tags and lexical categories from Combinatory Categorial Grammar. These lexical categories convey grammatical information that can help determine how a word combines with surrounding material. The reported gain shows that a question adaptation experiment can use supervision at the word level even when the training examples lack full phrase-structure trees.
Both resources were built around queries used for question answering. A collection assembled for that purpose has its own distribution of questions. It can supply many examples that request a specific piece of information. It gives a different view of questions from literary conversation, where a speaker might seek confirmation or add a short tag to a statement. The authors point to the scarcity of yes-or-no and tag questions in query collections as a reason to look at Brown.
The resulting study has complementary comparisons. Brown as a whole provides a genre shift from newspaper text, and the Brown subsets bring particular constructions into focus. QuestionBank provides a second question collection with a different purpose and mix of forms. Testing the two question collections separately asks how well adaptation works within each. Training for one and testing on the other asks a stricter question about which properties the systems can carry across collections.
The method, step by step
Finding commands and questions in annotated prose
The study starts from treebanks, collections that record the structure of sentences. In a phrase-structure tree, words are grouped into phrases, and a phrase can sit inside a larger one. A clause’s label gives the authors an existing grammatical criterion for selecting examples. That makes it possible to find an embedded command or question as well as a sentence whose main clause already has the target form.
The authors search the Brown portion of the Penn Treebank using S-IMP for imperatives and SBARQ or SQ for questions. The paper describes SBARQ as the label for wh-questions and SQ as the label for yes-or-no questions. A wh-question asks for a value such as who, what or why. A yes-or-no question asks whether a proposition holds. The extraction procedure follows the recorded labels, so it selects units identified grammatically in the treebank.
When a qualifying clause sits inside another imperative or question, the authors keep the outermost qualifying unit. A qualifying clause inside a sentence of another type can also be extracted. This matters because an example can contain more than the minimum words needed to make a question or a command. The selected unit may retain material that belongs within it, including a preceding phrase that creates one of the difficulties analyzed later. When the extracted unit needs sentence formatting, the authors capitalize the beginning and supply a period or question mark as appropriate.
The Brown selection spans popular lore, belles lettres, general fiction, mystery and detective fiction, science fiction, adventure and western fiction, romance and love stories, and humor. All of these categories supply examples at the top level and from embedded positions. The collection includes commands built with let, short directives, coordinated actions, questions beginning with a wh-word and questions beginning with an auxiliary. The annotation-based procedure brings these into the experiment under a shared set of selection criteria.
From annotated sentences to comparisons of parsing errors
The steps in order.
Screening QuestionBank and preparing reference analyses
For QuestionBank, the authors again select examples with SBARQ or SQ. This gives the comparison a common starting point in phrase labels, despite differences in how the sentences were collected and annotated. QuestionBank also contains a small number of examples of other sentence types. The label filter keeps the experimental collection focused on questions.
Tree conversion exposed annotation problems that had to be corrected for the pipeline to run. The authors manually repaired twelve sentences with problems such as brackets around empty material or tags the converter could not interpret. They also corrected a character-substitution inconsistency affecting 737 sentences and the part-of-speech annotation of the question-mark token in 2,051 sentences. A separate sentence had phrase labels in place of word tags. These repairs address the data representation required by the experiment. They leave the larger difference in annotation coverage between Brown and QuestionBank in place.
The dependency parsers need a reference analysis in the same format as their output. In that format, a word has a head, the word or designated root position that governs it, and a dependency label describes the kind of connection. The authors transform the phrase-structure trees with pennconverter. The conversion uses the -conll2007 option for the Brown extracts and uses -conll2007 and -raw for the QuestionBank data. Function tags and empty categories give the converter additional evidence when they are available. Accordingly, a common starting format for the phrases does not guarantee equally detailed dependency relations in both collections.
Enju has a separate conversion route. Its toolkit turns Penn Treebank-style analyses into trees in the Head Driven Phrase Structure Grammar representation, abbreviated HPSG. That conversion relies on function tags and empty categories. Brown has these annotations, and the converted Brown test material supplies the reference analyses for Enju. QuestionBank’s annotation coverage restricts its evaluation to tagging and dependency parsing.
What each system decides
The tagger assigns each word a category before any of the parsers operates. The authors use the tagger described by Tsuruoka and colleagues. Its local evidence includes n-gram features, which capture sequences of nearby items. The distinction between VB and VBP is important here. VB marks a base-form verb, while VBP marks a present-tense verb other than the third-person singular form. In the errors the authors discuss, the surface word may suit either category. The relevant evidence lies in its syntactic environment.
The MST parser uses a spanning-tree algorithm. At the level needed to follow the experiment, it is choosing a tree of relations that links the words into a single sentence analysis. The study reports first-order and second-order settings separately. Both belong to the same parser family, and keeping their scores separate matters because some adaptation runs for the second-order setting could not be completed.
MaltParser takes a transition-based approach. It builds an analysis through a succession of actions that add to the structure. Although its procedure differs from MST’s, the output can be scored against the same reference dependencies. That makes it possible to ask whether the observed difficulty appears in both families and to inspect a particular mistake with Malt in more detail.
The authors allow non-projective trees in both systems. In a diagram with the words in sentence order, non-projective structures can have crossing dependency arcs. The converted Brown questions contain many non-projective links. Allowing such structures means the parsers have the option to produce those reference configurations. Their errors can then be examined without treating projectivity as a constraint imposed by the experiment.
Enju gives the authors a different view of sentence structure. It produces a syntactic analysis and a set of predicate–argument dependencies. A predicate expresses a relation, and its arguments are the elements participating in that relation. Evaluating those dependencies asks whether the parser recovers that aspect of the analysis. An Enju F-score and a Malt attachment accuracy can both improve with adaptation, while the two improvements describe different outputs.
Giving target examples more influence
The source systems are trained on Wall Street Journal material. Adaptation gives them supervised examples from a target collection. Since the Brown construction subsets are small compared with the newspaper training set, the authors sometimes repeat the target training examples before combining them with the newspaper examples. Repetition gives the target examples more influence during training. The number of distinct annotated constructions available to the learner stays the same.
For tagging Brown overall, training uses the combined Wall Street Journal and Brown overall training data. For the Brown imperative subset, the Brown question subset and QuestionBank, the authors consider replication counts of 1, 2, 4, 8, 16, 32, 64, and 128 for the target tagger data. The tuning procedure they describe compares the choices on development tests in three of the ten cross-validation datasets. A development test is used for choosing a setting. Held-out evaluation then measures how the resulting system behaves on separate examples.
MST and Malt are trained on combined source and target data for Brown overall and QuestionBank. For Brown imperatives and questions, the authors repeat the target training data ten times before concatenating it with the newspaper training data. Enju receives the same training sets as the dependency parsers in the comparisons where it is evaluated. Its adaptation toolkit uses a reference distribution, the mechanism named by the paper for adapting this parser. The experiment uses the available adaptation procedure for each system so that the residual mistakes can be studied across several kinds of parser.
The learning-curve experiments vary the amount of target training material. That is a different comparison from varying how many times a fixed collection is copied. Adding target sentences can introduce new word uses, arrangements and combinations of clauses. Replication changes how frequently the available examples appear during training. The distinction matters when a parser continues to improve as target data grows, even though the experimental training procedure already emphasizes the target examples.
Separating word tagging from sentence analysis
For each applicable target, the authors combine the newspaper-trained or adapted parser with several sources of word tags. A newspaper-trained tagger supplies the tags in the basic transfer condition. An adapted tagger shows what happens when the system responsible for word categories has itself seen target examples. The third condition supplies the tags recorded in the reference annotation, called gold POS. This last condition makes it possible to assess parsing while holding word-category information correct by the standard of the corpus.
Changing the tag source while holding the parser fixed shows how much that parser benefits from a different grammatical description of its input. Changing the parser while holding reference tags fixed examines the effect of adaptation after errors in word categories have been removed from the input. Changing both estimates the result for the full adapted pipeline using its own predicted tags. The same result table contains all of these comparisons, so the baseline attached to a number is important.
The measures follow the representations. Tagging accuracy is the share of words assigned the reference category. Labeled attachment accuracy for MST and Malt counts a word as correct only when its predicted head and relation label both match the reference, and excludes punctuation from scoring. For Enju, the paper specifies labeled and unlabeled precision, recall and F-score for predicate–argument dependencies. Precision concerns how many proposed relations are correct, recall concerns how many reference relations are recovered, and the F-score combines them. The paper describes these measures and training procedures in prose and gives no explicit equations.
Experiments and results
The test collections and their roles
The Wall Street Journal experiment provides a within-source benchmark. Of the 43,948 sentences, the authors use 39,832 from sections 02-21 for training, 1,700 from section 22 for development testing and 2,416 from section 23 for final testing. Brown overall provides a broader target comparison. Its 24,243 sentences are randomly divided into 19,395 for training, 2,424 for development testing and 2,424 for final testing. A result on Brown overall reflects the full test mixture, which includes many sentences outside the selected command and question categories.
The imperative extraction yields 750 examples. The experimental division lists 65 × 10 for ten-fold cross-validation and 100 for error analysis, with the latter selected evenly across genres. In cross-validation the held-out fold changes, so the experiment can evaluate a small collection without committing all the performance measurement to one test portion. The analysis sentences serve a different purpose. They let the authors inspect recurring errors and track which ones change after adaptation.
For the question extraction, the paper’s description reports 1,241 Brown questions. The experimental dataset table lists 1,240 and specifies 112 × 10 for ten-fold cross-validation and 141 for error analysis, again selected evenly across genres. The paper leaves the discrepancy between the extraction count and the experimental total unresolved. In the extraction breakdown, SBARQ accounts for 593 occurrences and SQ for 648. Those figures describe the labels used to select questions, separate from the question-type counts in the later transfer analysis.
QuestionBank supplies 3,859 selected questions. The allocation there is 2,560 for training, 1,000 for the final test and 299 for error analysis. The analysis allocation comes from the beginning of the corpus. The QuestionBank final test is a fixed set, whereas the Brown construction experiments are reported from cross-validation. A comparison across the two collections therefore brings together different evaluation designs as well as different training sizes and question distributions.
The authors also tried the extraction procedure on the newspaper portion of the treebank, obtaining 115 imperatives and 432 questions. Those extracts were left out of the experiments. The newspaper benchmark comes from the usual Wall Street Journal split, so a comparison between that benchmark and Brown imperatives or Brown questions compares different test collections. The strongest evidence about adaptation comes from changing the training or tag condition while holding the target collection fixed.
Tagging performance
The Wall Street Journal tagger scores 97.53% on its newspaper test. On Brown overall it scores 96.15%, and the adapted tagger reaches 96.68%. The construction subsets show lower scores. For Brown imperatives, the newspaper-trained tagger scores 92.36% and its adapted counterpart reaches 93.96%. For Brown questions, the corresponding tagging accuracies are 94.69% and 95.80%. Both construction-specific adapted taggers therefore remain below the adapted tagger’s accuracy on Brown overall.
QuestionBank has a similar pattern of improvement. On its questions, the source tagger scores 93.14% and the adapted tagger scores 95.69%. The conditions differ in how much training data is available, and the comparison within QuestionBank shows that supervised target material helps with its grammatical categories. The adapted QuestionBank and Brown question scores are close, even though the parsing results for the two collections will look quite different.
Tagger adaptation on Brown imperatives, part-of-speech accuracy
Training with target examples improves word tagging for commands.
The numbers
| System or setting | accuracy % |
|---|---|
| Wall Street Journal tagger | 92.36 |
| Adapted tagger (this paper) | 93.96 |
The tagger learning curves add a qualification to the aggregate scores. The paper reports a substantial gain from the first 300 target training sentences for the constructions it examines. Further examples bring diminishing gains over the observed range. The authors read that pattern as a reason to examine what the tagger can infer from its features, particularly for imperatives. The individual tagging mistakes provide more specific evidence about the source of that difficulty than the shape of the curve alone.
Dependency parsing on Brown
With the newspaper-trained tagger and parser, first-order MST reaches 87.08 labeled attachment accuracy on the newspaper benchmark and 80.83 on Brown overall. For Brown overall, using an adapted tagger with the source parser yields 81.14. With both components adapted, the score is 83.00. The adapted parser reaches 84.30 when it receives the reference tags. The progression illustrates the distinct contributions of adapting tagging, adapting parsing and supplying the correct word categories.
The Brown imperative result for first-order MST starts at 76.60 with the newspaper-trained components. It reaches 80.86 after both have been adapted. Under gold POS, the source and adapted parsers score 81.16 and 83.40. The available second-order MST adaptation comparison for Brown imperatives shows the same broad pattern. With predicted tags from the corresponding source or adapted tagger, the scores are 76.64 and 81.39. With gold tags, the corresponding scores are 81.17 and 84.04. These values describe labeled attachments on the imperative cross-validation test.
Malt starts at 73.37 on Brown imperatives with the source pipeline and reaches 79.92 with both components adapted. Supplying gold tags yields 77.57 with the source parser and 83.18 with the adapted one. That last comparison is particularly relevant to the error analysis. The adapted parser has learned something about how the words connect even when the source parser is already told whether each word is a verb, a noun or another category.
On Brown questions, Malt scores 71.12 with the newspaper tagger and parser and 72.41 when only the tagger is adapted. The source parser with gold tags reaches 75.25. With the adapted parser, the score is 78.73 using newspaper tags, 80.03 using adapted tags and 82.72 using gold tags. The ordering shows that tag quality matters in this setting and that training the parser on questions makes a substantial contribution even when it receives the same newspaper tags as before.
Malt parser and tagger settings on Brown questions, labeled attachment accuracy
Parser adaptation improves attachment under every tag condition shown, and reference tags give the adapted parser its highest score.
The numbers
| System or setting | labeled attachment accuracy % |
|---|---|
| Wall Street Journal parser and tagger | 71.12 |
| Wall Street Journal parser with adapted tagger | 72.41 |
| Wall Street Journal parser with gold tags | 75.25 |
| Adapted parser with Wall Street Journal tagger | 78.73 |
| Adapted parser and tagger | 80.03 |
| Adapted parser with gold tags (this paper) | 82.72 |
First-order MST on Brown questions scores 75.91 with the source pipeline and 80.28 with the fully adapted pipeline. Its source and adapted parsers score 79.83 and 82.75 when both use reference tags. The comparison with Malt depends on the input condition. Malt gains more visibly from adaptation in this collection, and their best scores with gold tags are close. The paper’s focus is the persistence and character of errors across these systems, which the separate parser and tag conditions make possible to investigate.
QuestionBank and the larger gains from adaptation
The unadapted dependency parsers have particular difficulty on the QuestionBank final test. First-order MST scores 59.58 with newspaper tags and 61.54 with reference tags. Once the parser is adapted to QuestionBank, it scores 83.25 even with newspaper tags. The full adapted pipeline reaches 85.41, and the adapted parser with gold tags reaches 86.75. This is a case where improving the treatment of input word categories addresses a much smaller part of the original parsing difficulty than adapting the parser itself.
Malt shows a larger change. With the original tagger and parser it scores 58.75, and substituting reference tags brings the source parser to 60.42. Adapting Malt while retaining the newspaper tagger gives 89.28. Using the adapted tagger with the adapted parser gives 92.55, while the adapted parser supplied with reference tags reaches 93.87. These are labeled attachment accuracies on the same QuestionBank final test. The size of the gains under fixed tag conditions demonstrates how much the parser benefits from the target training material and its conventions.
Malt adaptation on the QuestionBank final test, labeled attachment accuracy
In-domain parser training accounts for the largest change, with further gains from improving the word tags.
The numbers
| System or setting | labeled attachment accuracy % |
|---|---|
| Wall Street Journal parser and tagger | 58.75 |
| Wall Street Journal parser with gold tags | 60.42 |
| Adapted parser with Wall Street Journal tagger | 89.28 |
| Adapted parser and tagger | 92.55 |
| Adapted parser with gold tags (this paper) | 93.87 |
The paper reports that some QuestionBank configurations approach or exceed the newspaper systems’ results on their own newspaper test. For instance, Malt’s fully adapted QuestionBank pipeline scores 92.55, and its newspaper pipeline scores 87.46 on the newspaper test. Each score measures agreement with the references in its own collection. The high QuestionBank result shows how well that particular within-collection adaptation works. Brown and QuestionBank still have different attachment conventions and different distributions of constructions, which become important in the transfer experiments.
Predicate–argument analysis and the learning curves
Enju gives a corresponding comparison for predicate–argument recovery. Its reported F-score is 89.56 with the source pipeline on the newspaper test and 81.19 with that pipeline on Brown overall. Adapting both components for Brown overall gives 84.29, and supplying gold tags to the adapted parser gives 85.37. These values measure recovery of predicate–argument relations, so the comparison is across Enju’s settings rather than a numerical ranking against MST or Malt.
For Brown imperatives, Enju starts at 74.82 with the source tagger and parser and reaches 81.53 with the fully adapted pair. Under gold tags, the source and adapted parser F-scores are 80.52 and 84.29. On Brown questions the corresponding pipeline scores are 76.88 and 82.24, and the gold-tag scores are 80.75 and 83.55. The persistence of an adaptation effect with gold tags across both constructions shows that the result extends to the study’s predicate–argument evaluation.
The parser learning curves are still generally rising across the amounts of training data tested. The authors single out Malt on QuestionBank as the exception to that tendency. The upward Brown curves leave room for the explanation that additional annotated examples could improve the scores further. This contrasts with the earlier flattening observed in tagging and gives the authors different reasons to consider more data and changes to the systems’ features.
Some entries and curves are incomplete. The experimental environment prevented completion of second-order MST training on the full Brown corpus, the Brown questions subset, and QuestionBank. The authors report a crash and suggest large memory demands or large intermediate files as possible causes. The study therefore gives usable second-order adaptation results for Brown imperatives, while conclusions about the other target sets rely on the available configurations.
What the ablations show
Using reference tags to locate the remaining difficulty
The paper gives controlled comparisons of tag inputs, adaptation conditions, training-set sizes and transfer directions, along with an inspection of errors. It does not ablate individual features. The closest comparison to removing a source of pipeline error is the use of gold POS. With the parser held fixed, supplying reference categories removes the tagger’s mistakes from its input. With the tags held at gold, any remaining improvement from adapting the parser comes after that removal.
The Brown results show both kinds of effect. On Brown imperatives, for instance, Malt trained on Wall Street Journal material has labeled attachment accuracy of 73.37 using the newspaper tagger and 77.57 using reference tags. That comparison demonstrates sensitivity to word-category information. With both parsers receiving reference tags, Malt reaches 83.18 after adaptation to imperatives. The second comparison shows that supplying grammatical categories leaves important decisions about the organization of clauses and phrases for the parser to learn.
The gains from ordinary tagger adaptation give a practical counterpart to the gold condition. On Brown questions, adapting only the tagger changes Malt’s attachment accuracy from 71.12 to 72.41. Training only the parser on target material with the same source tagger gives 78.73. The parser’s larger gain in this comparison points to difficulties that a better choice of word categories alone would leave in place. The reference-tag experiments also explain why tagging remains worth inspecting. A head-selection error in the final analysis can begin with an incorrect description of the head’s category, even when separate structural error patterns are present.
What changes in the tagger’s mistakes
The paper examines which reference tag was replaced by which prediction. This matters because a single accuracy figure treats all mistakes alike. A repeated tendency to read a base-form verb as a noun gives a more concrete clue about the effect of training on statements than a small change distributed over unrelated categories.
For Brown imperatives, the source tagger predicts a common or proper noun, NN or NNP, for a reference VB in 13 cases in the error analysis. The adapted tagger does so in 9 cases. When the error is a present-tense VBP prediction for a base-form VB, the counts go from 8 to 2. The larger reduction for the tense-category confusion fits the authors’ interpretation that imperative training teaches the tagger to expect base forms in the main verb position. The remaining noun confusions include both straightforward openings and verbs whose place in the sentence is harder to recognize from nearby words.
In a short Brown command beginning with Charge, the tagger can read the opening word as a noun. The authors regard such a case as one that more training examples might address. The word is at the beginning and the sentence gives a relatively direct example of the pattern. The relevant regularity is that a command can open with an action. Additional examples can reinforce it, including examples where the opening word admits more than one reading.
The problem looks different when subtract follows an introductory infinitival phrase explaining the aim of a calculation. A cue that often helps the tagger on short commands, the position of the main verb at or near the beginning, is unavailable here. The beginning of the sentence belongs to another phrase. The tagger needs to detect that phrase’s end and interpret the following verb as the start of the main imperative. The authors argue that a tagger relying on local sequences has limited access to the fact that a longer constituent precedes the main verb.
Brown questions show a pronounced change in another verb confusion. The analysis records 16 VB words assigned VBP by the newspaper tagger and 2 under adaptation. In QuestionBank, a different recurring error concerns interrogative words. The newspaper tagger assigns WP, the category for a wh-pronoun, in 28 instances where the reference has WDT, the category for a wh-determiner. The adapted tagger records 0 of those errors in the analysis. A determiner introduces a nominal expression, while a pronoun can fill a nominal position by itself. Adaptation can teach the tagger the distinction in frequent query patterns even while other confusions persist.
The authors propose that richer input could address errors that depend on a larger portion of the sentence. Phrase or dependency structure could help a tagger judge where the main clause begins. The surrounding conversation could provide evidence that an utterance is likely to be a command or a question. These are proposed sources of information. The reported comparisons measure the existing tagger and the effect of adding supervised target examples.
Finding the head of the sentence
The parsing error analysis focuses on Malt and counts missed reference relations by label. Both the source and adapted parsers receive gold word tags. In this part of the analysis the paper describes 100 sentences for each Brown construction. That is the denominator for the parsing error exercise, distinct from the analysis allocation listed for the Brown question collection in the dataset table.
ROOT is the relation that identifies the head of the sentence. On Brown imperatives, the number of reference ROOT dependencies missed goes from 33 with the newspaper-trained parser to 9 with the adapted parser. On Brown questions, the respective counts are 24 and 9. Root choice determines which word the analysis treats as the center of the sentence. A wrong choice can yield a plausible-looking set of local links within an analysis that misidentifies the main clause.
A name used to address someone is one source of these errors. In a Brown command beginning with See and ending with the name Miss Zion, the newspaper-trained parser chooses Zion as the head and treats the verb as dependent on the name. The adapted parser puts the verb at the center. The reference tags already identify the words’ grammatical categories in both conditions. What changes is the parser’s treatment of an addressed person’s name in the structure of a command.
Other errors involve the way quotation and punctuation are represented. In the examples the authors discuss, the newspaper-trained parser can choose an exclamation mark or question mark as the head and attach the verb or auxiliary beneath it. The authors suggest that the placement of punctuation outside the quotation in Brown might contribute. The adapted parser more often assigns the head where the annotation requires it. This improvement concerns the interaction between construction and corpus convention. Though punctuation is excluded from labeled attachment scoring, treating punctuation as the governor of a scored word can still give that word an incorrect head.
The reduction in root errors is more conspicuous than the changes for some other relations. In Brown imperatives, the counts for missed ADV dependencies are 39 before adaptation and 32 afterward. Missed NMOD dependencies are 25 and 26, respectively. In Brown questions, the SBJ counts are 32 and 24, while NMOD counts are 37 and 34. The relation labels distinguish, among other things, adverbial attachments, noun modification and subjects. These counts show why the authors examine the root separately. Adaptation can substantially improve recognition of the main clause while leaving widespread problems recovering particular modifiers.
When a sentence contains more than its main construction
The errors that survive adaptation include colloquial imperatives in which the speaker repeats or restarts a command. A string may contain successive directive fragments, with the same verb recurring before the utterance reaches a fuller expression. Such cases give the parser several plausible local starting points. The paper identifies the flexibility of these examples as a difficulty for a system that scores analyses by the configurations it has learned to expect.
A more orderly sentence can produce a related problem. The calculation command discussed in the tagging analysis opens with an infinitival phrase headed by find, then gives the actual instruction headed by subtract. With gold tags supplied, both the source and adapted parsers choose find as ROOT. They assign the following material a reading in which it belongs to a clausal complement of find. The reference identifies the introductory phrase as the purpose and makes the subtraction instruction the main clause.
This example makes the tag and parser errors separable. At the tagging stage, the question is whether subtract is identified as a verb in this environment. At the parsing stage, the verb tag is already available and the question is which verb governs the sentence. The earlier position of find and the possibility of treating following words as its complement support a locally coherent analysis. Choosing the intended head depends on recognizing that the purpose phrase ends and a different clause begins. The authors use this kind of error to motivate better treatment of mixed constructions within a sentence.
Which question patterns carry over
The transfer experiment adapts on one question collection and tests on the other. The meaningful comparison is between a source system and a transferred system on the same target under the same tag condition. The gold-tag columns are especially informative because they hold the word categories fixed while the parser’s adaptation source changes.
On the QuestionBank final test, first-order MST with gold tags scores 61.54 when trained for the newspaper domain and 63.06 after adaptation to Brown questions. Malt goes from 60.42 to 62.12 under the same comparison. Those gains show that adapting to Brown questions can make some useful changes for the query collection. They are modest in relation to the gains when QuestionBank supplies both the adaptation data and the test.
In the reverse direction, QuestionBank adaptation lowers attachment accuracy on Brown questions. With gold tags, first-order MST scores 79.83 for the newspaper-trained parser and 72.26 for the QuestionBank-adapted parser. For Malt, the corresponding results are 75.25 and 67.70. The direction also holds with newspaper tagging retained. For example, Malt scores 71.12 with the newspaper-trained parser and 63.98 after parser adaptation to QuestionBank. The asymmetry is apparent even before any question-specific tagger from the other collection is used.
The tagging comparisons themselves give little evidence that either adapted tagger transfers a substantial gain to the other collection. The tagger trained for Brown questions scores 92.97 on QuestionBank against the newspaper tagger’s 93.14. The QuestionBank-adapted tagger scores 94.69 on Brown questions, the same value reported there for the newspaper tagger. The parsing declines in the reverse transfer are consequently visible in a condition that already has correct tags, and the tagger results on their own cannot account for them.
The authors compare the kinds of questions in the material they analyze. Their distribution table counts 59 yes-or-no questions for Brown and 0 for QuestionBank in those samples. The rest of the table distinguishes wh-questions by tags on their question expressions. Brown offers both the wh-patterns that can help when transferring to QuestionBank and yes-or-no configurations that the analyzed QuestionBank material scarcely represents. This gives a plausible structural explanation for why a parser adapted to Brown can transfer some gains while one adapted to the query collection loses accuracy on Brown.
A second explanation operates alongside construction coverage. QuestionBank’s missing function tags lead the authors to extract more abstract dependency relations there. A parser adapted on one collection therefore encounters a different labeling practice in the other. The authors expected shared constructions to support useful phrase boundaries and attachments in spite of that mismatch. The measured transfer score combines those possible benefits with the actual requirement to predict the target collection’s labels. The experiment establishes the asymmetry in labeled attachment accuracy, while the question-type analysis and annotation discussion explain why several influences may contribute to it.
Limitations
Limits the authors identify
The Brown construction subsets supply a finite amount of supervised data. The parsing learning curves generally continue to rise across the tested amounts, and the paper explicitly leaves open the possibility that more target sentences would improve the scores. The strong within-QuestionBank results illustrate what adaptation can achieve on a larger, more focused question collection. The Brown results support a diagnosis of persistent errors under the tested adaptation procedures. An eventual ceiling would require evidence beyond the observed training ranges.
The authors argue that some failures are especially difficult to address by increasing data alone. Their evidence comes from cases such as a later command verb preceded by a long purpose phrase and sentences that combine colloquial directives with other material. These examples motivate feature designs or parsing procedures that better represent relations across phrases and clauses. The paper proposes such changes as directions for investigation, and its experiments concern the available systems under supervised adaptation.
Annotation constrains both the systems that can be evaluated and the meaning of a transfer score. Enju’s converter needs function tags and empty categories, limiting that part of the evaluation to Brown and newspaper material. For MST and Malt, the more abstract relations derived from QuestionBank affect cross-collection evaluation. The authors also flag Brown’s treatment of quotation punctuation as a possible contributor to some reference root patterns and raise the possibility of correcting the corpus. A gain on these cases can reflect better agreement with the resource’s conventions as well as better recognition of a command or question.
The incomplete second-order MST runs narrow the evidence for that setting. Brown imperatives provide a comparison with adaptation, while Brown overall and the two question collections lack comparable adapted results for second-order MST. The reported crash limits the experimental record in those conditions. Its presumed resource causes remain an explanation offered by the authors.
Limits visible in the design
The study selects naturally occurring sentences according to treebank labels. That gives the experiments a variety of real structures and styles. It also means the construction subsets differ from the newspaper benchmark in more than clause form. Vocabulary, punctuation, dialogue style and genre can travel together with the change in construction. An experiment that rewrote matched sentences into different forms could isolate some of those effects more tightly. Here the main evidence for structural difficulty comes from the controlled tag conditions and the analysis of individual errors.
The corpus comparisons answer related but distinct questions. Brown overall indicates performance on a broad target mixture. The extracted Brown collections concentrate particular kinds of clauses and can include embedded material taken from a larger sentence. QuestionBank concentrates query-style questions. Its training allocation, final test and annotation conventions differ from those of Brown questions. A difference in scores across these collections combines those properties, while a comparison holding the collection fixed gives a clearer estimate of what adaptation changed.
The extraction procedure also defines the population the authors can speak about. A clause qualifies through its recorded phrase label, and nested target clauses can be represented by the outermost selected unit. The evaluated examples are thus the constructions found by that procedure, with capitalization and punctuation adjusted where necessary. The paper’s suggestion that conversational context could help extends beyond the evidence supplied to the tagger and parser in these sentence-level experiments.
The transfer analysis relates a distribution of question types to aggregate attachment performance. It does not report separate attachment scores for each type that would reveal how much each category contributes to the change. Because the dependency label conventions also differ, the experiment cannot assign the decline to missing yes-or-no training examples alone. It shows that training on these query questions does not carry over as successfully to Brown as Brown training does to QuestionBank, under the measured conditions.
Finally, the main error analysis of parsing gives a detailed account of Malt. The aggregate experiments show that construction-specific adaptation also matters for MST and Enju. The detailed counts for root, subject and modifier mistakes belong to Malt’s analysis under gold POS. Extending those particular explanations to the other parsers would require inspecting their outputs under comparable conditions. This distinction preserves what the paper establishes across systems and what its examples establish for one parser.
What came after
The later-work record contains no studies to trace, so the account of follow-up stops at the research questions the authors identify. They propose investigating parsing procedures that can handle a wider range of constructions, and adaptation methods that can make better use of limited annotated data for commands and questions. These are directions proposed by the paper.
The experiments give those directions a concrete starting point. Better word categories can improve the input to a parser, especially where training on statements favors the wrong reading of a verb or question word. Better sentence analysis also requires recognizing the principal clause when several phrases or clauses compete for that role. The gold-tag comparisons give a way to tell whether progress reaches the second problem, since the parser then receives the grammatical categories it needs and must still choose how the words connect.
The transfer result poses a separate question for follow-up. A system can learn enough about a collection of queries to parse its held-out examples well while becoming less effective on literary questions. To understand that change, the paper points towards evaluation that tracks the kinds of questions represented in training and testing and accounts for what the annotations let the parser learn. Its examples locate the issue in observable decisions, from the treatment of a person’s name to the boundary between a purpose phrase and a command. Those are the decisions a later experiment would need to measure to show that it had addressed the difficulty.
Institutions
Fields, topics and concepts
Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksArts and Humanities · 17,959 worksLanguage and Linguistics · 17,789 works
Topics 1Research subjects and languages the work is about.English · 2,381 works
Cite
Cite as Tadayoshi Hara, Takuya Matsuzaki, Yusuke Miyao and Jun'ichi Tsujii. 2011. Exploring Difficulties in Parsing Imperatives and Questions. Proceedings of 5th International Joint Conference on Natural Language Processing.
@inproceedings{hara2011exploring,
title = {{Exploring Difficulties in Parsing Imperatives and Questions}},
author = {Tadayoshi Hara, Takuya Matsuzaki, Yusuke Miyao and Jun'ichi Tsujii},
booktitle = {Proceedings of 5th International Joint Conference on Natural Language Processing},
year = {2011},
url = {https://aclanthology.org/I11-1084/}
}References
- John Blitzer, Ryan Mcdonald, and Fernando Pereira. 2006. Domain adaptation with structural correspondence learning. In Proceedings of the 2006 Conference on Empirical Methods in Natural Language Processing, pages 120–128, Sydney, Australia. DOI ↗
- Stephen Clark and James R. Curran. 2007. Wide-coverage efficient statistical parsing with CCG and log-linear models. Computational Linguistics, 33(4):493–552. DOI ↗
- A. B. Clegg and A. Shepherd. 2005. Evaluating and integrating treebank parsers on a biomedical corpus. In Proceedings of the ACL 2005 Workshop on Software, Ann Arbor, Michigan. DOI ↗ · OpenAlex ↗ · Scholar ↗
- Tadayoshi Hara, Yusuke Miyao, and Jun’ichi Tsujii. 2007. Evaluating impact of re-training a lexical disambiguation model on domain adaptation of an HPSG parser. In Proceedings of 10th International Conference on Parsing Technologies (IWPT 2007), pages 11–22. DOI ↗ · OpenAlex ↗ · Scholar ↗
- Frederick Jelinek. 1998. Statistical Methods for Speech Recognition. The MIT Press, Cambridge, MA, USA. OpenAlex ↗ · Scholar ↗
- Richard Johansson and Pierre Nugues. 2007. Extended constituent-to-dependency conversion for english. In Proceedings of NODALIDA 2007.
- John Judge, Aoife Cahill, and Josef van Genabith. 2006. Questionbank: Creating a Corpus of Parsing-Annotated Questions. In Proceedings of the 21st International Conference on Computational Linguistics and 44th Annual Meeting of the ACL, pages 497–504. OpenAlex ↗ · Scholar ↗
- David McClosky, Eugene Charniak, and Mark Johnson. 2006. Reranking and self-training for parser adaptation. In Proceedings of the 21st International Conference on Computational Linguistics and the 44th annual meeting of the Association for Computational Linguistics, pages 337–344, Sydney, Australia. DOI ↗
- David McClosky, Eugene Charniak, and Mark Johnson. 2010. Automatic Domain Adaptation for Parsing. In Proceedings of the 2010 Annual Conference of the North American Chapter of the ACL, pages 28–36, Los Angeles, California.
- Ryan McDonald, Koby Crammer, and Fernando Pereira. 2005a. Online large-margin training of dependency parsers. In Proceedings of ACL-2005. DOI ↗
- Ryan McDonald, Fernando Pereira, Kiril Ribarov, and Jan Hajič. 2005b. Non-projective dependency parsing using spanning tree algorithms. In Proceedings of HLT/EMNLP-2005. DOI ↗
- Yusuke Miyao and Jun’ichi Tsujii. 2005. Probabilistic disambiguation models for wide-coverage HPSG parsing. In Proceedings of the 43rd Annual Meeting on Association for Computational Linguistics (ACL), pages 83–90. DOI ↗
- Takashi Ninomiya, Takuya Matsuzaki, Yusuke Miyao, and Jun’ichi Tsujii. 2007. A log-linear model with an n-gram reference distribution for accurate hpsg parsing. In Proceedings of IWPT 2007, June. Prague, Czech Republic. DOI ↗ · OpenAlex ↗ · Scholar ↗
- Joakim Nivre, Johan Hall, and Jens Nilsson. 2006. MaltParser: A data-driven parser-generator for dependency parsing. In Proceedings of LREC, pages 2216–2219. DOI ↗
- Joakim Nivre, Johan Hall, Sandra Kübler, Ryan Mc-Donald, Jens Nilsson, Sebastian Riedel, and Deniz Yuret. 2007. OpenAlex ↗ · Scholar ↗
- The CoNLL 2007 shared task on dependency parsing. In Proceedings of the CoNLL Shared Task Session of EMNLP-CoNLL 2007, pages 915–932, Prague, Czech Republic, June. Association for Computational Linguistics.
- Laura Rimell and Stephen Clark. 2008. Adapting a Lexicalized-Grammar Parser to Contrasting Domains. In Proceedings of the 2008 Conference on Empirical Methods in Natural Language Processing, pages 475–584. DOI ↗ · OpenAlex ↗ · Scholar ↗
- Brian Roark and Michiel Bacchiani. 2003. Supervised and unsupervised PCFG adaptation to novel domains. In Proceedings of the 2003 Conference of the North American Chapter of the Association for Computational Linguistics on Human Language Technology, pages 126–133, Edmonton, Canada. DOI ↗ · OpenAlex ↗ · Scholar ↗
- Mark Steedman, Miles Osborne, Anoop Sarkar, Stephen Clark, Rebecca Hwa, Julia Hockenmaier, Paul Ruhlen, Steven Baker, and Jeremiah Crim. 2003. Bootstrapping statistical parsers from small datasets. In Proceedings of the tenth conference on European chapter of the Association for Computational Linguistics, pages 331–338, Budapest, Hungary. DOI ↗ · OpenAlex ↗ · Scholar ↗
- Ivan Titov and James Henderson. 2006. Porting statistical parsers with data-defined kernels. In Proceedings of the Tenth Conference on Computational Natural Language Learning, pages 6–13, New York City. DOI ↗ · OpenAlex ↗ · Scholar ↗
- Yoshimasa Tsuruoka, Yuka Tateishi, Jin-Dong Kim, Tomoko Ohta, John McNaught, Sophia Ananiadou, and Jun’ichi Tsujii. 2005. Developing a robust part-of-speech tagger for biomedical text. In Advances in Informatics - 10th Panhellenic Conference on Informatics, volume LNCS 3746, pages 382–392, Volos, Greece, November. ISSN 0302-9743. DOI ↗ · OpenAlex ↗ · Scholar ↗
This page in Markdown https://md.research.elamur.ai/free/en/papers/hara-2011-exploring-difficulties-parsing-imperatives-questions/