Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
我真的不明白你想在列表推导中做什么,所以我只会写下我会如何做:
I really don't understand what you are trying to do in the list comprehensions, so I'll just write how I would do it:
您可以使用
spacy
执行您想要的操作,如下所示:(在许多情况下spacy
的性能比nltk
更好。)输出:
You can do what you want with
spacy
like below: (In many casesspacy
performs better thannltk
.)Output: