Explain training pairs and generation rules
Browse files
README.md
CHANGED
|
@@ -35,3 +35,18 @@ configs:
|
|
| 35 |
- split: train
|
| 36 |
path: data/train-*
|
| 37 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
- split: train
|
| 36 |
path: data/train-*
|
| 37 |
---
|
| 38 |
+
|
| 39 |
+
# Table retrieval training data
|
| 40 |
+
|
| 41 |
+
2,000 synthetic hard table retrieval pairs generated with GPT-6 Luna: 500 each of Vertical, Matrix, Hierarchy, and Nested.
|
| 42 |
+
|
| 43 |
+
Each train row contains a query, its answer, a positive image, a style-matched hard negative image, the table type and domain, target cell metadata (JSON string), and negative transformation type. Both image columns embed PNG bytes in Parquet shards.
|
| 44 |
+
|
| 45 |
+
Negative rules: Vertical swaps distinct values in one column; Matrix moves the queried entities onto the same row or column axis; Hierarchy swaps parent groups; Nested swaps outer groups. Rendering uses randomized Matplotlib, HTML/CSS, and LaTeX styles, preserved between each positive and negative.
|
| 46 |
+
|
| 47 |
+
`metadata/` preserves source table specifications, query templates and answers, original render styles, and hard-negative records. Paths inside these original records describe the source layout; use the embedded image columns when loading the dataset.
|
| 48 |
+
|
| 49 |
+
```python
|
| 50 |
+
from datasets import load_dataset
|
| 51 |
+
ds = load_dataset("NLPRETGOOD/table_train", split="train")
|
| 52 |
+
```
|