CS781-Fall 2026 IIT-Kanpur
Instructor: Dr. Ashutosh Modi
Assignment-1
There are 5 main tasks in Assignment-1:
- Explore Zipf's Law for multilingual data.
- N-gram language modeling.
- Neural Network Implementation from Scratch for Word2Vec for English-Hindi mixed corpora.
- Neural Network Language Model from scratch for English-Hindi mixed corpora.
- Byte-Pair encoding for subword tokenization and training a NLM model on the same.
The data can be fetched using the datasets API as follows:
from datasets import load_dataset
# Assignment-1 Dataset
train = load_dataset("Exploration-Lab/CS781", data_files={"train": "Assignment-1/train.parquet"}, split="train", token=token)
val = load_dataset("Exploration-Lab/CS781", data_files={"val": "Assignment-1/validation.parquet"}, split="val", token=token)
test_en = load_dataset("Exploration-Lab/CS781", data_files={"en": "Assignment-1/analogy_test_en.parquet"}, split="en", token=token)
test_hi = load_dataset("Exploration-Lab/CS781", data_files={"hi": "Assignment-1/analogy_test_hi.parquet"}, split="hi", token=token)
- Downloads last month
- 874