-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed bluebird, request packages, added pr from koorchik/node-myste…
- Loading branch information
Showing
8 changed files
with
111 additions
and
440 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,5 +23,6 @@ module.exports = { | |
ecmaVersion: 'latest', | ||
}, | ||
rules: { | ||
'no-console': 'off', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
'use strict'; | ||
const MyStem = require('../lib/MyStem'); | ||
|
||
var MyStem = require('../lib/MyStem'); | ||
var Promise = require('bluebird'); | ||
|
||
var myStem = new MyStem(); | ||
const myStem = new MyStem(); | ||
|
||
myStem.start(); | ||
|
||
var words = ['карусели', 'немцы', 'печалька']; | ||
const words = ['карусели', 'немцы', 'печалька']; | ||
|
||
var promises = words.map(function(word) { | ||
return myStem.lemmatize(word) | ||
}); | ||
const promises = words.map((word) => myStem.lemmatize(word)); | ||
|
||
Promise.all(promises).then(function(lemmas) { | ||
Promise.all(promises) | ||
.then((lemmas) => { | ||
console.log(lemmas); | ||
myStem.stop(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.