Skip to content

Instantly share code, notes, and snippets.

@krusty
Created July 11, 2012 18:00
Show Gist options
  • Save krusty/3092051 to your computer and use it in GitHub Desktop.
Save krusty/3092051 to your computer and use it in GitHub Desktop.
lucas@(none):~/proyects/ccapps/src/trainer$ ./run.sh form_training_set2.csv result.json
Parsing CSV
> Opening form_training_set2.csv
>> Parsed http://www.windowworld.com/contact.php TRUE
/home/lucas/proyects/ccapps/src/trainer/csv_parser.js:25
fs.appendFile(tmp_file, params);
^
TypeError: Object #<Object> has no method 'appendFile'
at [object Object].<anonymous> (/home/lucas/proyects/ccapps/src/trainer/csv_parser.js:25:6)
at [object Object].emit (events.js:67:17)
at [object Object]._addRecord (/home/lucas/proyects/ccapps/src/trainer/node_modules/ya-csv/lib/ya-csv.js:225:14)
at [object Object].parse (/home/lucas/proyects/ccapps/src/trainer/node_modules/ya-csv/lib/ya-csv.js:160:26)
at [object Object].<anonymous> (native)
at [object Object].emit (events.js:67:17)
at [object Object]._emitData (fs.js:1168:29)
at afterRead (fs.js:1152:10)
at Object.wrapper [as oncomplete] (fs.js:264:17)
Training Classifier
/home/lucas/proyects/ccapps/src/trainer/trainer.js:22
fs.appendFile(result_file, JSON.stringify(bayes.toJSON(), null, 2));
^
TypeError: Object #<Object> has no method 'appendFile'
at [object Object].<anonymous> (/home/lucas/proyects/ccapps/src/trainer/trainer.js:22:6)
at [object Object].emit (events.js:64:17)
at [object Object].end (/home/lucas/proyects/ccapps/src/trainer/node_modules/ya-csv/lib/ya-csv.js:191:14)
at [object Object].<anonymous> (native)
at [object Object].emit (events.js:64:17)
at afterRead (fs.js:1132:12)
at Object.wrapper [as oncomplete] (fs.js:264:17)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment