Closed ulf1 closed 2 years ago
sentence = 'Die Schülerin [MASK] ein Aufsatz, der sehr [MASK] war.' augmented = re.sub('\s+', ' ', re.sub('[.?!;:,]+', ' ', sentence)).strip() augmented