Comparing version 5.1.11 to 5.1.12
@@ -77,2 +77,3 @@ /* | ||
this.vocabulary = Object.assign({}, languageFiles[type][language][0]) | ||
Object.setPrototypeOf(this.vocabulary, null) | ||
if (type === 'senticon') { | ||
@@ -97,3 +98,3 @@ Object.keys(this.vocabulary).forEach(word => { | ||
if (stemmer) { | ||
const vocaStemmed = {} | ||
const vocaStemmed = Object.create(null) | ||
for (const token in this.vocabulary) { | ||
@@ -100,0 +101,0 @@ vocaStemmed[stemmer.stem(token)] = this.vocabulary[token] |
{ | ||
"name": "natural", | ||
"description": "General natural language (tokenizing, stemming (English, Russian, Spanish), part-of-speech tagging, sentiment analysis, classification, inflection, phonetics, tfidf, WordNet, jaro-winkler, Levenshtein distance, Dice's Coefficient) facilities for node.", | ||
"version": "5.1.11", | ||
"version": "5.1.12", | ||
"homepage": "https://github.com/NaturalNode/natural", | ||
@@ -6,0 +6,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
12853538
768659