Closed se-m closed 8 years ago
I figured out.
var variants = decoder.nbest();
var it = variants.iter();
var variant = it.next();
while (variant){
console.log(variant);
variant = it.next();
}
To restrict to certain number of variants something like this:
it = decoder.nbest().iter()
for (i = 0; i < 10 && ((hyp = it.next()) != null); i++) {
console.log(hyp.hypstr)
}
Hello. Please show small example how iterate it.