File size: 5,746 Bytes
bb7079f e7372c4 bb7079f e7372c4 |
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 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 |
---
tags:
- text classification
- clustering
- newsgroups
license: unknown
size: 70 MB
language:
- en
description: >
The 20 Newsgroups dataset is a collection of approximately 20,000 newsgroup
documents, partitioned across 20 different newsgroups. It's widely used for
text classification and clustering experiments. The dataset offers three
versions: the original, a date-sorted version, and a version with only "From"
and "Subject" headers.
homepage: http://qwone.com/~jason/20Newsgroups/
task_categories:
- text-classification
- summarization
- question-answering
---
# 20 Newsgroups Dataset
## Introduction
The 20 Newsgroups dataset comprises roughly 20,000 documents from newsgroups, with an almost even distribution across 20 distinct newsgroups. Initially gathered by Ken Lang, this dataset has gained prominence in the machine learning community, particularly for text-related applications like classification and clustering.
## Dataset Structure
The dataset's organization is based on 20 different newsgroups, each representing a unique topic. While some of these newsgroups share similarities or are closely related, others are quite distinct from one another.
### List of Newsgroups:
- Computer Graphics
- Windows OS Miscellaneous
- IBM PC Hardware
- Mac Hardware
- Windows X
- Automobiles
- Motorcycles
- Baseball
- Hockey
- Cryptography
- Electronics
- Medicine
- Space
- Miscellaneous Sales
- Miscellaneous Politics
- Politics & Guns
- Middle East Politics
- Miscellaneous Religion
- Atheism
- Christianity
## Sample Entries
### Sample from `Windows X`
```
From: Bill.Kayser@delft.SGp.slb.COM (Bill Kayser)
Subject: Re: TeleUse, UIM/X, and C++
Article-I.D.: parsival.199304060629.AA00339
Organization: The Internet
Lines: 25
NNTP-Posting-Host: enterpoop.mit.edu
To: xpert@expo.lcs.mit.edu
Cc: Bill.Kayser@delft.sgp.slb.com
>
> Does anyone have any good ideas on how to integrate C++ code elegantly
> with TeleUse, UIM/X / Interface Architect generated code?
>
> Source would be great, but any suggestions are welcome.
It's my understanding that the next release of UIM/X, due out
last February :-) has full support for C++.
I use XDesigner which does not have the interpreter or UI meta languages
of these other tools but does fully support C++ code generation,
reusable templates via C++ classes which are generated, a variety of
other handy features for using C++ and layout functions in different
ways, and generates Motif 1.2 code (including drag 'n drop,
internationalization, etc.). Fits in quite nicely with Doug Young's
paradigm for C++/Motif.
Available in the US from VI Corp, in Europe from Imperial Software,
London (see FAQ for details).
Bill
________________________________________________________________________
Schlumberger Geco Prakla
kayser@delft.sgp.slb.com
```
### Sample from `Electronics`
```
From: baden@sys6626.bison.mb.ca (baden de bari)
Subject: Re: Jacob's Ladder
Organization: System 6626 BBS, Winnipeg Manitoba Canada
Lines: 36
g92m3062@alpha.ru.ac.za (Brad Meier) writes:
> Hi, I'm looking for a circuit, that is called a "Jacob's Ladder".
> This little box is usually seen in sci-fi movies. It consists of
> two curves of wire protruding into the air, with little blue sparks
> starting at their base (where the two wires are closer to each other),
> moving up the wires to the top, and ending in a small crackling noise.
>
> Could anyone supply me with the schematic for the innards of this box?
>
> Thanks in advance
> Mike
>
> (Please reply by email to g90k3853@alpha.ru.ac.za)
>
> --
> | / | | ~|~ /~~\ | | ~|~ /~~\ |~~\ /~~\ The KnightOrc
> |/ |\ | | | __ |__| | | | |__/ | g92m3062@hippo.ru.ac.za
> |\ | \| | | | | | | | | | | | "When it's over I'll go home,
> | \ | | _|_ \__/ | | | \__/ | | \__/ until then, I stay!" - Me
I'd like any accumulated information on this as well please.
Thanks.
_________________________________________
_____ |
| | | |
=========== | Baden de Bari |
| o o | | |
| ^ | | baden@sys6626.bison.ca |
| {-} | | baden@inqmind.bison.ca |
\_____/ | |
-----------------------------------------
```
## Data Availability
The dataset is bundled in `.tar.gz` format. Within each bundle, individual subdirectories represent a newsgroup. Every file within these subdirectories corresponds to a document posted in that specific newsgroup.
There are three primary versions of the dataset:
1. The original version, which remains unaltered.
2. A version sorted by date, which segregates the data into training (60%) and test (40%) sets. This version has removed duplicates and some headers for clarity.
3. A version that only retains the "From" and "Subject" headers, with duplicates removed.
For those seeking a more consistent benchmark, the date-sorted version is recommended. It offers a realistic split based on time and has removed any newsgroup-specific identifiers.
## Matlab/Octave Version
For users of Matlab or Octave, a processed variant of the date-sorted dataset is available. This version is structured as a sparse matrix and includes files like `train.data`, `train.label`, `test.data`, and more. Additionally, a vocabulary file is provided to help users understand the indexed data.
## Additional Information
For more details and the original dataset, you can refer to the [official website](http://qwone.com/~jason/20Newsgroups/).
---
license: cc-by-nc-4.0
--- |