rapidfuzz.utils

default_process

rapidfuzz.utils.default_process(sentence)

This function preprocesses a string by:

  • removing all non alphanumeric characters

  • trimming whitespaces

  • converting all characters to lower case

Parameters:

sentence (str) – String to preprocess

Returns:

processed_string – processed string

Return type:

str