getBestLabelSequence(...) for inference added