Skip to main content
QUICK REVIEW

[Paper Review] Yara Parser: A Fast and Accurate Dependency Parser

Mohammad Sadegh Rasooli, Joel Tetreault|arXiv (Cornell University)|Mar 23, 2015
Natural Language Processing TechniquesComputer Science37 references71 citations
TL;DR

Yara Parser is a fast and accurate open-source dependency parser based on the arc-eager transition-based algorithm with beam search, achieving 93.32% unlabeled accuracy on the WSJ test set. It supports flexible configuration, including beam size and Brown clustering, and parses up to 4,000 sentences per second in greedy mode, making it suitable for both high-speed and high-accuracy NLP applications with a permissive Apache 2.0 license.

ABSTRACT

Dependency parsers are among the most crucial tools in natural language processing as they have many important applications in downstream tasks such as information retrieval, machine translation and knowledge acquisition. We introduce the Yara Parser, a fast and accurate open-source dependency parser based on the arc-eager algorithm and beam search. It achieves an unlabeled accuracy of 93.32 on the standard WSJ test set which ranks it among the top dependency parsers. At its fastest, Yara can parse about 4000 sentences per second when in greedy mode (1 beam). When optimizing for accuracy (using 64 beams and Brown cluster features), Yara can parse 45 sentences per second. The parser can be trained on any syntactic dependency treebank and different options are provided in order to make it more flexible and tunable for specific tasks. It is released with the Apache version 2.0 license and can be used for both commercial and academic purposes. The parser can be found at https://github.com/yahoo/YaraParser.

Motivation & Objective

  • To develop a high-performance dependency parser that balances speed and accuracy for practical NLP applications.
  • To enable efficient parsing of syntactic dependencies in both projective and non-projective languages using a flexible, extensible architecture.
  • To provide a tool that supports both commercial and academic use through an open-source, permissive Apache 2.0 license.
  • To integrate advanced features such as beam search, Brown clustering, and dynamic oracles for improved parsing accuracy.
  • To support training and inference on any dependency treebank with customizable feature sets and configuration options.

Proposed method

  • Employs an arc-eager transition-based parsing algorithm that incrementally builds dependency trees through a sequence of actions (shift, left-arc, right-arc).
  • Uses beam search with configurable beam width (default 64) to explore multiple parsing paths and improve accuracy at the cost of speed.
  • Applies online learning with stochastic gradient descent to update model weights incrementally during training.
  • Supports dynamic and static oracles to guide the learning process based on gold-standard transitions.
  • Integrates Brown cluster features (up to 4096 clusters) to improve generalization and capture morphological and syntactic patterns.
  • Allows configuration via command-line or API with options for case sensitivity, feature set (basic or extended), and unlabeled/labeled parsing.

Experimental results

Research questions

  • RQ1Can a transition-based dependency parser achieve state-of-the-art accuracy while maintaining high parsing speed?
  • RQ2How does beam search width affect the trade-off between parsing accuracy and throughput in a transition-based parser?
  • RQ3To what extent can Brown clustering features improve parsing accuracy in a transition-based system?
  • RQ4How well does the parser generalize to non-projective languages, such as Persian, despite being trained on projective trees?
  • RQ5Can the parser be effectively tuned for specific downstream NLP tasks through configurable features and training options?

Key findings

  • Yara Parser achieves 93.32% unlabeled accuracy (UAS) and 92.32% labeled accuracy (LAS) on the standard WSJ test set, ranking among the top dependency parsers.
  • In greedy mode (beam size 1), Yara parses approximately 4,000 sentences per second, demonstrating high throughput.
  • With 64 beams and Brown cluster features, the parser maintains 93.42% UAS on the development set while parsing at 45 sentences per second.
  • The performance gain from increasing beam size from 1 to 64 is significant, but diminishing beyond beam size 8, suggesting a practical trade-off at beam size 8 for speed-accuracy balance.
  • On the Persian dependency treebank (PerDT), Yara achieves 89.97% unlabeled accuracy, with a 1.35% gap compared to the non-projective Mate parser (v3.6.1), which is reasonable given that 22% of the trees are non-projective.
  • The parser's performance is robust across configurations, with labeled accuracy improving from 85.77% (without clusters) to 86.32% (with clusters), demonstrating the value of feature engineering.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.