Created
March 30, 2021 21:05
-
-
Save NesrineSF/12a0953756a014357c298460438e5757 to your computer and use it in GitHub Desktop.
split() function to tokenize the sentence
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
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