Skip to content

Commit

Permalink
add start
Browse files Browse the repository at this point in the history
  • Loading branch information
lilia-simeonova committed Nov 27, 2016
1 parent ece371d commit 343846b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ exports.jaccardSimilarity = function (sentence1, sentence2) {



var sentence1 = 'A directive is a class with directive metadata.';
var sentence2 = 'In TypeScript, apply the @Directive decorator to attach metadata to the class.';
var sentence1 = 'This is one example';
var sentence2 = "This is another example";

//console.log(exports.jaccardSimilarity(sentence1, sentence2));
console.log(exports.jaccardSimilarity(sentence1, sentence2));
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
"name": "jaccard-index",
"version": "1.0.0",
"description": "Implements the Jaccard algorithm for finding the similarity coefficient between sentences",
"main": "index.js",
"main": "app/index.js",
"scripts": {
"test": "./node_modules/.bin/mocha --reporter spec"
"test": "./node_modules/.bin/mocha --reporter spec",
"start": "node ./app/index.js"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 343846b

Please sign in to comment.