Example Java decoder of a linear n-gram model trained with scikit-learn.