MiniSBD is a free and open-source Python library designed for fast and efficient sentence boundary detection (SBD). It provides a lightweight solution for splitting text into sentences, supporting various punctuation and language patterns. The current version is 0.9.5, with releases occurring periodically, often driven by improvements in tokenization or punctuation handling.
pip install minisbdVerified import paths — ran on the pinned version, not inferred.
Initialize the SBD class once, then use its `segment` method to split a string into a list of sentences.
Always initialize `sbd = SBD()` outside of performance-critical loops or functions that will be called repeatedly. Pass the initialized object around if necessary.
For highly critical applications or non-standard text, evaluate its performance on a representative dataset. Consider pre-processing text or post-processing results if specific patterns cause issues. For deeply linguistic tasks, more complex NLP libraries might be required.
No dependency data recorded yet.