Skip to content

Error parsing .*\.\w\..* #131

Open
Open
@alec-hoyland

Description

@alec-hoyland

Describe the bug
A clear and concise description of what the bug is.

Error parsing the pattern .*\.\w\..* such as in the email:

alec.j.hoyland@gmail.com

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("alec.j.hoyland@gmail.com")
['alec.j.', 'hoyland@gmail.com']
>>> 

Expected behavior
A clear and concise description of what you expected to happen.
Expected output - list of expected sentences

["alec.j.hoyland@gmail.com"]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions