Datasets:
FredZhang7
commited on
Commit
·
07f2767
1
Parent(s):
ac4878e
add description
Browse files
README.md
CHANGED
@@ -50,19 +50,22 @@ This is a large corpus of 41,578 preprocessed sms spam messages and emails sent
|
|
50 |
|
51 |
<br>
|
52 |
|
53 |
-
|
54 |
- [spam_assassin.js](./spam_assassin.js), followed by [spam_assassin.py](./spam_assassin.py)
|
55 |
- [enron_spam.py](./enron_spam.py)
|
56 |
|
57 |
-
<br>
|
58 |
|
59 |
-
|
60 |
![](./spam_counts.png)
|
61 |
|
|
|
|
|
62 |
|
63 |
-
|
|
|
|
|
64 |
|
65 |
-
|
66 |
- https://huggingface.co/datasets/sms_spam
|
67 |
- https://github.com/MWiechmann/enron_spam_data
|
68 |
- https://github.com/stdlib-js/datasets-spam-assassin
|
|
|
50 |
|
51 |
<br>
|
52 |
|
53 |
+
## Some preprcoessing algorithms
|
54 |
- [spam_assassin.js](./spam_assassin.js), followed by [spam_assassin.py](./spam_assassin.py)
|
55 |
- [enron_spam.py](./enron_spam.py)
|
56 |
|
|
|
57 |
|
58 |
+
## Data composition
|
59 |
![](./spam_counts.png)
|
60 |
|
61 |
+
## Description
|
62 |
+
To make the text format between sms messages and emails consistent, email subjects and content are separated by two newlines:
|
63 |
|
64 |
+
```python
|
65 |
+
text = email.subject + "\n\n" + email.content
|
66 |
+
```
|
67 |
|
68 |
+
## Original source
|
69 |
- https://huggingface.co/datasets/sms_spam
|
70 |
- https://github.com/MWiechmann/enron_spam_data
|
71 |
- https://github.com/stdlib-js/datasets-spam-assassin
|