chiaseacc's picture
Upload folder using huggingface_hub
715471d verified
|
Raw History Blame Contribute Delete
3.65 kB
---
language:
- vi
license: other # TODO(maintainer): choose a license after confirming where the gold rows came from (see Provenance)
pretty_name: Teencode → Standard Vietnamese (v3)
task_categories:
- translation
- text-generation
task_ids:
- text2text-generation
tags:
- text-normalization
- teencode
- vietnamese
size_categories:
- 100K<n<1M
configs:
- config_name: default
data_files:
- split: train
path: train.jsonl.gz
- split: validation
path: dev.jsonl.gz
- split: test
path: test.jsonl.gz
- config_name: untoned
data_files:
- split: validation
path: dev_untoned.jsonl.gz
- split: test
path: test_untoned.jsonl.gz
- config_name: ctx
data_files:
- split: validation
path: dev_ctx.jsonl.gz
- split: test
path: test_ctx.jsonl.gz
- config_name: hard
data_files:
- split: test
path: test_hard_1251.jsonl.gz
- split: test_small
path: test_hard.jsonl.gz
---
# TTS-standardlization
Pairs of Vietnamese teencode and standard Vietnamese, used to train and evaluate the v3 model of [TFVN-TTS-standardlization](https://github.com/femboyvn/TFVN-TTS-standardlization). The ONNX model is on Hugging Face as [`tfvn/TTS-standardlization`](https://huggingface.co/tfvn/TTS-standardlization).
```bash
huggingface-cli download tfvn/TTS-standardlization --repo-type dataset --local-dir data/v3
python src/train/encode_data.py --tokenizer models/TTS-standardlization/onnx/tokenizer.json --in data/v3 --out data_v3
```
```python
from datasets import load_dataset
ds = load_dataset("tfvn/TTS-standardlization") # train / validation / test
hard = load_dataset("tfvn/TTS-standardlization", "hard") # eval-only hard set
```
## Schema
| field | meaning |
|---|---|
| `input` | teencode / untoned / abbreviated text |
| `output` | standard Vietnamese |
| `category` | (ctx, hard and some train rows) one of `pronoun_pair`, `ambiguous_abbrev`, `untoned_context`, `user_slang` |
| `src_name` | (train) which extra source the row came from: `untoned` or `ctx`. If absent, the row is gold |
| `w` | (train) per-row loss weight used in training. If absent, 1.0 |
## Files and row counts
| file | rows | notes |
|---|---:|---|
| train.jsonl.gz | 306,002 | 130,611 gold (incl. identity/partial-noise augmentation), 96,670 untoned, 78,721 ctx |
| dev / test | 999 / 999 | gold, seeded 98/1/1 split |
| dev_untoned / test_untoned | 986 / 986 | input has no tone marks |
| dev_ctx / test_ctx | 803 / 803 | context pairs, from the same generator as the train ctx rows (in-distribution) |
| test_hard_1251 | 1,251 | eval-only and leakage-deduped against train: 508 pronoun_pair, 468 ambiguous_abbrev, 275 untoned_context |
| test_hard | 396 | earlier, smaller hard set |
v3 results (CER, INT8, beam 4 + guard): gold 2.08%, untoned 11.19%, ctx 0.35%, hard_1251 4.95%.
## Provenance
- **Gold pairs**: teencode sentences with standard-Vietnamese labels from the project's labelling pipeline. **Some inputs look like real social-media comments.** TODO (maintainer): confirm where they came from and that you may redistribute them, then set the license above.
- **untoned**: gold outputs with the tone marks removed, built by a script.
- **ctx / hard**: synthetic pairs written by an assistant ("Teencode Data Generator"), plus pairs from user feedback (`user_slang`).
## Cleaning
An automatic scan found 51 phone-number-like strings and 1 e-mail address in train (104 fields). They were replaced with `0900000000` and `user@example.com`. Dev and test had none. No secrets, tokens or URLs were found. The data **contains vulgar slang on purpose**, because the model has to normalize it.