MaltParser: A Data-Driven Parser-Generator for Dependency Parsing
Summary
Data-driven parsing promises faster development for new languages, but only when a treebank exists, and most available treebanks are small (roughly 100k tokens or fewer). The authors present MaltParser 0.3, a parser-generator that takes a dependency treebank instead of a grammar and induces a parser for that treebank's language. It implements inductive dependency parsing, which combines three components:
- a deterministic algorithm that builds the dependency graph step by step;
- a history-based feature model describing the current parser state;
- a discriminative classifier that selects the next parser action.
The core design goal is that these three components can be swapped and tuned independently. Users can choose among parsing algorithms and learning back-ends, and can write their own feature models in a compact tab-separated specification language. The paper documents functionality rather than new experiments. Evaluations reported elsewhere on Swedish, English, Czech, Danish and Bulgarian give dependency accuracy of 80–90%. That error rate is at most about 5% higher than state-of-the-art parsers, with no language-specific tuning and modest training data. This makes MaltParser a practical way to build parsers for languages with limited annotated resources.
Key points
-
Two parsing algorithms are included, each with two modes:
- Nivre's algorithm runs in linear time, handles projective structures only, and can be run arc-eager or arc-standard.
- Covington's algorithm runs in quadratic time and has a projective mode and a non-projective (acyclic) mode.
-
The arc-eager variant of Nivre's algorithm gave the best accuracy on every language and data set tested so far.
-
Two learning back-ends are supported:
- memory-based learning (k-nearest neighbour) via TiMBL;
- support vector machines via LIBSVM.
All results published for the system so far use the memory-based learner.
-
Each feature draws on one of three token attributes: the lexical form (LEX), the POS tag (POS), or the dependency label (DEP). Tokens are located relative to STACK, INPUT or CONTEXT, with further navigation via head, leftmost/rightmost child and left/right sibling functions. A baseline feature set is informally called "model 7."
-
Input uses the Malt-TAB format: one token per line with form, POS tag, head and relation, and blank lines between sentences. Output can be Malt-TAB, Malt-XML or TIGER-XML.
Interesting ideas
- I1. A parser built like a compiler. Treating the treebank the way a classic parser-generator treats a grammar turns "build a parser for language X" into a routine training run. This is attractive wherever new treebanks keep appearing, for example small UD treebanks.
- I2. Separate algorithm, features and learner. Keeping the three components decoupled lets each be varied and optimized without touching the others. The same architecture suits any transition-based system, such as tagging or chunking pipelines, where you want controlled ablation experiments.
- I3. Features as data, not code. Each feature is written as an address path: base structure, then position in the stack or list, then linear shift, then steps up to heads, then steps to children and siblings. This makes feature engineering declarative, reproducible and easy to share as a config file. Undefined addresses simply get a null value instead of causing errors.
- I4. Suffixes instead of full words when data is scarce. For small datasets, the authors suggest dropping peripheral lexical and POS features, or replacing whole word forms with suffixes (about 6 characters often works well). This is a cheap way to fight sparsity, and it is likely helpful for morphologically rich languages.
- I5. A simple, line-based interchange format. A tab-separated token-per-line format with blank-line sentence breaks keeps tooling simple. Optional XML outputs then cover integration with other corpus tools.
Cited by
- Evaluation of Dependency Parsers on Unbounded Dependencies
- Parsing Arabic Dialects Revisited: New Benchmarks, Models, and Insights
- Generating High Quality Proposition Banks for Multilingual Semantic Role Labeling
- Universal dependencies for Scottish Gaelic: syntax
- An Empirical Comparison of Parsing Methods for Stanford Dependencies
- Exploring Difficulties in Parsing Imperatives and Questions
- I3rab: A New Arabic Dependency Treebank Based on Arabic Grammatical Theory
- Hebrew Dependency Parsing: Initial Results
- Camel Treebank: An Open Multi-genre Arabic Dependency Treebank
- Multi-Source Transfer of Delexicalized Dependency Parsers
- A Fast and Accurate Dependency Parser using Neural Networks
- Labeled Pseudo-Projective Dependency Parsing with Support Vector Machines
- Exploring Compositional Architectures and Word Vector Representations for Prepositional Phrase Attachment
- Universal Dependencies for Arabic
- Dependency Parsing for Spoken Dialog Systems
- Nucleus Composition in Transition-based Dependency Parsing
- Boosting Transition-based AMR Parsing with Refined Actions and Auxiliary Analyzers
Cite
@inproceedings{nivre2006maltparser,
title = {{MaltParser: A Data-Driven Parser-Generator for Dependency Parsing}},
author = {Nivre, Joakim and Hall, Johan and Nilsson, Jens},
booktitle = {Proceedings of the Fifth International Conference on Language Resources and Evaluation (LREC'06)},
year = {2006},
doi = {10.63317/2c4iw9v6wxqe},
url = {https://doi.org/10.63317/2c4iw9v6wxqe}
}References
- E. Black, F. Jelinek, J. Lafferty, D. Magerman, R. Mercer, and S. Roukos. 1992. Towards history-based grammars: Using richer models for probabilistic parsing. In Proceedings of the 5th DARPA Speech and Natural Language Workshop, pages 31–37. find
- Chih-Chung Chang and Chih-Jen Lin, 2001. LIBSVM: a library for support vector machines. Software available at http://www.csie.ntu.edu.tw/∼cjlin/libsvm. ↗
- Michael Collins. 1999. Head-Driven Statistical Models for Natural Language Parsing. Ph.D. thesis, University of Pennsylvania. find
- Michael A. Covington. 2001. A fundamental algorithm for dependency parsing. In Proceedings of the 39th Annual ACM Southeast Conference, pages 95–102. find
- Walter Daelemans and Antal Van den Bosch. 2005. Memory-Based Language Processing. Cambridge University Press. find
- David M. Magerman. 1995. Statistical decision-tree models for parsing. In Proceedings of the 33rd Annual Meeting of the Association for Computational Linguistics (ACL), pages 276–283. find
- Joakim Nivre and Johan Hall. 2005. MaltParser: A language-independent system for data-driven dependency parsing. In Proceedings of the Fourth Workshop on Treebanks and Linguistic Theories (TLT). find
- Joakim Nivre, Johan Hall, and Jens Nilsson. 2004. Memory-based dependency parsing. In Hwee Tou Ng and Ellen Riloff, editors, Proceedings of the 8th Conference on Computational Natural Language Learning (CoNLL), pages 49–56. find our card
- Joakim Nivre. 2003. An efficient algorithm for projective dependency parsing. In Gertjan Van Noord, editor, Proceedings of the 8th International Workshop on Parsing Technologies (IWPT), pages 149–160. find our card
- Joakim Nivre. 2004. Incrementality in deterministic dependency parsing. In Frank Keller, Stephen Clark, Matthew Crocker, and Mark Steedman, editors, Proceedings of the Workshop on Incremental Parsing: Bringing Engineering and Cognition Together (ACL), pages 50– 57. find our card
- Joakim Nivre. 2005. Inductive Dependency Parsing of Natural Language Text. Ph.D. thesis, Växjö University. find
- Adwait Ratnaparkhi. 1997. A linear observed time statistical parser based on maximum entropy models. In Proceedings of the Second Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 1– 10. find
- Hiroyasu Yamada and Yuji Matsumoto. 2003. Statistical dependency analysis with support vector machines. In Gertjan Van Noord, editor, Proceedings of the 8th International Workshop on Parsing Technologies (IWPT), pages 195–206. find our card
This page in Markdown → https://md.research.elamur.ai/free/en/papers/nivre-2006-maltparser-data-driven-parser-generator/