File size: 4,936 Bytes
20f6afa | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 | ---
license: apache-2.0
language:
- en
- hi
- ta
- te
- bn
- kn
size_categories:
- 100K<n<1M
task_categories:
- token-classification
- text-generation
tags:
- finance
- banking
- entity-extraction
- indian-banking
- sms
- synthetic
pretty_name: FinEE Dataset - Indian Financial Entity Extraction
---
# FinEE Dataset
<p align="center">
<img src="https://img.shields.io/badge/Samples-152K%2B-blue" alt="Samples">
<img src="https://img.shields.io/badge/Languages-6-orange" alt="Languages">
<img src="https://img.shields.io/badge/Banks-25%2B-green" alt="Banks">
</p>
## Dataset Description
A comprehensive dataset for training financial entity extraction models on Indian banking messages. Contains 152,000+ samples covering SMS, emails, and transaction notifications from major Indian banks.
### Languages
- English (en) - 86%
- Hindi (hi) - 3%
- Tamil (ta) - 3%
- Telugu (te) - 3%
- Bengali (bn) - 3%
- Kannada (kn) - 2%
### Supported Transaction Types
- UPI payments (PhonePe, GPay, Paytm)
- NEFT/IMPS/RTGS transfers
- Credit card transactions
- Debit card transactions
- EMI payments
- Refunds and reversals
- Salary credits
- Bill payments
### Covered Banks
HDFC, ICICI, SBI, Axis, Kotak, PNB, BOB, Canara, Union, IDBI, IndusInd, Yes Bank, Federal, South Indian, Karur Vysya, and more.
### Covered Merchants
- Food: Swiggy, Zomato, Zepto, BigBasket
- Shopping: Amazon, Flipkart, Myntra, Meesho
- Travel: Uber, Ola, IRCTC, MakeMyTrip
- Investment: Zerodha, Groww, Upstox, Angel One
- Bills: Airtel, Jio, electricity, gas
- Entertainment: Netflix, BookMyShow, Hotstar
## Dataset Structure
### Data Fields
```json
{
"input": "HDFC Bank: Rs.2,500 debited from A/c XX1234...",
"output": {
"amount": 2500.0,
"type": "debit",
"account": "1234",
"bank": "HDFC",
"merchant": "Swiggy",
"category": "food",
"is_p2m": true
}
}
```
### Instruction Format (ChatML)
```json
{
"messages": [
{"role": "system", "content": "You are a financial entity extraction assistant..."},
{"role": "user", "content": "Extract financial entities from: ..."},
{"role": "assistant", "content": "{\"amount\": 2500.0, ...}"}
]
}
```
### Splits
| Split | Samples | Description |
|-------|---------|-------------|
| train | 137,267 | Training data |
| valid | 7,625 | Validation data |
| test | 7,627 | Test data (held out) |
## Data Sources
1. **Real Data** (2,419 samples)
- Anonymized ICICI Bank SMS messages
- Manually verified labels
2. **Synthetic Data** (100,000 samples)
- Grammar-based generation
- Covers all bank templates
- Realistic amount distributions
3. **Multilingual Synthetic** (50,100 samples)
- Hindi, Tamil, Telugu, Bengali, Kannada
- Markov chain for realistic flow
- Edge case oversampling
## Usage
### Load with Datasets
```python
from datasets import load_dataset
dataset = load_dataset("Ranjit0034/finee-dataset")
# Access splits
train = dataset["train"]
valid = dataset["valid"]
test = dataset["test"]
# Iterate
for example in train:
print(example["input"])
print(example["output"])
```
### Load for Fine-tuning
```python
from datasets import load_dataset
# Load instruction format
dataset = load_dataset("Ranjit0034/finee-dataset", data_files={
"train": "instruction/train.jsonl",
"valid": "instruction/valid.jsonl"
})
```
## Output Schema
| Field | Type | Description |
|-------|------|-------------|
| amount | float | Transaction amount in INR |
| type | string | "debit" or "credit" |
| account | string | Last 4 digits of account |
| bank | string | Bank name |
| date | string | Transaction date (YYYY-MM-DD) |
| time | string | Transaction time (HH:MM) |
| reference | string | UPI/NEFT reference number |
| merchant | string | Merchant name (P2M) |
| beneficiary | string | Person name (P2P) |
| vpa | string | UPI VPA address |
| category | string | Transaction category |
| is_p2m | boolean | true if merchant, false if P2P |
| balance | float | Balance after transaction |
| status | string | success/failed/pending |
## Categories
- `food` - Restaurants, delivery
- `grocery` - Supermarkets
- `shopping` - E-commerce, retail
- `transport` - Cab, fuel
- `travel` - Flights, hotels
- `bills` - Utilities, recharge
- `entertainment` - Movies, streaming
- `healthcare` - Medical, pharmacy
- `investment` - Stocks, mutual funds
- `transfer` - P2P transfers
- `salary` - Income
- `emi` - Loan payments
## Citation
```bibtex
@dataset{finee_dataset,
title={FinEE Dataset: Indian Financial Entity Extraction},
author={Ranjit Behera},
year={2026},
url={https://huggingface.co/datasets/Ranjit0034/finee-dataset}
}
```
## License
Apache 2.0
## Related
- 🤖 [FinEE Llama 8B](https://huggingface.co/Ranjit0034/finee-llama-8b) - Fine-tuned model
- 📦 [FinEE Package](https://pypi.org/project/finee/) - Python library
- 💻 [GitHub](https://github.com/Ranjitbehera0034/Finance-Entity-Extractor)
|