2.0.3 • Published 1 day 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 day ago
2.0.2
12 days ago
2.0.1
12 days ago
1.3.2
5 months ago
1.3.1
5 months ago
1.3.0
5 months ago
1.2.0
10 months ago
1.2.1
9 months ago
1.1.1
2 years ago
1.1.0
2 years ago
1.1.7
2 years ago
1.1.6
2 years ago
1.1.5
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago