👻 Check our latest review to choose the best laptop for Machine Learning engineers and Deep learning tasks!
I"m just starting to use NLTK and I don"t quite understand how to get a list of words from text. If I use nltk.word_tokenize()
, I get a list of words and punctuation. I need only the words instead. How can I get rid of punctuation? Also word_tokenize
doesn"t work with multiple sentences: dots are added to the last word.
👻 Read also: what is the best laptop for engineering students?
We hope this article has helped you to resolve the problem. Apart from How to get rid of punctuation using NLTK tokenizer?, check other ast Python module-related topics.
Want to excel in Python? See our review of the best Python online courses 2023. If you are interested in Data Science, check also how to learn programming in R.
By the way, this material is also available in other languages:
- Italiano How to get rid of punctuation using NLTK tokenizer?
- Deutsch How to get rid of punctuation using NLTK tokenizer?
- Français How to get rid of punctuation using NLTK tokenizer?
- Español How to get rid of punctuation using NLTK tokenizer?
- Türk How to get rid of punctuation using NLTK tokenizer?
- Русский How to get rid of punctuation using NLTK tokenizer?
- Português How to get rid of punctuation using NLTK tokenizer?
- Polski How to get rid of punctuation using NLTK tokenizer?
- Nederlandse How to get rid of punctuation using NLTK tokenizer?
- 中文 How to get rid of punctuation using NLTK tokenizer?
- 한국어 How to get rid of punctuation using NLTK tokenizer?
- 日本語 How to get rid of punctuation using NLTK tokenizer?
- हिन्दी How to get rid of punctuation using NLTK tokenizer?
Rome | 2023-03-30
Simply put and clear. Thank you for sharing. How to get rid of punctuation using NLTK tokenizer? and other issues with ast Python module was always my weak point 😁. Will get back tomorrow with feedback
Berlin | 2023-03-30
re Python module is always a bit confusing 😭 How to get rid of punctuation using NLTK tokenizer? is not the only problem I encountered. Checked yesterday, it works!
London | 2023-03-30
I was preparing for my coding interview, thanks for clarifying this - How to get rid of punctuation using NLTK tokenizer? in Python is not the simplest one. I just hope that will not emerge anymore