GENAI/
├── data/
│ ├── raw/ # Raw dataset files
│ └── processed/ # Processed data files
├── models/
│ ├── bpe/ # BPE tokenizer models
│ ├── word2vec/ # Word2Vec embeddings
│ └── lstm/ # LSTM model checkpoints
├── src/
│ ├── process_data.py # Data processing scripts
│ └── train.py # Training scripts
├── requirements.txt # Project dependencies
└── README.md # Project documentation
- Create a virtual environment:
python -m venv venv- Activate the virtual environment:
# Windows
venv\Scripts\activate
# Linux/Mac
source venv/bin/activate- Install dependencies:
pip install -r requirements.txt-
Download the dataset from Kaggle and place it in the
data/raw/directory. -
Process the data:
python src/process_data.py- Train the model:
python src/train.py-
Data Processing
- BPE Tokenization
- Word2Vec Embeddings
- Dataset preparation
-
Model Architecture
- LSTM-based language model
- Context-aware generation
- Attention mechanism
-
Training
- Batch processing
- Gradient clipping
- Early stopping
Training metrics and model performance will be saved in the respective model directories.
- Python 3.8+
- PyTorch
- NLTK
- NumPy
- Pandas
- Scikit-learn
- Matplotlib
- Seaborn
- tqdm