A simple example shift-reduce dependency parser, ported from perl code by Kenji Sagae