BERT-JS
BERT-JS copied to clipboard
encoding/decoding numbers from 129 to 255 is broken
Bert.decode(Bert.encode(129))
-127
Bert.decode(Bert.encode(255))
-1
Confirm, I've just run into it. I guess it's here, not sure how to fix it: https://github.com/rustyio/BERT-JS/blob/master/bert.js#L403