1

NLP: Tokenization and Stop Word Removal

Unsolved
Data Wrangling

Difficulty: 2 | Problem written by peter.washington
Problem reported in interviews at

Apple

Given a set of stop words and an input text, return a list of tokens with all stop words removed.

Sample Input:
<class 'list'>
text: MLPro is the best website ever!

Expected Output:
<class 'list'>
['mlpro', 'best', 'website', 'ever']

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Voluptates dolores sed magni at? Dignissimos nostrum ratione non labore fugiat provident, quidem amet nemo facilis dolore tempora provident ratione eveniet natus placeat, autem voluptates tempore beatae ea ex adipisci deserunt itaque amet ullam.

Ea repellendus eveniet deleniti atque sed at amet autem? Amet sequi vel beatae asperiores nemo doloremque sed, cupiditate architecto corrupti sunt velit recusandae quo aliquid saepe, voluptatum eaque nam dolorem, modi obcaecati consectetur ratione illum dolores placeat aperiam fugiat repudiandae non, eligendi beatae aliquid veritatis aliquam consequatur voluptates inventore. Nihil accusantium aspernatur saepe facere ipsum dolor impedit reprehenderit nisi asperiores dignissimos, libero vitae unde eveniet. Iusto eius quos architecto accusantium molestiae earum consequatur enim ea.

Eum excepturi repudiandae, quae voluptate iure officiis, repellat eveniet soluta maxime quod minus ipsum modi rerum accusamus, minus temporibus atque labore molestiae amet sit animi porro?

This is a premium feature.
To access this and other such features, click on upgrade below.

Ready.

Input Test Case

Please enter only one test case at a time
numpy has been already imported as np (import numpy as np)