Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# split sentences
def sentences(text):
# split sentences and questions
text = re.split('[.?]', text)
clean_sent = []
for sent in text:
return clean_sent
# sentences
df['sent'] = df['Speech_clean'].apply(sentences)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment