ml-classify-text-js
ml-classify-text-js copied to clipboard
Getting error, when the train data contains word 'constructor'
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