nipunsadvilkar/pySBD

English segmenter fails if no space between 2 sentences

GokulNC opened this issue · 1 comments

>>> from pysbd import Segmenter
>>> s=Segmenter(language="en", clean=False)
>>> s.segment("Hello brother.My name is Khan.")
['Hello brother.My name is Khan.']
>>> s.segment("Hello brother. My name is Khan.")
['Hello brother. ', 'My name is Khan.']

use with clean=True...
It worked for mentioned use case...