Skip to content

Commit 88e0be5

Browse files
committed
add travis build
1 parent 0a6d5be commit 88e0be5

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
language: node_js
2+
3+
node_js:
4+
- stable
5+
6+
install:
7+
- npm install
8+
9+
script:
10+
- npm test

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Spam Classifier with SVM in JavaScript
22

3+
[![Build Status](https://travis-ci.org/javascript-machine-learning/svm-spam-classifier-javascript.svg?branch=master)](https://travis-ci.org/javascript-machine-learning/svm-spam-classifier-javascript)
4+
35
This example project demonstrates how [support vector machine (SVM)](https://en.wikipedia.org/wiki/Support_vector_machine) may be used to solve a classification problem (spam filter) in JavaScript. The [SMS Spam Collection Dataset from kaggle](https://www.kaggle.com/uciml/sms-spam-collection-dataset/data) is used for the purpose of training and testing the algorithm. Before training the algorithm, the data set is prepared with common practices to finally extract a feature vector for each SMS. Furthermore, [svm.js](https://github.com/karpathy/svmjs) is used for a ready to go SVM implementation.
46

57
As alternative, uncomment the code to use [Naive Bayes classifier](https://en.wikipedia.org/wiki/Naive_Bayes_classifier) instead of SVM from the [natural](https://github.com/NaturalNode/natural) library.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7-
"start": "nodemon src/index.js --exec babel-node --presets es2015,stage-2"
7+
"start": "nodemon src/index.js --exec babel-node --presets es2015,stage-2",
8+
"test": "echo \"No test specified\" && exit 0"
89
},
910
"keywords": [],
1011
"author": "",

0 commit comments

Comments
 (0)