{"id":46334,"library":"sentence-splitter","title":"sentence-splitter","description":"Text to sentence splitter using heuristic algorithm by Philipp Koehn and Josh Schroeder. Current version 1.4, release cadence is low (no recent updates).","status":"active","version":"1.4","language":"python","source_language":"en","source_url":"https://github.com/berkmancenter/mediacloud-sentence-splitter","tags":["sentence-splitting","nlp","heuristic"],"install":[{"cmd":"pip install sentence-splitter","lang":"bash","label":"Install via pip"}],"dependencies":[],"imports":[{"note":"Direct import of function is the standard pattern.","wrong":"import sentence_splitter","symbol":"split_text_into_sentences","correct":"from sentence_splitter import split_text_into_sentences"},{"note":"","wrong":"","symbol":"SentenceSplitter"}],"quickstart":{"code":"from sentence_splitter import split_text_into_sentences\ntext = \"This is a sentence. Here is another one. And a third!\"\nsentences = split_text_into_sentences(text=text, language='en')\nprint(sentences)","lang":"python","description":"Basic usage: split text into sentences for English."},"warnings":[{"fix":"Always pass language='en' (or your target language) explicitly.","message":"The split_text_into_sentences function requires the 'language' argument; defaults to 'en' but always specify to avoid ambiguity.","severity":"gotcha","affected_versions":"all"},{"fix":"Preprocess text to handle known abbreviations or use a more robust library if high accuracy is needed.","message":"The library may not handle abbreviations or edge cases perfectly (e.g., 'Dr.' followed by a name).","severity":"gotcha","affected_versions":"all"},{"fix":"Consider alternatives like spaCy or nltk for ongoing support.","message":"The package's last release was in 2019; no active development, may not receive updates for Python version compatibility.","severity":"deprecated","affected_versions":"1.4"}],"env_vars":null,"search_vec":"'1.4':19 'algorithm':10 'cadenc':21 'current':17 'heurist':9,31 'josh':15 'koehn':13 'low':23 'nlp':30 'philipp':12 'recent':25 'releas':20 'schroeder':16 'sentenc':2,6,28 'sentence-split':27 'sentence-splitt':1 'split':29 'splitter':3,7 'text':4 'updat':26 'use':8 'version':18","created_at":"2026-06-07T12:59:25.688275+00:00","updated_at":"2026-06-07T12:59:25.688275+00:00","problems":[{"fix":"Install with 'pip install sentence-splitter' and import with 'from sentence_splitter import split_text_into_sentences'.","cause":"The package is installed as 'sentence-splitter' but imported as 'sentence_splitter'. Misspelling or incorrect import name.","error":"ModuleNotFoundError: No module named 'sentence_splitter'"},{"fix":"Call the function with text parameter: split_text_into_sentences(text='Your text.', language='en').","cause":"The 'text' argument is required and must be passed as a keyword argument or positional.","error":"TypeError: split_text_into_sentences() missing 1 required positional argument: 'text'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/berkmancenter/mediacloud-sentence-splitter","github":"https://github.com/berkmancenter/mediacloud-sentence-splitter","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-29","install_tag":null}}