human
Finding the surrounding sentence of a char/word in a string
assistant
Here is some code to split string `text` by the occurrences of regex pattern '(?<=\\?|!|\\.)\\s{0,2}(?=[A-Z]|$)'

re.split('(?<=\\?|!|\\.)\\s{0,2}(?=[A-Z]|$)', text)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.