File size: 1,359 Bytes
17ae981
 
13aa780
 
 
1068494
13aa780
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1068494
 
 
 
20ca969
8d987aa
1068494
 
17ae981
ac4878e
 
 
 
1068494
fab3052
ee3097e
 
 
6bde80f
1068494
 
 
6bde80f
1068494
6bde80f
3376ef7
ee3097e
6bde80f
 
 
07f2767
ee3097e
07f2767
 
 
ee3097e
6bde80f
 
 
ee3097e
 
58a1736
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
license: apache-2.0
language:
- de
- id
- 'no'
- hu
- tl
- cs
- da
- vi
- nl
- lv
- tr
- sl
- af
- sw
- fi
- cy
- sq
- hr
- lt
- et
- en
- fr
- sv
- it
- so
- es
- bn
- pl
- ca
- sk
- pt
- ro
task_categories:
- text-classification
- zero-shot-classification
tags:
- nlp
- moderation
size_categories:
- 10K<n<100K
---
**I have decided to release the auto-moderation models all at once sometime in July, 2023. The curated datasets for training these models will be avaliable first.**

<br>


This is a large corpus of 41,578 preprocessed sms messages and emails sent by humans in 32 languages. `is_spam=1` means spam and `is_spam=0` means ham.

<br>

### Some preprcoessing algorithms
- [spam_assassin.js](./spam_assassin.js), followed by [spam_assassin.py](./spam_assassin.py)
- [enron_spam.py](./enron_spam.py)

<br>

### Data composition
![Spam vs Non-spam (Ham)](https://i.imgur.com/9hBvc37.png)

<br>

### Description
To make the text format between sms messages and emails consistent, email subjects and content are separated by two newlines:

```python
text = email.subject + "\n\n" + email.content
```

<br>

### Original source
- https://huggingface.co/datasets/sms_spam
- https://github.com/MWiechmann/enron_spam_data
- https://github.com/stdlib-js/datasets-spam-assassin
- https://repository.ortolang.fr/api/content/comere/v3.3/cmr-simuligne.html