我有一个列表如下
data_corpus = ["John likes to watch movies",
"Mary likes movies too",
"John also likes to watch football games"]
我想要
['John', 'likes', 'to', 'watch', 'movies', 'Mary', 'likes', 'movies', 'too',
'John', 'also', 'likes', 'to', 'watch', 'football', 'games']
我做
from nltk.tokenize import word_tokenize
tokenized = [word_tokenize(i) for i in data_corpus]
tokenized
ang获取句子列表而不是单词列表
[['John', 'likes', 'to', 'watch', 'movies'],
['Mary', 'likes', 'movies', 'too'],
['John', 'also', 'likes', 'to', 'watch', 'football', 'games']]
如何解决?