if (tagSequenceModel != null) {
// find the n-gram order of the model.
int ord = SequenceScorer.findOrder(tagSequenceModel);
// load it into the SequenceScorer.
seqScorer = new SequenceScorer(ord, tagSequenceModel);
seqScorer.setSearchBeam(5);
seqScorer.setAlgorithm(alg);
}
} catch (IOException ex) {
Logger.getLogger(WordAndPOSDictionaryLabellingStrategy.class.getName()).log(Level.SEVERE, null, ex);