You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When cleannig text with numbers, if the number is connected to a word, it will not be removed.
For clean("A fr1ie45nd 23 is a sec6on7d self", no_numbers=True, replace_with_number="") the expected output is "a friend is a second self" but the output is "a fr1ie45nd is a sec6on7d self"
The text was updated successfully, but these errors were encountered:
If this is not intended, it is being caused by (?:^|(?<=[^\w,.])) and (?:$|(?=\b)) in NUMBERS_REGEX which limits the pattern so that it can only match words that contain only the pattern; therefore, if any letter is in the word, it will not find a match.
When cleannig text with numbers, if the number is connected to a word, it will not be removed.
For
clean("A fr1ie45nd 23 is a sec6on7d self", no_numbers=True, replace_with_number="")
the expected output is"a friend is a second self"
but the output is"a fr1ie45nd is a sec6on7d self"
The text was updated successfully, but these errors were encountered: