Hi, sorry if this is a duplicate but I couldnt find any answer to what I look for
How can I preserve spaces at the beginning of a new line , my text contains lines that begin in different positions within the line and I need to preserve the positions (for correctness)
Is there a way to preserve those sapces?
Thanks
Keren
Hi! Ultimately, this comes down to how the incoming texts and whitespace are tokenized: by default, spaCy splits on whitespace but preserves multiple whitespace characters as whitespace tokens. Prodigy itself doesn't really have an opinion on whitespace and will just render whatever it gets via the tokens.
A similar question came up in this thread recently and I shared some background and suggestions for custom whitespace tokens: