Skip to content

Commit

Permalink
Merge pull request #764 from spencermountain/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
spencermountain committed Jun 11, 2020
2 parents 79d3ca0 + 634f1f0 commit 63fad56
Show file tree
Hide file tree
Showing 33 changed files with 1,725 additions and 833 deletions.
2 changes: 1 addition & 1 deletion builds/compromise-tokenize.js

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions builds/compromise.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* compromise 13.3.0 MIT */
/* compromise 13.3.1 MIT */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
Expand Down Expand Up @@ -3132,9 +3132,11 @@

if (!text || typeof text !== 'string' || hasSomething.test(text) === false) {
return sentences;
} // Start somewhere:
} // cleanup unicode-spaces


text = text.replace('\xa0', ' '); // Start somewhere:

var splits = naiive_split(text); // Filter-out the crap ones

for (var i = 0; i < splits.length; i++) {
Expand Down Expand Up @@ -3429,7 +3431,7 @@

var fromJSON_1 = fromJSON;

var _version = '13.3.0';
var _version = '13.3.1';

var _data = {
"Comparative": "true¦better",
Expand Down
2 changes: 1 addition & 1 deletion builds/compromise.min.js

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions builds/compromise.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* compromise 13.3.0 MIT */
/* compromise 13.3.1 MIT */
function _typeof(obj) {
"@babel/helpers - typeof";

Expand Down Expand Up @@ -3126,9 +3126,11 @@ var splitSentences = function splitSentences(text, world) {

if (!text || typeof text !== 'string' || hasSomething.test(text) === false) {
return sentences;
} // Start somewhere:
} // cleanup unicode-spaces


text = text.replace('\xa0', ' '); // Start somewhere:

var splits = naiive_split(text); // Filter-out the crap ones

for (var i = 0; i < splits.length; i++) {
Expand Down Expand Up @@ -3423,7 +3425,7 @@ var fromJSON = function fromJSON(json, world) {

var fromJSON_1 = fromJSON;

var _version = '13.3.0';
var _version = '13.3.1';

var _data = {
"Comparative": "true¦better",
Expand Down
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ While all _Major_ releases should be reviewed, our only two _large_ releases are

-move (some) contractions into tokenizer?

#### 13.3.1

-support unicode spaces for #759

- major improvements to `compromise-plugin-dates` (1.0.0)

#### 13.3.0

- bugfixes (conjugation and tagging) 752, 737, 725, 751, 743 748, 755, 758, 706, 761
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 <spencermountain@gmail.com> (http://spencermounta.in)",
"name": "compromise",
"description": "modest natural language processing",
"version": "13.3.0",
"version": "13.3.1",
"main": "./builds/compromise.js",
"unpkg": "./builds/compromise.min.js",
"module": "./builds/compromise.mjs",
Expand Down
3 changes: 2 additions & 1 deletion plugins/dates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ doc.dates().json()
```js
const context = {
timezone: 'Canada/Eastern', //the default timezone is 'ETC/UTC'
today: '2020-02-20', //the reference day (for testing)
today: '2020-02-20', //the implicit, or reference day/year
casual_duration: { weeks: 2 }, // the implied duration to use for 'after june 2nd'
}

nlp('in two days')
Expand Down
740 changes: 504 additions & 236 deletions plugins/dates/builds/compromise-dates.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugins/dates/builds/compromise-dates.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugins/dates/builds/compromise-dates.min.js

Large diffs are not rendered by default.

740 changes: 504 additions & 236 deletions plugins/dates/builds/compromise-dates.mjs

Large diffs are not rendered by default.

Loading

0 comments on commit 63fad56

Please sign in to comment.