I'm trying to separate dots in German sentences from words but not from digits, e.g.:
"Der 17. Januar war ein toller Tag. Heute ist es auch schön."
should end in
"Der 17. Januar war ein toller Tag . Heute ist es auch schön . "
But I can't find a solution for this. I tried to use the re
module in Python without success.
line = re.sub(r'[^0-9]+\.', ' . ', line)
would just end in
"Der 17. Januar war ein toller Ta . Heute ist es auch schö . "