The Derivation semiring keeps track of a single path or derivation
that led to the known output. If there are more than one path it discards
in favor the lesser path (based on ord). The main purpose of this semiring
is to track derivations for ViterbiNBestDerivation. If you want to keep all paths,
use MultiDerivation.
Derivation takes a Monoid as an argument that describes how to build up paths or
more complicated structures.
|