Last active
July 5, 2019 12:59
-
-
Save shubham-singh-ss/36a880cce668bb203a99dd9bc5840650 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
text = """Founded in 2002, SpaceX’s mission is to enable humans to become a spacefaring civilization and a multi-planet | |
species by building a self-sustaining city on, Mars. In 2008, SpaceX’s Falcon 1 became the first privately developed | |
liquid-fuel launch vehicle to orbit the Earth.""" | |
sentences = re.compile('[.!?] ').split(text) | |
sentences |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment