2.0.3 • Published 1 year ago
string-tokeniser v2.0.3
string-tokeniser
Install
npm i string-tokeniser
Usage
import { fit } from 'string-tokeniser'
console.log(fit(['hello world', 'how are you?']))
{
indexWord: { '1': 'hello', '2': 'world', '3': 'how', '4': 'are', '5': 'you' },
wordIndex: { hello: '1', world: '2', how: '3', are: '4', you: '5' },
wordCounts: { hello: 1, world: 1, how: 1, are: 1, you: 1 },
sequences: [ [ 1, 2 ], [ 3, 4, 5 ] ]
}
Licence
MIT
2.0.3
1 year ago
2.0.2
1 year ago
2.0.1
1 year ago
1.3.2
2 years ago
1.3.1
2 years ago
1.3.0
2 years ago
1.2.0
2 years ago
1.2.1
2 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.1.7
3 years ago
1.1.6
3 years ago
1.1.5
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago