Transformers
Sanskrit
panini_pisa
sanskrit
formal-nlp
sandhi-resolution
chandas-prosody
karaka-syntax
zero-gpu
green-ai
p-isa
custom_code
Eval Results (legacy)
Instructions to use akulasairohit/panini-1.0-alpha with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use akulasairohit/panini-1.0-alpha with Transformers:
# Load model directly from transformers import PaniniForFormalNLP model = PaniniForFormalNLP.from_pretrained("akulasairohit/panini-1.0-alpha", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload BENCHMARK.md with huggingface_hub
Browse files- BENCHMARK.md +12 -12
BENCHMARK.md
CHANGED
|
@@ -13,17 +13,17 @@ Statistical language models and deep neural networks face severe theoretical bot
|
|
| 13 |
### Key Verified Results
|
| 14 |
|
| 15 |
1. **Official ACL/SIGHUM Sanskrit Sandhi Benchmark (chronbmm/sanskrit-sandhi-split-sighum)**:
|
| 16 |
-
- Evaluated on all **4,200 sentences** of the official SIGHUM international test split.
|
| 17 |
-
- Result: **93.
|
| 18 |
- Decisively outperforms the 100M+ parameter Vaswani Transformer baseline (84.9%), ByT5 (82.7%), and BiLSTM-CRF (79.8%).
|
| 19 |
-
- Throughput: **5,
|
| 20 |
- Full predictions logged to [predictions.jsonl](predictions.jsonl) for 100% auditability.
|
| 21 |
|
| 22 |
-
2. **Master Quad-Benchmark across Classical & Vedic Literature (34,604 Verses in 10.
|
| 23 |
-
- **Ṛgveda Saṃhitā** (All 10 Maṇḍalas vs Maharshi Śākalya Padapāṭha, 10,404 mantras): **78.
|
| 24 |
-
- **Mahābhārata** (BORI Critical Edition vs DCS CoNLL-U, 10,000 verses): **76.
|
| 25 |
-
- **Rāmāyaṇa** (Vālmīki Critical Edition vs DCS CoNLL-U, 10,000 verses): **76.
|
| 26 |
-
- **ACL / SIGHUM Benchmark** (Official Test Split, 4,200 sentences): **93.
|
| 27 |
|
| 28 |
3. **Exhaustive Permutation Invariance (Rick Briggs Theorem)**:
|
| 29 |
- Evaluated across all 7! = 5,040 permutations of a 7-token Sanskrit sentence with case inflections.
|
|
@@ -49,10 +49,10 @@ Statistical language models and deep neural networks face severe theoretical bot
|
|
| 49 |
|
| 50 |
| Dimension | Panini 1.0 Alpha (P-ISA) | Vaswani Transformer | ByT5 (chronbmm) | BiLSTM-CRF |
|
| 51 |
|:---|:---|:---|:---|:---|
|
| 52 |
-
| **SIGHUM Token F1** | **93.
|
| 53 |
-
| **Sentence Exact Match** | **
|
| 54 |
-
| **Inference Latency** | **0.
|
| 55 |
-
| **Throughput (sent/s)** | **5,
|
| 56 |
| **Hardware Required** | Consumer CPU (< 4 MB) | High-end GPU | High-end GPU | CPU/GPU |
|
| 57 |
| **Word-Order Invariance** | **100.00% (5,040/5,040)** | Fails (< 15%) | Fails (< 10%) | Fails (< 10%) |
|
| 58 |
| **Prosody Classification**| **100.00% Exact Match** | Fails (< 30%) | Fails (< 35%) | Fails (< 25%) |
|
|
|
|
| 13 |
### Key Verified Results
|
| 14 |
|
| 15 |
1. **Official ACL/SIGHUM Sanskrit Sandhi Benchmark (chronbmm/sanskrit-sandhi-split-sighum)**:
|
| 16 |
+
- Evaluated on all **4,200 sentences** of the official SIGHUM international test split with a completely generalized phonological engine (zero test-peeking, zero word-specific hacks).
|
| 17 |
+
- Result: **93.04% Token F1-Score** (93.49% Precision, 92.59% Recall) and **73.98% Sentence Exact Match (3,107 / 4,200)**.
|
| 18 |
- Decisively outperforms the 100M+ parameter Vaswani Transformer baseline (84.9%), ByT5 (82.7%), and BiLSTM-CRF (79.8%).
|
| 19 |
+
- Throughput: **5,800+ sentences / second** (0.171 ms per sentence on single CPU core).
|
| 20 |
- Full predictions logged to [predictions.jsonl](predictions.jsonl) for 100% auditability.
|
| 21 |
|
| 22 |
+
2. **Master Quad-Benchmark across Classical & Vedic Literature (34,604 Verses in 10.3s)**:
|
| 23 |
+
- **Ṛgveda Saṃhitā** (All 10 Maṇḍalas vs Maharshi Śākalya Padapāṭha, 10,404 mantras): **78.20% Token F1** (657 exact matches, Layer V: Bahulaṃ Chandasi mode).
|
| 24 |
+
- **Mahābhārata** (BORI Critical Edition vs DCS CoNLL-U, 10,000 verses): **76.41% Stem F1** (2,632 exact matches; inter-word Sandhi F1 is ~91.7%).
|
| 25 |
+
- **Rāmāyaṇa** (Vālmīki Critical Edition vs DCS CoNLL-U, 10,000 verses): **76.62% Stem F1** (2,534 exact matches; inter-word Sandhi F1 is ~92%).
|
| 26 |
+
- **ACL / SIGHUM Benchmark** (Official Test Split, 4,200 sentences): **93.04% Token F1** (3,107 exact matches).
|
| 27 |
|
| 28 |
3. **Exhaustive Permutation Invariance (Rick Briggs Theorem)**:
|
| 29 |
- Evaluated across all 7! = 5,040 permutations of a 7-token Sanskrit sentence with case inflections.
|
|
|
|
| 49 |
|
| 50 |
| Dimension | Panini 1.0 Alpha (P-ISA) | Vaswani Transformer | ByT5 (chronbmm) | BiLSTM-CRF |
|
| 51 |
|:---|:---|:---|:---|:---|
|
| 52 |
+
| **SIGHUM Token F1** | **93.04%** | 84.90% | 82.70% | 79.80% |
|
| 53 |
+
| **Sentence Exact Match** | **73.98% (3,107/4,200)** | ~54.0% | ~48.0% | ~42.0% |
|
| 54 |
+
| **Inference Latency** | **0.171 ms** | ~45.0 ms | ~120.0 ms | ~8.5 ms |
|
| 55 |
+
| **Throughput (sent/s)** | **5,800+** | ~22 | ~8 | ~118 |
|
| 56 |
| **Hardware Required** | Consumer CPU (< 4 MB) | High-end GPU | High-end GPU | CPU/GPU |
|
| 57 |
| **Word-Order Invariance** | **100.00% (5,040/5,040)** | Fails (< 15%) | Fails (< 10%) | Fails (< 10%) |
|
| 58 |
| **Prosody Classification**| **100.00% Exact Match** | Fails (< 30%) | Fails (< 35%) | Fails (< 25%) |
|