The error is caused by a special single quotation mark (’) in the code. The error message is as follows:
pyo3_runtime.PanicException: called `Option::unwrap()` on a `None` value
To reproduce the issue, you can run the following code:
import jellyfish
str1 = "i’m going home"
str2 = "i go home"
print(jellyfish.match_rating_comparison(str1, str2))
Resolution:
Ensure that the library correctly handles character encoding and escaping to support a wide range of characters and special symbols, including but not limited to the special single quotation mark (’). The library should process these characters without causing exceptions.
The error is caused by a special single quotation mark (
’
) in the code. The error message is as follows:To reproduce the issue, you can run the following code:
Resolution:
Ensure that the library correctly handles character encoding and escaping to support a wide range of characters and special symbols, including but not limited to the special single quotation mark (
’
). The library should process these characters without causing exceptions.