{"action":"created","issue":{"url":"https://api.github.com/repos/nemo/natural-synaptic/issues/1","labels_url":"https://api.github.com/repos/nemo/natural-synaptic/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/nemo/natural-synaptic/issues/1/comments","events_url":"https://api.github.com/repos/nemo/natural-synaptic/issues/1/events","html_url":"https://github.com/nemo/natural-synaptic/issues/1","id":130029373,"number":1,"title":"SyntaxError: Unexpected reserved word","user":{"login":"bvanrijn","id":11941174,"avatar_url":"https://avatars.githubusercontent.com/u/11941174?v=3","gravatar_id":"","url":"https://api.github.com/users/bvanrijn","html_url":"https://github.com/bvanrijn","followers_url":"https://api.github.com/users/bvanrijn/followers","following_url":"https://api.github.com/users/bvanrijn/following{/other_user}","gists_url":"https://api.github.com/users/bvanrijn/gists{/gist_id}","starred_url":"https://api.github.com/users/bvanrijn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvanrijn/subscriptions","organizations_url":"https://api.github.com/users/bvanrijn/orgs","repos_url":"https://api.github.com/users/bvanrijn/repos","events_url":"https://api.github.com/users/bvanrijn/events{/privacy}","received_events_url":"https://api.github.com/users/bvanrijn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-30T19:51:15Z","updated_at":"2016-01-30T19:56:39Z","closed_at":null,"body":"I get an error when I try to run the [the first example](https://www.npmjs.com/package/natural-synaptic#training-and-classifying):\r\n\r\n```\r\nbarend@barend-eos:~/neural$ node index.js \r\n\r\n/home/barend/neural/node_modules/natural-synaptic/lib/index.js:10\r\nclass NaturalSynaptic extends ClassifierBase {\r\n^^^^^\r\nSyntaxError: Unexpected reserved word\r\n    at Module._compile (module.js:439:25)\r\n    at Object.Module._extensions..js (module.js:474:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:312:12)\r\n    at Module.require (module.js:364:17)\r\n    at require (module.js:380:17)\r\n    at Object.<anonymous> (/home/barend/neural/index.js:1:63)\r\n    at Module._compile (module.js:456:26)\r\n    at Object.Module._extensions..js (module.js:474:10)\r\n    at Module.load (module.js:356:32)\r\n```\r\nThe contents of `index.js`:\r\n```\r\nrequire('natural-synaptic');\r\nvar classifier = new NaturalSynaptic();\r\n \r\nclassifier.addDocument('my unit-tests failed.', 'software');\r\nclassifier.addDocument('tried the program, but it was buggy.', 'software');\r\nclassifier.addDocument('tomorrow we will do standup.', 'meeting');\r\nclassifier.addDocument('the drive has a 2TB capacity.', 'hardware');\r\nclassifier.addDocument('i need a new power supply.', 'hardware');\r\nclassifier.addDocument('can you play some new music?', 'music');\r\n \r\nclassifier.train();\r\n \r\nconsole.log(classifier.classify('did the tests pass?')); // -> software \r\nconsole.log(classifier.classify('did you buy a new drive?')); // -> hardware \r\nconsole.log(classifier.classify('What is the capacity?')); // -> hardware \r\nconsole.log(classifier.classify('Lets meet tomorrow?')); // -> meeting \r\nconsole.log(classifier.classify('Can you play some stuff?')); // -> music \r\n```\r\nCould you help me, please?"},"comment":{"url":"https://api.github.com/repos/nemo/natural-synaptic/issues/comments/177286682","html_url":"https://github.com/nemo/natural-synaptic/issues/1#issuecomment-177286682","issue_url":"https://api.github.com/repos/nemo/natural-synaptic/issues/1","id":177286682,"user":{"login":"bvanrijn","id":11941174,"avatar_url":"https://avatars.githubusercontent.com/u/11941174?v=3","gravatar_id":"","url":"https://api.github.com/users/bvanrijn","html_url":"https://github.com/bvanrijn","followers_url":"https://api.github.com/users/bvanrijn/followers","following_url":"https://api.github.com/users/bvanrijn/following{/other_user}","gists_url":"https://api.github.com/users/bvanrijn/gists{/gist_id}","starred_url":"https://api.github.com/users/bvanrijn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvanrijn/subscriptions","organizations_url":"https://api.github.com/users/bvanrijn/orgs","repos_url":"https://api.github.com/users/bvanrijn/repos","events_url":"https://api.github.com/users/bvanrijn/events{/privacy}","received_events_url":"https://api.github.com/users/bvanrijn/received_events","type":"User","site_admin":false},"created_at":"2016-01-30T19:56:39Z","updated_at":"2016-01-30T19:56:39Z","body":"Thanks a lot! I think you can close this issue now."}}