pySBD
pySBD copied to clipboard
Error parsing `.*\.\w\..*`
Describe the bug A clear and concise description of what the bug is.
Error parsing the pattern .*\.\w\..* such as in the email:
[email protected]
To Reproduce Steps to reproduce the behavior:
❯ uv run python
Python 3.12.8 (main, Feb 14 2025, 14:32:03) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pysbd
>>> pysbd.__version__
'0.3.4'
>>> seg = pysbd.Segmenter(language="en", clean=False)
>>> seg.segment("[email protected]")
['alec.j.', '[email protected]']
>>>
Expected behavior A clear and concise description of what you expected to happen. Expected output - list of expected sentences
["[email protected]"]
Additional context Add any other context about the problem here.