* Encodes a string based on the loaded tokenizer if the withTokenizer:true * @param {*} textString * @param {*} callback
(textString, callback)
| 55 | * @param {*} callback |
| 56 | */ |
| 57 | encode(textString, callback){ |
| 58 | return callCallback(this.encodeInternal(textString), callback); |
| 59 | } |
| 60 | |
| 61 | async encodeInternal(textString){ |
| 62 | if(this.config.withTokenizer === true){ |
no test coverage detected