DanielRapp / twss.js

A node.js "that's what she said" classifier
MIT License
694 stars 34 forks source link

k-NN doesn't work at all #5

Closed DanielRapp closed 12 years ago

DanielRapp commented 12 years ago

It just returns this error:

ReferenceError: trainingPrompt is not defined
    at Object.isTwss (/Users/Daniel/twss.js/lib/classifier/knn.js:35:7)
    at Object.is (/Users/Daniel/twss.js/lib/twss.js:49:33)
    at [object Context]:1:3
    at Interface.<anonymous> (repl.js:171:22)
    at Interface.emit (events.js:64:17)
    at Interface._onLine (readline.js:153:10)
    at Interface._line (readline.js:408:8)
    at Interface._ttyWrite (readline.js:585:14)
    at ReadStream.<anonymous> (readline.js:73:12)
    at ReadStream.emit (events.js:81:20)
Nanne commented 12 years ago

Two lines above it, at 33 you have trainingPromt, missing the last p.

DanielRapp commented 12 years ago

Thank you!