Unexpected character in found when decoding object value

@ramhari7 Ah, this actually came up the other day in this thread using MySQL as well, and I was surprised that the MySQL database and/or peewee didn't raise an error here when the example was saved and truncated.

If you can use shorter text, that's always a plus. As I mentioned in the other thread, especially if you're doing NER, there's not really a benefit in annotating whole large documents because you're typically training models with much narrower context windows anyways. So working with shorter examples lets you collect more datapoints and makes the resulting annotations easier to work with in general.

(I still want to get to the bottom of the MySQL situation, though. If it doesn't do it by default, maybe we can add some logic that at least outputs a warning if a database length limit is hit.)

1 Like