Interactive NLP course labs for Jupyter, Colab, and Deepnote
Project description
Labs
The course website is located here. Lecture materials, assignments, quizzes, etc. can be accessed at that link.
This site contains jupyter notebooks, data and other code artifacts associated with this course. I recommend you run these notebooks in Google Colab since they are tested in that environment. However, you are free to download and run elsewhere.
I will add further instructions for running locally or on some other environment if course-specific modules are needed.
Installation
For Students (Google Colab / Deepnote)
The easiest way to use this package is in Google Colab or Deepnote. In the first cell of your notebook, run:
# Install the package with all NLP dependencies
!pip install -q data401-nlp[all]
# The spaCy model will be automatically downloaded when needed
from data401_nlp.helpers.spacy import ensure_spacy_model
nlp = ensure_spacy_model("en_core_web_sm")
For Local Development
If you want to run the notebooks locally:
# Clone the repository
git clone https://github.com/su-dataAI/data401-nlp.git
cd data401-nlp
# Install with all dependencies
pip install -e ".[dev,all]"
# Download spaCy model
python -m spacy download en_core_web_sm
# Start Jupyter Lab
jupyter lab
Installation Options
The package supports flexible installation based on your needs:
# Minimal installation (core utilities only)
pip install data401-nlp
# With NLP tools (spaCy, NLTK)
pip install data401-nlp[nlp]
# With transformers and PyTorch
pip install data401-nlp[transformers]
# With API support (FastAPI, Pydantic)
pip install data401-nlp[api]
# Everything (recommended for students)
pip install data401-nlp[all]
Platform Support
✅ Google Colab
✅ Deepnote
✅ Jupyter Lab
✅ Local Python 3.11+
Helper Modules
The package includes several helper modules to make your NLP work easier:
data401_nlp.helpers.env- Environment detection and API key loadingdata401_nlp.helpers.spacy- Automatic spaCy model managementdata401_nlp.helpers.submit- Assignment submission utilitiesdata401_nlp.helpers.llm- LLM integration helpers
Contents
| Lab | Colab | GitHub |
|---|---|---|
| Intro (Jan 15) |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file data401_nlp-0.0.3.tar.gz.
File metadata
- Download URL: data401_nlp-0.0.3.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9949828609121783b4b3780d0e57fbe8303987a53ad322dad48d86318b1ad15a
|
|
| MD5 |
c50cec0828a2eaecc2f366a8914d4d4b
|
|
| BLAKE2b-256 |
472ffab405aa0024edf98709ed59a9f82a0de00f324e0bf76f033eb623d873df
|
File details
Details for the file data401_nlp-0.0.3-py3-none-any.whl.
File metadata
- Download URL: data401_nlp-0.0.3-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0527a891d0b3836ca0454cf8c2123bf920fffb3cc3debf7721194f106e471070
|
|
| MD5 |
3bb18adfdcd60460f77b9444e805b63c
|
|
| BLAKE2b-256 |
5b13b1096308f8ddc0a1705d1a94b4a59eb45c5a675ff7b2965378d4833c43d9
|