Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -1,14 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
This is the subset of the Reuters-21578 benchmark for (plain) text classification.
|
2 |
|
3 |
-
It contains only the documents with a single category label and only the categories that have at least 1 document in both the training and testing sets, same as the filtering scheme by H. Guan et al., 2009. It's suitable for text classification, especially using the models with their own tokenizers such as BERT, which shows good performance on the plain text.
|
4 |
|
5 |
-
On the internet, there are [R52 datasets after pre-processing](https://ana.cachopo.org/datasets-for-single-label-text-categorization), provided by Ana Cardoso-Cachopo.
|
6 |
|
7 |
## Making a subset
|
8 |
|
9 |
-
I used dataset provided with NLTK Python library as a base. The only change in the text is that escaped 'less than' sign (\<) is restored to <.
|
10 |
|
11 |
-
I tried my best to follow the given directions, but **there are inconsistencies with the R52 dataset online**. The total number of documents in other pre-processed R52 dataset is 9,100, whereas mine is 9,130. I'm not sure where this inconsistency
|
12 |
|
13 |
## Distribution
|
14 |
|
@@ -79,9 +91,9 @@ There are 4 columns, each are file id, category id, name of the category, and th
|
|
79 |
|
80 |
Columns are distinguished with tabs (\t).
|
81 |
|
82 |
-
The category id is given in
|
83 |
|
84 |
-
The raw text (most of them) contains New-line character (\n), so
|
85 |
|
86 |
## Notes
|
87 |
|
@@ -91,4 +103,4 @@ If you're using Pandas, you can load the file by
|
|
91 |
|
92 |
```
|
93 |
pandas.read_csv('r52-raw.txt', header=None, sep='\t')
|
94 |
-
```
|
|
|
1 |
+
---
|
2 |
+
license: unknown
|
3 |
+
task_categories:
|
4 |
+
- text-classification
|
5 |
+
language:
|
6 |
+
- en
|
7 |
+
tags:
|
8 |
+
- Reuters
|
9 |
+
pretty_name: R52 Dataset without Pre-processing
|
10 |
+
size_categories:
|
11 |
+
- 1K<n<10K
|
12 |
+
---
|
13 |
This is the subset of the Reuters-21578 benchmark for (plain) text classification.
|
14 |
|
15 |
+
It contains only the documents with a single category label and only the categories that have at least 1 document in both the training and testing sets, the same as the filtering scheme by H. Guan et al., 2009. It's suitable for text classification, especially using the models with their own tokenizers such as BERT, which shows good performance on the plain text.
|
16 |
|
17 |
+
On the internet, there are [R52 datasets after pre-processing](https://ana.cachopo.org/datasets-for-single-label-text-categorization), provided by Ana Cardoso-Cachopo. However I couldn't find the raw R52 dataset without pre-processing, so I built one.
|
18 |
|
19 |
## Making a subset
|
20 |
|
21 |
+
I used the dataset provided with the NLTK Python library as a base. The only change in the text is that the escaped 'less than' sign (\<) is restored to <.
|
22 |
|
23 |
+
I tried my best to follow the given directions, but **there are inconsistencies with the R52 dataset online**. The total number of documents in the other pre-processed R52 dataset is 9,100, whereas mine is 9,130. I'm not sure where this inconsistency comes from. Maybe the NLTK version of Reuters-21578 has some duplicated documents over different categories. (c.f. H. Guan et al. mentioned that their dataset consists of 9,052 documents, which is close to the number of unique documents, 9,053.) So, **please use with caution**.
|
24 |
|
25 |
## Distribution
|
26 |
|
|
|
91 |
|
92 |
Columns are distinguished with tabs (\t).
|
93 |
|
94 |
+
The category id is given in alphabetical order.
|
95 |
|
96 |
+
The raw text (most of them) contains New-line character (\n), so it's quoted with a quote sign. (")
|
97 |
|
98 |
## Notes
|
99 |
|
|
|
103 |
|
104 |
```
|
105 |
pandas.read_csv('r52-raw.txt', header=None, sep='\t')
|
106 |
+
```
|