unique-ngram
v1.0.1
Published
This is unique ngram to prevent repeated array element to reduce data size less size means more performance
Downloads
1
Maintainers
Readme
unique-ngram
This is unique ngram to prevent repeated array element to reduce data size less size means more performance
Any query
contact me on Linkedin kundan kumar .
Installation
Use the package manager unique-ngram to install.
npm i unique-ngram
Example
const {UniqueNGram}=require('unique-ngram');
const object={
text:'laptop under 5000K',
minSize:2,
prefix:true
}
UniqueNGram(object.text,object.minSize,object.prefix)
Or
UniqueNGram('text',2,true)
And the result u will get
[
'la', 'lap',
'lapt', 'lapto',
'laptop', 'un',
'und', 'unde',
'under', '50',
'500', '5000',
'5000k', 'laptop under 5000k'
]