Computational Linguistics (Jan 2022)

Improved <i>N</i>-Best Extraction with an Evaluation on Language Data

  • Johanna Björklund,
  • Frank Drewes,
  • Anna Jonsson

DOI
https://doi.org/10.1162/coli_a_00427
Journal volume & issue
Vol. 48, no. 1
pp. 119 – 153

Abstract

Read online

AbstractWe show that a previously proposed algorithm for the N-best trees problem can be made more efficient by changing how it arranges and explores the search space. Given an integer N and a weighted tree automaton (wta) M over the tropical semiring, the algorithm computes N trees of minimal weight with respect to M. Compared with the original algorithm, the modifications increase the laziness of the evaluation strategy, which makes the new algorithm asymptotically more efficient than its predecessor. The algorithm is implemented in the software Betty, and compared to the state-of-the-art algorithm for extracting the N best runs, implemented in the software toolkit Tiburon. The data sets used in the experiments are wtas resulting from real-world natural language processing tasks, as well as artificially created wtas with varying degrees of nondeterminism. We find that Betty outperforms Tiburon on all tested data sets with respect to running time, while Tiburon seems to be the more memory-efficient choice.