From d9fe3a0794bfa595673f4e491656e8a68899b5df Mon Sep 17 00:00:00 2001 From: Spencer Kelly Date: Thu, 28 May 2015 18:20:35 -0400 Subject: [PATCH] push v1.1.0 --- bower.json | 2 +- client_side/nlp.js | 14 ++------------ package.json | 2 +- src/pos.js | 12 +----------- tests/unit_test.js | 1 - 5 files changed, 5 insertions(+), 26 deletions(-) diff --git a/bower.json b/bower.json index 03672ce7b..119ed014b 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "nlp_compromise", "main": "./client_side/nlp.js", - "version": "1.0.0", + "version": "1.1.0", "homepage": "https://github.com/spencermountain/nlp_compromise", "authors": [ "Spencer Kelly " diff --git a/client_side/nlp.js b/client_side/nlp.js index 41dd6d104..e760c9b22 100644 --- a/client_side/nlp.js +++ b/client_side/nlp.js @@ -1,4 +1,4 @@ -/*! nlp_compromise 1.0.0 by @spencermountain 2015-05-28 MIT */ +/*! nlp_compromise 1.1.0 by @spencermountain 2015-05-28 MIT */ var nlp = (function() { var verb_irregulars = (function() { var types = [ @@ -9183,7 +9183,7 @@ var pos = (function() { "where's":"where", "when's":"when", "why's":"why", - "how's":"how", + "how's":"how" } var before, after, fix; for (var i = 0; i < arr.length; i++) { @@ -9475,16 +9475,6 @@ var pos = (function() { // console.log(pos("it's gotten the best features").sentences[0].tokens[1].normalised=="has") //bug // console.log(pos("he's fun").sentences[0].tokens[1].normalised=="is") -// console.log(pos("she's walking").sentences[0].tokens[1].normalised=="is") -// console.log(pos("he's walked").sentences[0].tokens[1].normalised=="has") -// console.log(pos("it's got the best features").sentences[0].tokens[1].normalised=="has") -// console.log(pos("it's achieved each goal").sentences[0].tokens[1].normalised=="has") -// console.log(pos("where's waldo").sentences[0].tokens[1].normalised=="is") - -// console.log(pos("where's he going?").sentences[0].tokens[1].normalised=="is") -// console.log(pos("where's the pencil?").sentences[0].tokens[1].normalised=="is") -// console.log(pos("where's he disappeared to?").sentences[0].tokens[1].normalised=="has") -// console.log(pos("where's the pencil disappeared to?").sentences[0].tokens[1].normalised=="has") //just a wrapper for text -> entities diff --git a/package.json b/package.json index 32d633085..97335f988 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Spencer Kelly (http://spencermounta.in)", "name": "nlp_compromise", "description": "natural language processing in the browser", - "version": "1.0.0", + "version": "1.1.0", "repository": { "type": "git", "url": "git://github.com/spencermountain/nlp_compromise.git" diff --git a/src/pos.js b/src/pos.js index 8ddbc3dc7..85402b2eb 100644 --- a/src/pos.js +++ b/src/pos.js @@ -270,7 +270,7 @@ var pos = (function() { "where's":"where", "when's":"when", "why's":"why", - "how's":"how", + "how's":"how" } var before, after, fix; for (var i = 0; i < arr.length; i++) { @@ -562,14 +562,4 @@ var pos = (function() { // console.log(pos("it's gotten the best features").sentences[0].tokens[1].normalised=="has") //bug // console.log(pos("he's fun").sentences[0].tokens[1].normalised=="is") -// console.log(pos("she's walking").sentences[0].tokens[1].normalised=="is") -// console.log(pos("he's walked").sentences[0].tokens[1].normalised=="has") -// console.log(pos("it's got the best features").sentences[0].tokens[1].normalised=="has") -// console.log(pos("it's achieved each goal").sentences[0].tokens[1].normalised=="has") -// console.log(pos("where's waldo").sentences[0].tokens[1].normalised=="is") - -// console.log(pos("where's he going?").sentences[0].tokens[1].normalised=="is") -// console.log(pos("where's the pencil?").sentences[0].tokens[1].normalised=="is") -// console.log(pos("where's he disappeared to?").sentences[0].tokens[1].normalised=="has") -// console.log(pos("where's the pencil disappeared to?").sentences[0].tokens[1].normalised=="has") diff --git a/tests/unit_test.js b/tests/unit_test.js index 10c69581b..7ad2f922f 100644 --- a/tests/unit_test.js +++ b/tests/unit_test.js @@ -10,7 +10,6 @@ if (typeof module !== "undefined" && module.exports) { Object.prototype.dummy = function() {}; exports["ambiguous contractions"] = function(test) { - test.deepEqual(nlp.pos("he's fun").sentences[0].tokens[1].normalised,"is") test.deepEqual(nlp.pos("she's walking").sentences[0].tokens[1].normalised,"is") test.deepEqual(nlp.pos("he's walked").sentences[0].tokens[1].normalised,"has")