---
# 🕉️ Sanskrit AI Paraphrasing Engine (D3PM)
Welcome to the **Sanskrit Paraphrase Lab**. This project is a state-of-the-art text-to-text generation tool designed specifically for the Sanskrit language. It provides researchers, linguists, and data scientists with an interactive environment to test custom-trained AI models, generate paraphrases, and automatically log metadata for accuracy grading (e.g., BERTScore).
---
## 🧠 The Science: How it Works (A Deeper Dive)
Unlike standard AI models (like ChatGPT) that guess words one by one from left to right, this project uses a cutting-edge architecture called **Discrete Denoising Diffusion Probabilistic Models (D3PM)** with Cross-Attention.
1. **The Starting Point:** When you input a Sanskrit verse, the AI doesn't translate it directly. Instead, it creates a blank sequence of `[MASK]` tokens (digital "noise").
2. **The Denoising Process:** Over a series of mathematical steps (Diffusion Steps), the AI iteratively refines this noise.…