Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,53 +1,48 @@
|
|
| 1 |
---
|
| 2 |
language:
|
| 3 |
-
- zh
|
| 4 |
license: mit
|
| 5 |
pretty_name: RedNote Covert Advertisement Detection Dataset
|
| 6 |
tags:
|
| 7 |
-
- covert advertisement detection
|
| 8 |
-
- social-media
|
| 9 |
-
- image-text
|
| 10 |
-
- multimodal
|
| 11 |
-
- RedNote
|
| 12 |
-
- Xiaohongshu
|
| 13 |
datasets:
|
| 14 |
-
- Jingyi77/CHASM-Covert_Advertisement_on_RedNote
|
| 15 |
dataset_info:
|
| 16 |
-
- config_name: default
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
configs:
|
| 39 |
-
- config_name: default
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
path: test.parquet
|
| 45 |
-
- split: validation
|
| 46 |
-
path: val.parquet
|
| 47 |
size_categories:
|
| 48 |
-
-
|
| 49 |
-
task_categories:
|
| 50 |
-
- text-classification
|
| 51 |
---
|
| 52 |
|
| 53 |
<!-- @format -->
|
|
@@ -65,16 +60,18 @@ This dataset contains posts from the RedNote platform for covert advertisement d
|
|
| 65 |
| Test | 1000 | 130 | 870 | 5103 |
|
| 66 |
| **Total** | **4992** | **613** | **4379** | **26324** |
|
| 67 |
|
|
|
|
|
|
|
| 68 |
## Field Descriptions
|
| 69 |
|
| 70 |
-
|
| 71 |
|
| 72 |
- `id`: Unique identifier for each post
|
| 73 |
- `title`: Post title
|
| 74 |
- `description`: Post description content
|
| 75 |
- `date`: Publication date (format: MM-DD)
|
| 76 |
- `comments`: List of comments
|
| 77 |
-
- `images`: List of
|
| 78 |
- `image_count`: Number of images
|
| 79 |
- `label`: Label (0=non-advertisement, 1=advertisement)
|
| 80 |
- `split`: Data split (train/validation/test)
|
|
@@ -87,7 +84,7 @@ Each parquet file contains the following fields:
|
|
| 87 |
|
| 88 |
## Data Format
|
| 89 |
|
| 90 |
-
The dataset is stored in WebDataset format, with each sample containing:
|
| 91 |
|
| 92 |
1. One or more image files (.jpg format)
|
| 93 |
2. A JSON metadata file with the following fields:
|
|
@@ -103,17 +100,11 @@ The dataset is stored in WebDataset format, with each sample containing:
|
|
| 103 |
```python
|
| 104 |
from datasets import load_dataset
|
| 105 |
|
| 106 |
-
# Load
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
# Load validation set
|
| 110 |
-
val_dataset = load_dataset("Jingyi77/CHASM-Covert_Advertisement_on_RedNote", split="validation")
|
| 111 |
-
|
| 112 |
-
# Load test set
|
| 113 |
-
test_dataset = load_dataset("Jingyi77/CHASM-Covert_Advertisement_on_RedNote", split="test")
|
| 114 |
|
| 115 |
# Access a sample
|
| 116 |
-
example =
|
| 117 |
metadata = {
|
| 118 |
"id": example["id"],
|
| 119 |
"title": example["title"],
|
|
@@ -136,4 +127,4 @@ If you use this dataset in your research, please cite:
|
|
| 136 |
journal = {Hugging Face Hub},
|
| 137 |
howpublished = {\url{https://huggingface.co/datasets/Jingyi77/CHASM-Covert_Advertisement_on_RedNote}}
|
| 138 |
}
|
| 139 |
-
```
|
|
|
|
| 1 |
---
|
| 2 |
language:
|
| 3 |
+
- zh
|
| 4 |
license: mit
|
| 5 |
pretty_name: RedNote Covert Advertisement Detection Dataset
|
| 6 |
tags:
|
| 7 |
+
- covert advertisement detection
|
| 8 |
+
- social-media
|
| 9 |
+
- image-text
|
| 10 |
+
- multimodal
|
| 11 |
+
- RedNote
|
| 12 |
+
- Xiaohongshu
|
| 13 |
datasets:
|
| 14 |
+
- Jingyi77/CHASM-Covert_Advertisement_on_RedNote
|
| 15 |
dataset_info:
|
| 16 |
+
- config_name: default
|
| 17 |
+
features:
|
| 18 |
+
- name: id
|
| 19 |
+
dtype: string
|
| 20 |
+
- name: title
|
| 21 |
+
dtype: string
|
| 22 |
+
- name: description
|
| 23 |
+
dtype: string
|
| 24 |
+
- name: date
|
| 25 |
+
dtype: string
|
| 26 |
+
- name: comments
|
| 27 |
+
sequence:
|
| 28 |
+
dtype: string
|
| 29 |
+
- name: images
|
| 30 |
+
sequence:
|
| 31 |
+
dtype: string
|
| 32 |
+
- name: image_count
|
| 33 |
+
dtype: int32
|
| 34 |
+
- name: label
|
| 35 |
+
dtype: int8
|
| 36 |
+
- name: split
|
| 37 |
+
dtype: string
|
| 38 |
configs:
|
| 39 |
+
- config_name: default
|
| 40 |
+
data_files:
|
| 41 |
+
- split: default
|
| 42 |
+
path: example.parquet
|
| 43 |
+
|
|
|
|
|
|
|
|
|
|
| 44 |
size_categories:
|
| 45 |
+
- 10<n<100
|
|
|
|
|
|
|
| 46 |
---
|
| 47 |
|
| 48 |
<!-- @format -->
|
|
|
|
| 60 |
| Test | 1000 | 130 | 870 | 5103 |
|
| 61 |
| **Total** | **4992** | **613** | **4379** | **26324** |
|
| 62 |
|
| 63 |
+
> Note: The viewer shows a **small example subset** of the data (60 samples) for demonstration purposes. The complete dataset is available via WebDataset format in the repository.
|
| 64 |
+
|
| 65 |
## Field Descriptions
|
| 66 |
|
| 67 |
+
The example parquet file contains the following fields:
|
| 68 |
|
| 69 |
- `id`: Unique identifier for each post
|
| 70 |
- `title`: Post title
|
| 71 |
- `description`: Post description content
|
| 72 |
- `date`: Publication date (format: MM-DD)
|
| 73 |
- `comments`: List of comments
|
| 74 |
+
- `images`: List of base64-encoded images
|
| 75 |
- `image_count`: Number of images
|
| 76 |
- `label`: Label (0=non-advertisement, 1=advertisement)
|
| 77 |
- `split`: Data split (train/validation/test)
|
|
|
|
| 84 |
|
| 85 |
## Data Format
|
| 86 |
|
| 87 |
+
The complete dataset is stored in WebDataset format, with each sample containing:
|
| 88 |
|
| 89 |
1. One or more image files (.jpg format)
|
| 90 |
2. A JSON metadata file with the following fields:
|
|
|
|
| 100 |
```python
|
| 101 |
from datasets import load_dataset
|
| 102 |
|
| 103 |
+
# Load example dataset
|
| 104 |
+
dataset = load_dataset("Jingyi77/CHASM-Covert_Advertisement_on_RedNote")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
|
| 106 |
# Access a sample
|
| 107 |
+
example = dataset[0]
|
| 108 |
metadata = {
|
| 109 |
"id": example["id"],
|
| 110 |
"title": example["title"],
|
|
|
|
| 127 |
journal = {Hugging Face Hub},
|
| 128 |
howpublished = {\url{https://huggingface.co/datasets/Jingyi77/CHASM-Covert_Advertisement_on_RedNote}}
|
| 129 |
}
|
| 130 |
+
```
|