Interview practice question
Messy scraped text data
Machine Learning · NLP · Beginner
You scraped web pages for a text classification dataset, and the text is full of HTML, menus and ads. How do you clean it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Extract main content (boilerplate removal libraries).
- Strip HTML, scripts, navigation, footers.
- Normalize whitespace and encoding.
- Deduplicate pages and near-duplicates.
- Check licensing and robots rules.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.