{ "cells": [ { "cell_type": "code", "id": "initial_id", "metadata": { "collapsed": true, "ExecuteTime": { "end_time": "2024-09-24T11:11:31.348040Z", "start_time": "2024-09-24T11:11:28.329888Z" } }, "source": [ "import os\n", "import re\n", "\n", "# Function to capitalize the first letter of each sentence\n", "def capitalize_sentences(text):\n", " # Use regular expression to match sentence boundaries\n", " return re.sub(r'(?