--- language: - zh license: mit size_categories: - 100K= 1.3.0 datasets >= 2.0.0 transformers >= 4.20.0 torch >= 1.10.0 # 可选 / Optional tensorflow >= 2.8.0 # 可选 / Optional ``` ### 加载方式 / Loading Methods #### 1. 使用 Hugging Face Datasets ```python from datasets import load_dataset # 加载完整数据集 / Load full dataset dataset = load_dataset("xingqiang/chinese-herbal-medicine-sentiment") # 访问训练集和验证集 / Access train and validation sets train_data = dataset['train'] val_data = dataset['validation'] # 查看数据样例 / View data sample print(train_data[0]) ``` #### 2. 使用 Pandas ```python import pandas as pd # 从 CSV 文件加载 / Load from CSV df = pd.read_csv("chinese_herbal_sentiment.csv") # 查看基本信息 / View basic info print(df.info()) print(df.head()) ``` ### 数据分割 / Data Splits - **训练集 / Training Set**: 90% (211,391 样本 / samples) - **验证集 / Validation Set**: 10% (23,487 样本 / samples) - **分割方式 / Split Method**: 随机分割 / Random split (seed=42) ## 伦理考虑 / Ethical Considerations ### 隐私保护 / Privacy Protection - **用户隐私 / User Privacy**: 所有用户名已匿名化处理 / All usernames are anonymized - **个人信息 / Personal Information**: 不含任何个人身份信息 / No personal identifying information - **数据脱敏 / Data Desensitization**: 保留分析价值同时保护用户隐私 / Preserve analytical value while protecting privacy ### 使用限制 / Usage Restrictions - **学术研究 / Academic Research**: 鼓励用于学术研究和教育 / Encouraged for academic research and education - **商业用途 / Commercial Use**: 遵循 MIT 许可证条款 / Follow MIT license terms - **数据再分发 / Data Redistribution**: 允许在保持归属的情况下再分发 / Allowed with proper attribution ### 潜在偏见 / Potential Biases - **时间偏见 / Temporal Bias**: 数据跨越多年,可能存在时间相关的偏见 / Data spans multiple years, potential temporal biases - **平台偏见 / Platform Bias**: 来自特定电商平台,可能不代表整体市场 / From specific e-commerce platforms, may not represent overall market - **产品偏见 / Product Bias**: 仅包含中药产品,情感表达可能具有领域特性 / Only includes herbal medicine products, sentiment expressions may be domain-specific ## 质量保证 / Quality Assurance ### 数据验证 / Data Validation - ✅ 无重复记录 / No duplicate records - ✅ 无缺失值 / No missing values - ✅ 时间格式一致 / Consistent time format - ✅ 情感标签有效 / Valid sentiment labels - ✅ 文本编码正确 / Correct text encoding ### 统计检查 / Statistical Checks - ✅ 情感分布合理 / Reasonable sentiment distribution - ✅ 评分与情感标签对应 / Rating-sentiment correspondence - ✅ 时间分布连续 / Continuous temporal distribution - ✅ 产品覆盖充分 / Sufficient product coverage ## 版本历史 / Version History ### v1.0.0 (2024-08-26) - 初始发布 / Initial release - 包含 234,879 条评论数据 / Contains 234,879 reviews - 支持三分类情感分析任务 / Supports 3-class sentiment analysis task ## 引用方式 / Citation 如果您在研究中使用了此数据集,请引用: If you use this dataset in your research, please cite: ```bibtex @dataset{chinese_herbal_sentiment_2024, title={Chinese Herbal Medicine Sentiment Analysis Dataset}, author={Chen, Xingqiang}, year={2024}, version={1.0.0}, url={https://huggingface.co/datasets/xingqiang/chinese-herbal-medicine-sentiment}, note={A comprehensive sentiment analysis dataset for Traditional Chinese Medicine product reviews} } ``` ## 联系方式 / Contact - **数据集维护者 / Dataset Maintainer**: Xingqiang Chen - **Hugging Face**: [xingqiang](https://huggingface.co/xingqiang) - **问题反馈 / Issue Reports**: 请在 Hugging Face 数据集页面提交 / Please submit on the Hugging Face dataset page ## 致谢 / Acknowledgments 感谢所有提供评论数据的用户,以及中医药电商平台提供的数据基础。 Thanks to all users who provided review data and the e-commerce platforms for the data foundation. --- **最后更新 / Last Updated**: 2025-08-26 02:50:03 **数据集大小 / Dataset Size**: ~9.5 MB (文本内容 / text content)