-
Notifications
You must be signed in to change notification settings - Fork 54
Closed
Milestone
Description
Hi, thanks for writing this library, it's really useful!
I'm seeing a crash with particular emoji input on the latest version installed from PyPI, here's a testcase:
from lingua import Language, LanguageDetectorBuilder
langdetector = LanguageDetectorBuilder.from_all_languages().build()
langdetector.detect_multiple_languages_of('test π')
thread '<unnamed>' panicked at 'byte index 6 is not a char boundary; it is inside 'π' (bytes 5..9) of `test π`', src/lib.rs:436:27
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Traceback (most recent call last):
File "[...]/crash_repro.py", line 4, in <module>
langdetector.detect_multiple_languages_of('test π')
pyo3_runtime.PanicException: byte index 6 is not a char boundary; it is inside 'π' (bytes 5..9) of `test π`
Metadata
Metadata
Assignees
Labels
No labels