After having described the type of scoring functions we are interested in, we now turn our attention to the learning problem.
given a training set D = { x y } of pairs of inputs x and output sequences y we need to learn the parameters {W } and {Z}.