We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c855f2e commit 083c926Copy full SHA for 083c926
speech-commands/README.md
@@ -254,7 +254,7 @@ await transferRecognizer.listen(result => {
254
const words = transferRecognizer.wordLabels();
255
// `result.scores` contains the scores for the new words, not the original
256
// words.
257
- for (let i = 0; i < words; ++i) {
+ for (let i = 0; i < words.length; ++i) {
258
console.log(`score for word '${words[i]}' = ${result.scores[i]}`);
259
}
260
}, {probabilityThreshold: 0.75});
0 commit comments