We implement our parser by defining P ( |q, T ; θ), from which the library automatically implements both inference and training.
the beam search and the corresponding backpropagation bookkeeping to implement the objective in Section 3.4 are both automatically handled by the library.