A similar idea has been previously used in treating partially labeled data (Kim et al., 2015).
given a sentence x we define a constrained lattice Y(x), where at each position t the allowed label types Y(x t ) are: where η is the confidence threshold, y t is the prediction of posterior decoding and p(y t |x; θ) is its CRF token marginal.