python - How do I split a string into a list of words ...
stackoverflow.com › questions › 743806If you want to split a string into a list of words and if the string has punctuations, it's probably advisable to remove them. For example, str.split() the following string as. s = "Hi, these are words; these're, also, words." words = s.split() # ['Hi,', 'these', 'are', 'words;', "these're,", 'also,', 'words.']
How do I split a string into a list of words? - Stack Overflow
https://stackoverflow.com/questions/743806WebIf you want to split a string into a list of words and if the string has punctuations, it's probably advisable to remove them. For example, str.split() the following string as. s = "Hi, these are words; these're, also, words." words = s.split() # ['Hi,', 'these', 'are', 'words;', …