Commit ·
6653cf7
0
Parent(s):
Duplicate from Nischithhh/ipmattards
Browse files- .gitattributes +60 -0
- README.md +82 -0
- hf_comments/data-00000-of-00001.arrow +3 -0
- hf_comments/dataset_info.json +48 -0
- hf_comments/state.json +15 -0
- hf_posts/data-00000-of-00001.arrow +3 -0
- hf_posts/dataset_info.json +44 -0
- hf_posts/state.json +15 -0
- parquet_export/comments.parquet +3 -0
- parquet_export/posts.parquet +3 -0
- reddit_data.db +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
# Audio files - uncompressed
|
| 39 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
# Audio files - compressed
|
| 43 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
# Image files - uncompressed
|
| 49 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
# Image files - compressed
|
| 54 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
# Video files - compressed
|
| 58 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
reddit_data.db filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: mit
|
| 5 |
+
task_categories:
|
| 6 |
+
- text-generation
|
| 7 |
+
- question-answering
|
| 8 |
+
tags:
|
| 9 |
+
- reddit
|
| 10 |
+
- education
|
| 11 |
+
- ipmat
|
| 12 |
+
- entrance-exam
|
| 13 |
+
- india
|
| 14 |
+
size_categories:
|
| 15 |
+
- 1K<n<10K
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# r/IPMATtards Reddit Dataset
|
| 19 |
+
|
| 20 |
+
## Dataset Description
|
| 21 |
+
|
| 22 |
+
This dataset contains scraped posts and comments from the **r/IPMATtards** subreddit, a community dedicated to aspirants of the **Integrated Programme in Management Aptitude Test (IPMAT)** in India.
|
| 23 |
+
|
| 24 |
+
The data is structured into two main components:
|
| 25 |
+
1. **Posts**: Top-level submissions including titles, body text, scores, and metadata.
|
| 26 |
+
2. **Comments**: Threaded replies associated with the posts, including recursion depth and parent-child relationships.
|
| 27 |
+
|
| 28 |
+
## Dataset Structure
|
| 29 |
+
|
| 30 |
+
The dataset is provided in **Parquet** format, optimized for the Hugging Face Hub.
|
| 31 |
+
|
| 32 |
+
### 1. Posts (`posts.parquet`)
|
| 33 |
+
|
| 34 |
+
| Feature | Type | Description |
|
| 35 |
+
|:--------|:-----|:------------|
|
| 36 |
+
| `id` | string | Unique Reddit ID for the post (e.g., `t3_xyz`) |
|
| 37 |
+
| `title` | string | Title of the post |
|
| 38 |
+
| `author` | string | Reddit username of the author |
|
| 39 |
+
| `body` | string | The main text content of the post |
|
| 40 |
+
| `score` | int64 | Net upvotes (karma) at time of scraping |
|
| 41 |
+
| `comments_count` | int64 | Number of comments on the post |
|
| 42 |
+
| `created_utc` | string | Creation timestamp (UTC) |
|
| 43 |
+
| `url` | string | Direct URL to the reddit post |
|
| 44 |
+
| `crawled_at` | string | Timestamp when the data was scraped |
|
| 45 |
+
|
| 46 |
+
### 2. Comments (`comments.parquet`)
|
| 47 |
+
|
| 48 |
+
| Feature | Type | Description |
|
| 49 |
+
|:--------|:-----|:------------|
|
| 50 |
+
| `id` | string | Unique Reddit ID for the comment (e.g., `t1_abc`) |
|
| 51 |
+
| `post_id` | string | ID of the parent post (`t3_...`) |
|
| 52 |
+
| `parent_id` | string | ID of the parent comment or post this replies to |
|
| 53 |
+
| `author` | string | Reddit username of the author |
|
| 54 |
+
| `body` | string | Text content of the comment |
|
| 55 |
+
| `score` | int64 | Net upvotes |
|
| 56 |
+
| `depth` | int64 | Nesting level (0 = top-level comment) |
|
| 57 |
+
| `path` | string | Materialized path for reconstructing the tree |
|
| 58 |
+
| `created_utc` | string | Creation timestamp (UTC) |
|
| 59 |
+
|
| 60 |
+
## Usage
|
| 61 |
+
|
| 62 |
+
You can load this dataset directly using the `datasets` library:
|
| 63 |
+
|
| 64 |
+
```python
|
| 65 |
+
from datasets import load_dataset
|
| 66 |
+
|
| 67 |
+
# Load posts
|
| 68 |
+
posts = load_dataset("parquet", data_files="parquet_export/posts.parquet", split="train")
|
| 69 |
+
|
| 70 |
+
# Load comments
|
| 71 |
+
comments = load_dataset("parquet", data_files="parquet_export/comments.parquet", split="train")
|
| 72 |
+
|
| 73 |
+
print(posts[0])
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
## Collection
|
| 77 |
+
|
| 78 |
+
This data was collected using a custom Python scraper utilizing `requests` and `BeautifulSoup`. It targets the old.reddit.com interface for efficiency.
|
| 79 |
+
|
| 80 |
+
## License
|
| 81 |
+
|
| 82 |
+
This dataset is distributed under the MIT License. Please respect Reddit's API cleaning rules and user privacy when using this data.
|
hf_comments/data-00000-of-00001.arrow
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5903c14b6aba20716b25dd42fffb68ecc2fb6deb9e3e6c29e82af895baae96ac
|
| 3 |
+
size 581744
|
hf_comments/dataset_info.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"citation": "",
|
| 3 |
+
"description": "",
|
| 4 |
+
"features": {
|
| 5 |
+
"id": {
|
| 6 |
+
"dtype": "string",
|
| 7 |
+
"_type": "Value"
|
| 8 |
+
},
|
| 9 |
+
"post_id": {
|
| 10 |
+
"dtype": "string",
|
| 11 |
+
"_type": "Value"
|
| 12 |
+
},
|
| 13 |
+
"parent_id": {
|
| 14 |
+
"dtype": "string",
|
| 15 |
+
"_type": "Value"
|
| 16 |
+
},
|
| 17 |
+
"author": {
|
| 18 |
+
"dtype": "string",
|
| 19 |
+
"_type": "Value"
|
| 20 |
+
},
|
| 21 |
+
"body": {
|
| 22 |
+
"dtype": "string",
|
| 23 |
+
"_type": "Value"
|
| 24 |
+
},
|
| 25 |
+
"score": {
|
| 26 |
+
"dtype": "int64",
|
| 27 |
+
"_type": "Value"
|
| 28 |
+
},
|
| 29 |
+
"created_utc": {
|
| 30 |
+
"dtype": "string",
|
| 31 |
+
"_type": "Value"
|
| 32 |
+
},
|
| 33 |
+
"crawled_at": {
|
| 34 |
+
"dtype": "string",
|
| 35 |
+
"_type": "Value"
|
| 36 |
+
},
|
| 37 |
+
"depth": {
|
| 38 |
+
"dtype": "float64",
|
| 39 |
+
"_type": "Value"
|
| 40 |
+
},
|
| 41 |
+
"path": {
|
| 42 |
+
"dtype": "string",
|
| 43 |
+
"_type": "Value"
|
| 44 |
+
}
|
| 45 |
+
},
|
| 46 |
+
"homepage": "",
|
| 47 |
+
"license": ""
|
| 48 |
+
}
|
hf_comments/state.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_data_files": [
|
| 3 |
+
{
|
| 4 |
+
"filename": "data-00000-of-00001.arrow"
|
| 5 |
+
}
|
| 6 |
+
],
|
| 7 |
+
"_fingerprint": "0b089e639db0dcbd",
|
| 8 |
+
"_format_columns": null,
|
| 9 |
+
"_format_kwargs": {
|
| 10 |
+
"keep_parquet_happy": true
|
| 11 |
+
},
|
| 12 |
+
"_format_type": null,
|
| 13 |
+
"_output_all_columns": false,
|
| 14 |
+
"_split": null
|
| 15 |
+
}
|
hf_posts/data-00000-of-00001.arrow
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9d6036c9e8c8d3d0cae780f5ab2d9db9483e7725b1c325782ec08c09536816f5
|
| 3 |
+
size 158728
|
hf_posts/dataset_info.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"citation": "",
|
| 3 |
+
"description": "",
|
| 4 |
+
"features": {
|
| 5 |
+
"id": {
|
| 6 |
+
"dtype": "string",
|
| 7 |
+
"_type": "Value"
|
| 8 |
+
},
|
| 9 |
+
"title": {
|
| 10 |
+
"dtype": "string",
|
| 11 |
+
"_type": "Value"
|
| 12 |
+
},
|
| 13 |
+
"author": {
|
| 14 |
+
"dtype": "string",
|
| 15 |
+
"_type": "Value"
|
| 16 |
+
},
|
| 17 |
+
"body": {
|
| 18 |
+
"dtype": "string",
|
| 19 |
+
"_type": "Value"
|
| 20 |
+
},
|
| 21 |
+
"score": {
|
| 22 |
+
"dtype": "int64",
|
| 23 |
+
"_type": "Value"
|
| 24 |
+
},
|
| 25 |
+
"comments_count": {
|
| 26 |
+
"dtype": "int64",
|
| 27 |
+
"_type": "Value"
|
| 28 |
+
},
|
| 29 |
+
"created_utc": {
|
| 30 |
+
"dtype": "string",
|
| 31 |
+
"_type": "Value"
|
| 32 |
+
},
|
| 33 |
+
"url": {
|
| 34 |
+
"dtype": "string",
|
| 35 |
+
"_type": "Value"
|
| 36 |
+
},
|
| 37 |
+
"crawled_at": {
|
| 38 |
+
"dtype": "string",
|
| 39 |
+
"_type": "Value"
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
"homepage": "",
|
| 43 |
+
"license": ""
|
| 44 |
+
}
|
hf_posts/state.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_data_files": [
|
| 3 |
+
{
|
| 4 |
+
"filename": "data-00000-of-00001.arrow"
|
| 5 |
+
}
|
| 6 |
+
],
|
| 7 |
+
"_fingerprint": "3690942c6b9dae47",
|
| 8 |
+
"_format_columns": null,
|
| 9 |
+
"_format_kwargs": {
|
| 10 |
+
"keep_parquet_happy": true
|
| 11 |
+
},
|
| 12 |
+
"_format_type": null,
|
| 13 |
+
"_output_all_columns": false,
|
| 14 |
+
"_split": null
|
| 15 |
+
}
|
parquet_export/comments.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8caaaee7e52f94f9ce9e2b59f058b5a49a933fc181888a2cfd11d7353325a834
|
| 3 |
+
size 260213
|
parquet_export/posts.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cce18f1cdfaa0a72281527fd2af443ad81533bb6c6c90009c1517723cefa4dc8
|
| 3 |
+
size 95712
|
reddit_data.db
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:10df535e8801fc08384af65db986147853ed94000fe5e3c2bd7758660413f027
|
| 3 |
+
size 835584
|