- Python Natural Language Processing
- Jalaj Thanaki
- 89字
- 2025-02-28 13:05:45
Lowercase conversion
Converting all your data to lowercase helps in the process of preprocessing and in later stages in the NLP application, when you are doing parsing.
So, converting the text to its lowercase format is quite easy. You can find the code on this GitHub link: https://github.com/jalajthanaki/NLPython/blob/master/ch4/4_4_wordtokenization.py
You can find the code snippet in Figure 4.3:

Figure 4.3: Converting data to lowercase
The output of the preceding code snippet is as follows:
----------converting data to lower case ---------- i am a person. do you know what is time now?