GSoC/GCI Archive
Google Code-in 2013 Apertium

Make the bison parse formatter output bracketed parses instead of parse trees

completed by: Dalimil Hájek

mentors: Mikel L. Forcada, Francis Tyers, Kirill Krylov

Edit format-parse.py [1] to optionally output bracketed parses instead of parse trees with GraphViz. Example of a bracketed parse:

 

[NP
  [Det a]
  [Nom [N flight]]]

 

Levels should be represented by indentation.

 

1. https://svn.code.sf.net/p/apertium/svn/branches/transfer4/format-parse.py