ml-classify-text-js icon indicating copy to clipboard operation
ml-classify-text-js copied to clipboard

Getting error, when the train data contains word 'constructor'

Open martynassimkevicius opened this issue 1 year ago • 0 comments

tokens is an object with key of words from input, so if one of words is constructor, then check fails.

https://github.com/andreekeberg/ml-classify-text-js/blob/d8b18d2c17a6d03170bb65848d26ba6725bd4dfe/src/classifier.js#L223

martynassimkevicius avatar Jul 15 '22 22:07 martynassimkevicius