BaşlayınÜcretsiz Başlayın

Removing punctuation

Now that you've removed stop words from the feedback text, it's time to handle punctuation. The tokens you obtained in the previous exercise still contain punctuation marks, which are often unnecessary when categorizing feedback.

Your task is to remove punctuation from the list of tokens provided, helping to clean up the data even further.

Bu egzersiz

Natural Language Processing (NLP) in Python

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Clean the filtered_tokens list by removing all punctuation.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

import string

filtered_tokens = ['reached', 'support', 'got', 'helpful', 'response', 'within', 'minutes', '!', '!', '!', '#', 'impressed']

# Remove punctuation
clean_tokens = [____ for word in filtered_tokens if ____ not in ____.____]

print(clean_tokens)
Kodu Düzenle ve Çalıştır