Skip to content

Commit

Permalink
push v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
spencermountain committed May 28, 2015
1 parent 3a8e458 commit d9fe3a0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 26 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"
Expand Down
14 changes: 2 additions & 12 deletions client_side/nlp.js
Original file line number Diff line number Diff line change
@@ -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 = [
Expand Down Expand Up @@ -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++) {
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Spencer Kelly <[email protected]> (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"
Expand Down
12 changes: 1 addition & 11 deletions src/pos.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down Expand Up @@ -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")

1 change: 0 additions & 1 deletion tests/unit_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit d9fe3a0

Please sign in to comment.