Practice and reinforce the concepts from Lesson 11
This exercise will guide you through various text processing techniques using Python and Streamlit. You'll practice text preprocessing and feature extraction methods while building an interactive web application.
Total time required: Approximately 2-3 hours
Access the exercise files and resources here: :file_folder: Drive Link
To run Streamlit applications on your computer, you need to install Python first. Follow these step-by-step instructions:
:bulb: Python interpreter is a software that reads Python source code and performs its instructions. You can refer to the official Python documentation
0for more information.
Step 2: Install Python
- Open the Python installer
- Important: Check the box 'Add Python 3.9 to PATH'
- Click "Install Now"
- Wait for installation to complete
- Click "Close" when the setup wizard finishes
:warning: Warning If you forget to check "Add Python to PATH", you'll need to add it manually or reinstall Python.
Step 3: Verify Installation
- Open VS Code
- Press
Ctrl + ~
(orCmd + ~
on Mac) to open the terminal- Type the following command and press Enter:
or on Mac/Linux:bashpy --version
bashpython --version
- If you see the Python version displayed, installation was successful!
tip For platform-specific instructions:
py
commandpython
or python3
commandRefer to Python Documentation
Watch this comprehensive guide for setting up VS Code with Python: VS Code and Python Interpreter Setup
Before starting the exercise, install Streamlit:
pip install streamlit
streamlit --version
:bulb: If you encounter permission errors, try:
bashpip install --user streamlit
Follow along with this comprehensive guide: Streamlit Exercise Guide
Create your first Streamlit app (30 minutes)
Implement text processing features (45 minutes)
Enhance your app (30 minutes)
python3
instead of python
python -m pip install --upgrade pip
streamlit run your_app.py
:bulb: Tip Join the discussion forum if you need help from classmates or instructors!
:warning: Warning Important: Make sure to submit your completed Streamlit application before the deadline!
:information_source: Deadline reminder: Check your course calendar for the submission deadline. Late submissions may receive reduced credit.