Hostname: page-component-74656f9884-kv2lp Total loading time: 0 Render date: 2026-11-06T08:53:11.230Z Has data issue: false hasContentIssue false

MaltOptimizer: Fast and effective parser optimization

Published online by Cambridge University Press:  24 February 2014

MIGUEL BALLESTEROS
Affiliation:
Natural Language Processing Group, Pompeu Fabra University, Tànger 122-140, 08018 Barcelona, Spain e-mail: miguel.ballesteros@upf.edu
JOAKIM NIVRE
Affiliation:
Department of Linguistics and Philology, Uppsala University, Box 635, 75126 Uppsala, Sweden e-mail: joakim.nivre@lingfil.uu.se
Rights & Permissions [Opens in a new window]

Abstract

Statistical parsers often require careful parameter tuning and feature selection. This is a nontrivial task for application developers who are not interested in parsing for its own sake, and it can be time-consuming even for experienced researchers. In this paper we present MaltOptimizer, a tool developed to automatically explore parameters and features for MaltParser, a transition-based dependency parsing system that can be used to train parser's given treebank data. MaltParser provides a wide range of parameters for optimization, including nine different parsing algorithms, an expressive feature specification language that can be used to define arbitrarily rich feature models, and two machine learning libraries, each with their own parameters. MaltOptimizer is an interactive system that performs parser optimization in three stages. First, it performs an analysis of the training set in order to select a suitable starting point for optimization. Second, it selects the best parsing algorithm and tunes the parameters of this algorithm. Finally, it performs feature selection and tunes machine learning parameters. Experiments on a wide range of data sets show that MaltOptimizer quickly produces models that consistently outperform default settings and often approach the accuracy achieved through careful manual optimization.

Information

Type
Articles
Copyright
Copyright © Cambridge University Press 2014 
Figure 0

Fig. 1. Nivre's arc-eager transition system.

Figure 1

Fig. 2. Transition sequence for She sent him a letter.

Figure 2

Fig. 3. An English sentence with two covered roots (a case of ‘dangling punctuation’).

Figure 3

Fig. 4. Phase 1 log file and option file. The log file (phase1_logfile.txt) shows the main characteristics of the data set plus the results of the default model and the best model so far. The option file (phase1_optfile.txt) shows the options that are different from default settings. The user may edit the option file before continuing.

Figure 4

Fig. 5. Decision tree for the best projective algorithm. Each box in the decision tree represents the test of an algorithm. An undirected link labeled ‘vs.’ signifies that both algorithms are evaluated against each other. A directed link means that the lower algorithm is evaluated only if the higher one is the best so far.

Figure 5

Fig. 6. Decision tree for the best non-projective algorithm (+PP = combined with pseudoprojective parsing). Each box in the decision tree represents the test of an algorithm. An undirected link labeled ‘vs.’ signifies that both algorithms are evaluated against each other. A directed link means that the lower algorithm (or algorithm pair) is evaluated only if the higher one is the best so far.

Figure 6

Fig. 7. Phase 2 log file and option file. The log file (phase2_logfile.txt) shows the main characteristics of the data set plus the results of the default model and the best model so far. The option file (phase2_optfile.txt) shows the options that are different from default settings. (The algorithm stackproj is the projective Stack algorithm and the -pp option refers to the pseudo-projective encoding.) The user may edit the option file before continuing.

Figure 7

Fig. 8. Algorithm for backward feature selection.

Figure 8

Fig. 9. Algorithm for forward feature selection.

Figure 9

Table 1. Token references used in feature specifications for different families of parsing algorithms. L/RFocus = left/right focus token; L/RContext = left/right context for left/right focus token; CContext = central context between focus tokens (available only for non-projective algorithms)

Figure 10

Fig. 10. Feature specification for Slovene (the projective Stack algorithm with pseudo-projective parsing) after the optimization process.

Figure 11

Fig. 11. Phase 3 log file and option file. The log file (phase3_logfile.txt) shows the main characteristics of the data set plus the results of the default model and the best model so far. The option file (phase3_optfile.txt) shows the options that are different from default settings. (The numbering jumps from 4 to 8 because slots 5–7 are reserved for parsing algorithm options that are not used for the selected algorithm.) The user may edit the option file and continue with manual optimization.

Figure 12

Table 2. Labeled attachment score (LAS) per phase compared with default settings for all training sets from the CoNLL 2006 and 2007-shared tasks. Languages marked with * have a training set smaller than 90,000 tokens and have been optimized using five-fold cross-validation; the remaining languages have been optimized using a simple training-devtest split. The final column shows the parsing algorithm selected in phase 2 (P = projective, NP = non-projective, PP = pseudo-projective, E = arc-eager, S = arc-standard)

Figure 13

Table 3. Labeled attachment score (LAS) on final test sets for MaltParser with default settings (default), the best model found by MaltOptimizer with Nivre's arc-eager parsing algorithm (Test-MO[N]), the best model found by MaltOptimizer overall (Test-MO), and the best MaltParser model in the CoNLL 2006 and 2007-shared tasks (Test-MP). Languages marked with * have a training set smaller than 90,000 tokens and have been optimized using five-fold cross-validation