Full reference implementation of the entry that won the ALTA2012 Shared Task.