@nlpjs/lang-en-min
Advanced tools
Comparing version 4.21.1 to 4.22.0
{ | ||
"name": "@nlpjs/lang-en-min", | ||
"version": "4.21.1", | ||
"version": "4.22.0", | ||
"description": "Core", | ||
@@ -28,5 +28,5 @@ "author": { | ||
"dependencies": { | ||
"@nlpjs/core": "^4.21.1" | ||
"@nlpjs/core": "^4.22.0" | ||
}, | ||
"gitHead": "2efbb63222a8d8bcd4f70d41437b0fd8ebf7dcb5" | ||
"gitHead": "725dcf52c1b521e4575edb51917690ce051b9434" | ||
} |
@@ -25,2 +25,3 @@ /* | ||
const { Among, BaseStemmer } = require('@nlpjs/core'); | ||
const TokenizerEn = require('./tokenizer-en'); | ||
@@ -41,2 +42,14 @@ /** | ||
getTokenizer() { | ||
if (!this.tokenizer) { | ||
this.tokenizer = | ||
this.container.get(`tokenizer-${this.name.slice(-2)}`) || | ||
new TokenizerEn(); | ||
if (this.tokenizer.constructor.name === 'Tokenizer') { | ||
this.tokenizer = new TokenizerEn(); | ||
} | ||
} | ||
return this.tokenizer; | ||
} | ||
r_prelude() { | ||
@@ -43,0 +56,0 @@ let v_1; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55795
1859
Updated@nlpjs/core@^4.22.0