AnnyNguyen commited on
Commit
3527ed2
·
verified ·
1 Parent(s): 4c0d0ba

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +107 -3
README.md CHANGED
@@ -1,3 +1,107 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ task_categories:
3
+ - text-classification
4
+ language:
5
+ - vi
6
+ ---
7
+ ## Dataset Card for ViSpamReviews
8
+
9
+ ### 1. Dataset Summary
10
+
11
+ **ViSpamReviews** is a Vietnamese e‑commerce review dataset for spam detection, with both:
12
+
13
+ * **Binary task**: `Label` ∈ {0 = non‑spam, 1 = spam}.
14
+ * **Multi‑class task**: `SpamLabel` ∈ {0 = NO-SPAM, 1 = SPAM-1 (fake review), 2 = SPAM-2 (brand‑only), 3 = SPAM-3 (irrelevant)}.
15
+
16
+ It collects reviews from major Vietnamese online shopping platforms, annotated via a strict procedure to identify deceptive or irrelevant content.
17
+
18
+
19
+ ### 2. Supported Tasks and Metrics
20
+
21
+ * **Tasks**
22
+
23
+ * **Binary classification**: Is the review spam?
24
+ * **Multi‑class classification**: Type of spam review.
25
+ * **Metrics**
26
+
27
+ * **Binary**: Accuracy, macro F1
28
+ * **Multi‑class**: Accuracy, macro F1
29
+
30
+ On PhoBERT, the original achieves **86.89%** macro F1 on binary and **72.17%** macro F1 on multi‑class.
31
+
32
+ ### 3. Languages
33
+
34
+ * Vietnamese
35
+
36
+ ### 4. Dataset Structure
37
+
38
+ The unified CSV has these columns:
39
+
40
+ | Column | Type | Description |
41
+ | ----------- | ------ | ------------------------------------------------------------------- |
42
+ | `dataset` | string | Source identifier (always `ViSpamReviews` in this unified version). |
43
+ | `type` | string | Split: `train` / `validation` / `test`. |
44
+ | `comment` | string | The raw user review text. |
45
+ | `Label` | int | Binary spam flag: 0 = non‑spam, 1 = spam. |
46
+ | `SpamLabel` | int | Multi‑class label: 0=NO-SPAM, 1=SPAM-1, 2=SPAM-2, 3=SPAM-3. |
47
+
48
+ ### 5. Data Fields
49
+
50
+ * **Comment** (`str`): The user's product review.
51
+ * **Label** (`int`): Binary spam label.
52
+ * **SpamLabel** (`int`): Spam type (0–3).
53
+ * **type** (`str`): Which split this example belongs to.
54
+ * **dataset** (`str`): Always `ViSpamReviews` for provenance.
55
+
56
+
57
+ ### 6. Usage
58
+
59
+ ```python
60
+ from datasets import load_dataset
61
+
62
+ ds = load_dataset("visolex/vispamreviews")
63
+
64
+ train = ds.filter(lambda ex: ex["type"] == "train")
65
+ val = ds.filter(lambda ex: ex["type"] == "dev")
66
+ test = ds.filter(lambda ex: ex["type"] == "test")
67
+
68
+ print(train[0])
69
+ ```
70
+
71
+
72
+ ### 7. Source & Links
73
+
74
+ * **GitHub (original code & raw data)**
75
+ [https://github.com/sonlam1102/vispamdetection](https://github.com/sonlam1102/vispamdetection)
76
+ * **Original Paper**
77
+ Van Dinh et al. (2022), “Detecting Spam Reviews on Vietnamese E‑Commerce Websites” ([arxiv.org][1])
78
+
79
+ ---
80
+
81
+ ### 8. Licensing and Citation
82
+
83
+ #### License
84
+
85
+ Refer to the GitHub repo’s LICENSE. If unspecified, assume **CC BY 4.0**.
86
+
87
+ #### How to Cite
88
+
89
+ ```bibtex
90
+ @InProceedings{10.1007/978-3-031-21743-2_48,
91
+ author = {Van Dinh, Co and Luu, Son T. and Nguyen, Anh Gia-Tuan},
92
+ title = {Detecting Spam Reviews on Vietnamese E-Commerce Websites},
93
+ booktitle = {Intelligent Information and Database Systems},
94
+ year = {2022},
95
+ publisher = {Springer International Publishing},
96
+ pages = {595--607},
97
+ isbn = {978-3-031-21743-2}
98
+ }
99
+
100
+ @misc{sonlam1102_vispamdetection,
101
+ title = {ViSpamReviews: Spam Reviews Detection on Vietnamese E‑Commerce},
102
+ author = {{sonlam1102}},
103
+ howpublished = {\url{https://github.com/sonlam1102/vispamdetection}},
104
+ year = {2022}
105
+ }
106
+
107
+ ```