bhavnicksm commited on
Commit
821fd8e
·
verified ·
1 Parent(s): b1785e1

Add comprehensive README with tags and documentation

Browse files
Files changed (1) hide show
  1. README.md +102 -41
README.md CHANGED
@@ -1,45 +1,19 @@
1
  ---
2
- dataset_info:
3
- - config_name: corpus
4
- features:
5
- - name: id
6
- dtype: string
7
- - name: text
8
- dtype: string
9
- - name: table_rows
10
- dtype: int64
11
- - name: table_cols
12
- dtype: int64
13
- - name: num_paragraphs
14
- dtype: int64
15
- splits:
16
- - name: train
17
- num_bytes: 889786
18
- num_examples: 349
19
- download_size: 436818
20
- dataset_size: 889786
21
- - config_name: questions
22
- features:
23
- - name: id
24
- dtype: string
25
- - name: doc_id
26
- dtype: string
27
- - name: question
28
- dtype: string
29
- - name: answer
30
- dtype: string
31
- - name: answer_type
32
- dtype: string
33
- - name: answer_from
34
- dtype: string
35
- - name: chunk-must-contain
36
- dtype: string
37
- splits:
38
- - name: train
39
- num_bytes: 987525
40
- num_examples: 2065
41
- download_size: 298250
42
- dataset_size: 987525
43
  configs:
44
  - config_name: corpus
45
  data_files:
@@ -50,3 +24,90 @@ configs:
50
  - split: train
51
  path: questions/train-*
52
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: mit
3
+ task_categories:
4
+ - question-answering
5
+ - text-retrieval
6
+ language:
7
+ - en
8
+ tags:
9
+ - chunking
10
+ - financial
11
+ - tables
12
+ - tat-qa
13
+ - rag
14
+ - retrieval
15
+ size_categories:
16
+ - 1K<n<10K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  configs:
18
  - config_name: corpus
19
  data_files:
 
24
  - split: train
25
  path: questions/train-*
26
  ---
27
+
28
+ <div align="center">
29
+
30
+ # 📊 Tacha: Table Chunking Assessment
31
+
32
+ **Ta**ble **Ch**unking **A**ssessment - A dataset for evaluating chunking algorithms on financial documents with tables.
33
+
34
+ </div>
35
+
36
+ ## Overview
37
+
38
+ Tacha is designed to test how well chunking algorithms handle **structured tabular data** within documents. It contains financial reports with markdown tables and accompanying text, derived from the [TAT-QA](https://nextplusplus.github.io/TAT-QA/) dataset.
39
+
40
+ ### Key Challenges
41
+
42
+ - Keeping table headers with data rows
43
+ - Not splitting tables mid-row
44
+ - Preserving table-text relationships
45
+ - Handling multi-column financial data
46
+
47
+ ## Dataset Structure
48
+
49
+ ### Corpus
50
+
51
+ The `corpus` config contains 349 financial documents with tables (12+ rows, 4+ columns).
52
+
53
+ | Column | Type | Description |
54
+ |--------|------|-------------|
55
+ | `id` | string | Unique document identifier |
56
+ | `text` | string | Full document with markdown tables and text |
57
+ | `table_rows` | int | Number of rows in the main table |
58
+ | `table_cols` | int | Number of columns in the main table |
59
+ | `num_paragraphs` | int | Number of text paragraphs accompanying the table |
60
+
61
+ ### Questions
62
+
63
+ The `questions` config contains 2,065 questions requiring understanding of table content.
64
+
65
+ | Column | Type | Description |
66
+ |--------|------|-------------|
67
+ | `id` | string | Unique question identifier |
68
+ | `doc_id` | string | Reference to corpus document |
69
+ | `question` | string | Question about the table/document content |
70
+ | `answer` | string | Answer to the question |
71
+ | `answer_type` | string | Type: span, multi-span, arithmetic, count |
72
+ | `answer_from` | string | Source: table, text, or table-text |
73
+ | `chunk-must-contain` | string | Passage that a good chunk must contain |
74
+
75
+ ## Statistics
76
+
77
+ | Metric | Value |
78
+ |--------|-------|
79
+ | Documents | 349 |
80
+ | Questions | 2,065 |
81
+ | Avg table rows | 15.8 |
82
+ | Avg table cols | 4.6 |
83
+ | Answer types | 42% arithmetic, 42% span, 13% multi-span, 2% count |
84
+
85
+ ## Usage
86
+
87
+ ```python
88
+ from datasets import load_dataset
89
+
90
+ # Load the corpus
91
+ corpus = load_dataset("chonkie-ai/tacha", "corpus", split="train")
92
+
93
+ # Load the questions
94
+ questions = load_dataset("chonkie-ai/tacha", "questions", split="train")
95
+
96
+ # Use with MTCB evaluator
97
+ from mtcb import TachaEvaluator
98
+ from chonkie import RecursiveChunker
99
+
100
+ evaluator = TachaEvaluator(
101
+ chunker=RecursiveChunker(chunk_size=512),
102
+ embedding_model="voyage-3-large"
103
+ )
104
+ result = evaluator.evaluate(k=[1, 3, 5, 10])
105
+ ```
106
+
107
+ ## Source
108
+
109
+ Derived from [TAT-QA](https://nextplusplus.github.io/TAT-QA/) (ACL 2021), filtered to documents with larger tables (12+ rows, 4+ columns).
110
+
111
+ ## License
112
+
113
+ MIT License