We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Arabic sentence split on the Arabic comma.
To Reproduce Steps to reproduce the behavior:
import pysbd text = "هذه تجربة، للغة العربية" seg = pysbd.Segmenter(language="ar", clean=True) >>> print(seg.segment(text))
Output: ['هذه تجربة،', 'للغة العربية']
['هذه تجربة،', 'للغة العربية']
Expected behavior The text should not be split on the Arabic comma. Expected output: ['هذه تجربة، للغة العربية']
['هذه تجربة، للغة العربية']
Additional context I locally fixed it by modifying the file: pysbd/lang/arabic.py, deleting ، from SENTENCE_BOUNDARY_REGEX.
pysbd/lang/arabic.py
،
SENTENCE_BOUNDARY_REGEX
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Arabic sentence split on the Arabic comma.
To Reproduce
Steps to reproduce the behavior:
Output:
['هذه تجربة،', 'للغة العربية']
Expected behavior
The text should not be split on the Arabic comma.
Expected output:
['هذه تجربة، للغة العربية']
Additional context
I locally fixed it by modifying the file:
pysbd/lang/arabic.py
, deleting،
fromSENTENCE_BOUNDARY_REGEX
.The text was updated successfully, but these errors were encountered: