कस्टम stop words जोड़ना
हमने twitter_data में कई ऐसे शब्द देखे हैं जो जानकारीपूर्ण नहीं हैं और जिन्हें आपकी अंतिम शब्द-सूची से हटा दिया जाना चाहिए। इस अभ्यास में, आप कुछ शब्द अपने custom_stop_words डेटा फ़्रेम में जोड़ेंगे।
यह अभ्यास पाठ्यक्रम का हिस्सा है
R में Text Analysis परिचय
अभ्यास निर्देश
- कस्टम stop words वाले नए डेटा फ़्रेम के कॉलम नाम
stop_wordsसे मेल खाने चाहिए। http,win, औरt.coको कस्टम stop words के रूप में जोड़ें।- कस्टम stop words को
stop_wordsके साथ row bind करें।
इंटरैक्टिव व्यावहारिक अभ्यास
इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।
custom_stop_words <- tribble(
# Column names should match stop_words
___, ___,
# Add http, win, and t.co as custom stop words
___, "CUSTOM",
___, "CUSTOM",
___, "CUSTOM"
)
# Bind the custom stop words to stop_words
stop_words2 <- stop_words %>%
___(___)