--- language: - en - zh tags: - chinese - traditional-chinese license: apache-2.0 task_categories: - text-classification pretty_name: Traditional Chinese vs Simplified Chinese Classification Dataset size_categories: - 100K 384) if len(long_text_sample) > 0: chunks = chunk_text(long_text_sample[0]['text']) print(f"#chunks: {len(chunks['input_ids'])}") ``` ## Use Cases ### ✅ Recommended * **Text classification training**: fine-tuning Transformers (BERT, RoBERTa, etc.) * **Origin variety identification**: infer TW vs. Mainland usage * **Data cleaning**: standardizing mixed-corpus resources * **Cross-domain transfer learning**: as a pretraining resource * **Benchmarking**: evaluation bed for Chinese NLP models ### ⚠️ Limitations & Notes 1. **Hong Kong Traditional excluded**: only Taiwan Traditional and Mainland Traditional 2. **Domain bias**: higher share of social media and news; fewer professional domains (medical, legal) 3. **Temporal coverage**: collected up to Oct 2025; latest internet slang not guaranteed 4. **Code-mixing**: small proportion of zh–en mixed texts may affect purely monolingual tasks 5. **Label ambiguity**: ~2–3% borderline samples (generic lexicon, literary styles) ### 🚫 Not Recommended * Hong Kong Traditional classification (requires additional labeling) * Classical Chinese/literary analysis (modern text focus) * Ultra-short text (< 10 characters; consider filtering) * Highly specialized domains (augment with domain data) ## Evaluation & Baselines ### Verified Model Using this dataset, `renhehuang/bert-traditional-chinese-classifier` achieved: * **Accuracy**: 87.71% * **F1**: 0.8771 * **Training samples**: 156,824 (subset of this dataset) ### Recommended Metrics * Accuracy (overall) * F1 score (macro/weighted) * Confusion matrix * Stratified performance by text length ### Baseline Training Setup ```python from transformers import Trainer, TrainingArguments training_args = TrainingArguments( output_dir="./results", evaluation_strategy="epoch", learning_rate=2e-5, per_device_train_batch_size=16, per_device_eval_batch_size=16, num_train_epochs=4, weight_decay=0.01, save_strategy="epoch", load_best_model_at_end=True, metric_for_best_model="eval_accuracy", ) ``` ## Ethics & Fairness ### Privacy * ✅ All personally identifiable information (PII) removed or anonymized * ✅ No sensitive political, religious, or racial content included * ✅ Social media content de-identified ### Bias & Fairness * ⚠️ Potential source-side bias (media stance) * ⚠️ No balancing on gender/age demographics * ⚠️ Skew toward certain topics (tech, entertainment) ### Usage Guidance 1. **Avoid discriminatory applications**: do not use to disadvantage specific regions 2. **Human-in-the-loop**: add human review for critical decisions 3. **Ongoing monitoring**: track fairness metrics after deployment 4. **Transparency**: disclose dataset source when training models ## License & Citation ### License This dataset is released under **CC BY 4.0** (Creative Commons Attribution 4.0 International): * ✅ Commercial use * ✅ Modification and derivatives * ✅ Distribution and re-licensing * ⚠️ Attribution required ### Citation If you use this dataset, please cite: ```bibtex @misc{traditional-chinese-classification-dataset, title = {Traditional Chinese vs Simplified Chinese Classification Dataset}, author = {Huang, Renhe}, year = {2025}, month = {10}, publisher = {Hugging Face}, howpublished = {\url{https://huggingface.co/datasets/renhehuang/traditional-chinese-classification}}, note = {205,850 balanced samples for Traditional/Simplified Chinese classification} } ``` ### Related Resources * 🤗 **Model**: [renhehuang/bert-traditional-chinese-classifier](https://huggingface.co/renhehuang/bert-traditional-chinese-classifier) * 📊 **Project repo**: [GitHub](https://github.com/Edwarddev0723/bert-base-chinese-traditional-classifier) * 📝 **Technical report**: see project README ## Maintenance & Updates ### Version History * **v1.0** (2025-10-29): Initial release, 205,850 samples ### Known Issues 1. Most `original_text` fields are null (reserved for future expansion) 2. Some `mainland_terms` annotations may be incomplete 3. `fragment_start/end` can be NaN for full-sentence samples ### Roadmap * [ ] Add Hong Kong Traditional label (planned v2.0) * [ ] Expand professional domains (medical, legal, finance) * [ ] Provide pre-split train/val/test sets * [ ] Add multimodal data (images, ASR transcripts) ## Contact * **Dataset issues**: open a Discussion on the [Hugging Face dataset page](https://huggingface.co/datasets/renhehuang/traditional-chinese-classification) * **Model-related**: use [GitHub Issues](https://github.com/Edwarddev0723/bert-base-chinese-traditional-classifier/issues) * **Collaboration**: contact via Hugging Face private messages --- ## Appendix: Quick Stats ```python # Dataset statistics (summary) { "total_samples": 205850, "labels": { "簡體中文": 102925, "繁體中文": 102925 }, "file_format": "parquet", "file_size_mb": 47.09, "compression": "snappy", "avg_text_length": 56.3, "median_text_length": 48, "min_text_length": 10, "max_text_length": 384, "source_types": { "sentence_fragment": "~85%", "full_sentence": "~10%", "paragraph": "~5%" } } ``` ## Acknowledgements Thanks to all data providers, annotators, and the open-source community. Special thanks to: * CKIP Lab (base BERT model) * OpenCC (Simp/Trad conversion) * Hugging Face (dataset hosting) * All users who provided feedback and suggestions