Hi @PZ2004
There is something wrong with the implementation because it was not intended that way.
The most obvious places to look for mistakes is UNQ_C6 next_symbol() and UNQ_C7 sampling_decode functions. In particular, how do you check for “end of sequence” token in sampling_decode() or how do you choose the next symbol in next_symbol() function (you can find some hints here).
Cheers