Adaptive tokenization