CoolFace
Datasetpublic

ngocthanhdoan/vietnerm-cccd-dataset

VietNerm — Căn cước công dân NER Dataset Synthetic BIO-tagged NER dataset for Vietnamese Căn cước công dân document entity extraction. ⚠️ DISCLAIMER: SYNTHETIC / MOCKUP DATA Dataset này được sinh hoàn toàn tự động từ template (synthetic/mockup data), KHÔNG chứa dữ liệu cá nhân thật. Tất cả dữ liệu được sinh tự động bằng hệ thống Jinja2 template + random generator Không sử dụng giấy tờ thật, thông tin cá nhân thật, hoặc dữ liệu thu thập từ người dùng Số định… See the full description on the dataset page: https://huggingface.co/datasets/ngocthanhdoan/vietnerm-cccd-dataset.

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes22downloads
Dataset Card

VietNerm — Căn cước công dân NER Dataset

Synthetic BIO-tagged NER dataset for Vietnamese Căn cước công dân document entity extraction.

⚠️ DISCLAIMER: SYNTHETIC / MOCKUP DATA

Dataset này được sinh hoàn toàn tự động từ template (synthetic/mockup data), KHÔNG chứa dữ liệu cá nhân thật.
  • —Tất cả dữ liệu được sinh tự động bằng hệ thống Jinja2 template + random generator
  • —Không sử dụng giấy tờ thật, thông tin cá nhân thật, hoặc dữ liệu thu thập từ người dùng
  • —Số định danh (ID, CCCD...) được sinh ngẫu nhiên, thiết kế để không trùng với dữ liệu thật
  • —Dữ liệu có inject nhiễu OCR (noise) để giả lập điều kiện thực tế
  • —Mục đích: nghiên cứu AI, Document AI, OCR/NER pipeline
  • —Không được sử dụng để giả mạo giấy tờ, tạo giấy tờ giả, lừa đảo hoặc gian lận

Dataset Description

This dataset contains BIO-tagged token sequences for training NER models on Vietnamese Căn cước công dân documents. Data is synthetically generated with OCR noise simulation for robustness.

Dataset Statistics

SplitSamples
Train1800
Test200

Labels

LabelType
id2label—
label2id—
labels—

Format

Each sample is a JSON object with two fields:

FieldTypeDescription
tokensList[str]Whitespace-tokenized words
ner_tagsList[str]BIO label for each token

Data Mockup Example

Below is a representative (synthetic) sample from the dataset:

json
{
  "tokens": [
    "CÓ",
    "CỘNG",
    "HÒA",
    "XÃ",
    "HỘI",
    "CHỦ",
    "NGHĨA",
    "VIỆT",
    "NAM",
    "THỊ",
    "Độc",
    "lập",
    "-",
    "Tự",
    "do",
    "-",
    "Hạnh",
    "phúc",
    "triển",
    "AND"
  ],
  "ner_tags": [
    "O",
    "O",
    "O",
    "O",
    "O",
    "O",
    "O",
    "O",
    "O",
    "O",
    "O",
    "O",
    "O",
    "O",
    "O",
    "O",
    "O",
    "O",
    "O",
    "O"
  ]
}

Usage

python
from datasets import load_dataset

dataset = load_dataset("ngocthanhdoan/vietnerm-cccd-dataset")
train = dataset["train"]

# Access a sample
sample = train[0]
print(sample["tokens"])    # ['CĂN', 'CƯỚC', 'CÔNG', 'DÂN', ...]
print(sample["ner_tags"])  # ['O', 'O', 'O', 'O', ...]

Training the NER Model

This dataset is used to train the companion model `ngocthanhdoan/phobert-cccd-ner`.

python
from vietnerm import VietNerm

ner = VietNerm(doc_type="cccd", hf_username="ngocthanhdoan")
result = ner.extract("your document OCR text here")
print(result)

Ethical Use

This dataset is built for research and development purposes only:

  • —✅ AI/NLP research
  • —✅ Document AI development
  • —✅ OCR/NER pipeline prototyping
  • —✅ Educational purposes
  • —❌ Forging documents
  • —❌ Creating fake identity papers
  • —❌ Fraud or deception

About VietNerm

VietNerm is a Document AI Factory for Vietnamese documents. It provides a complete pipeline from template-based synthetic data generation to model training and deployment.