# How to make tokenizer add the spaces correctly when decoding a sequence when set add\_prefix\_space=False

**URL:** <https://discuss.huggingface.co/t/how-to-make-tokenizer-add-the-spaces-correctly-when-decoding-a-sequence-when-set-add-prefix-space-false/57930>\
**Category:** 🤗Tokenizers\
**Created:** [October 9, 2023, 4:05pm UTC](https://discuss.huggingface.co/t/how-to-make-tokenizer-add-the-spaces-correctly-when-decoding-a-sequence-when-set-add-prefix-space-false/57930 "2023-10-09T16:05:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TurboPascal](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/turbopascal/32/24246_2.png) [@TurboPascal](https://discuss.huggingface.co/u/TurboPascal)\
**Post date:** [October 9, 2023, 4:05pm UTC](https://discuss.huggingface.co/t/how-to-make-tokenizer-add-the-spaces-correctly-when-decoding-a-sequence-when-set-add-prefix-space-false/57930/1 "2023-10-09T16:05:22Z")

</div>

How to make tokenizer add the spaces correctly when decoding a sequence when set add\_prefix\_space=False
