Skip to content

Instantly share code, notes, and snippets.

@NesrineSF
Created March 30, 2021 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NesrineSF/12a0953756a014357c298460438e5757 to your computer and use it in GitHub Desktop.
Save NesrineSF/12a0953756a014357c298460438e5757 to your computer and use it in GitHub Desktop.
split() function to tokenize the sentence
text = "CNBC has commented on the robot's lifelike skin and her ability to emulate more than 60 facial expressions."
tokens = text.split()
print('These are the tokens of the sentence', tokens)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment