# Preprocessing | More Information

**URL:** <https://community.deeplearning.ai/t/preprocessing-more-information/119304>\
**Category:** NLP with Classification and Vector Spaces\
**Tags:** week-module-1\
**Created:** [April 15, 2022, 10:15am UTC](https://community.deeplearning.ai/t/preprocessing-more-information/119304 "2022-04-15T10:15:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anshul007](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Anshul007](https://community.deeplearning.ai/u/Anshul007)\
**Post date:** [April 15, 2022, 10:15am UTC](https://community.deeplearning.ai/t/preprocessing-more-information/119304/1 "2022-04-15T10:15:24Z")

</div>

Hi,

Below are the preprocessing, which we have to perform:

- Eliminate handles and URLs
- Tokenize the string into words.
- Remove stop words like “and, is, a, on, etc.”
- Stemming- or convert every word to its stem. Like dancer, dancing, danced, becomes ‘danc’. You can use porter stemmer to take care of this.
- Convert all your words to lower case.

My question is, As a best practice is there any order of above steps, which we can follow?

Thanks

---

<div class="post-metadata">

**Author:** ![balaji.ambresh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/balaji.ambresh/32/128697_2.png) [@balaji.ambresh](https://community.deeplearning.ai/u/balaji.ambresh)\
**Post date:** [April 16, 2022, 12:54pm UTC](https://community.deeplearning.ai/t/preprocessing-more-information/119304/2 "2022-04-16T12:54:57Z")

</div>

I recommend lowercasing be done before stopword removal etc. since case matters.  
See this [link](https://www.tensorflow.org/api_docs/python/tf/keras/preprocessing/text/Tokenizer) for a good example on text preprocessing.

---

<div class="post-metadata">

**Author:** ![Tatikonda\_Chanakya](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@Tatikonda\_Chanakya](https://community.deeplearning.ai/u/Tatikonda_Chanakya)\
**Post date:** [April 18, 2022, 4:07am UTC](https://community.deeplearning.ai/t/preprocessing-more-information/119304/3 "2022-04-18T04:07:48Z")

</div>

I recommend lowercasing be done before stopword removal etc. since case matters.  
See this [link](https://www.tensorflow.org/api_docs/python/tf/keras/preprocessing/text/Tokenizer) for a good example on text preprocessing.
