AaronHeee
commited on
Commit
·
f89843e
1
Parent(s):
5c8098e
init
Browse files- .gitattributes +2 -0
- IMDB-database/clean.py +37 -0
- IMDB-database/movie_clean.tsv +3 -0
- IMDB-database/title.basics.tsv +3 -0
- IMDB-database/title.ratings.tsv +3 -0
- README.md +87 -0
- Reddit-Movie-large/sentences.jsonl +3 -0
- Reddit-Movie-large/subreddit/bestofnetflix.jsonl +3 -0
- Reddit-Movie-large/subreddit/movies.jsonl +3 -0
- Reddit-Movie-large/subreddit/moviesuggestions.jsonl +3 -0
- Reddit-Movie-large/subreddit/netflixbestof.jsonl +3 -0
- Reddit-Movie-large/subreddit/truefilm.jsonl +3 -0
- Reddit-Movie-small/sentences.jsonl +3 -0
- Reddit-Movie-small/subreddit/bestofnetflix.jsonl +3 -0
- Reddit-Movie-small/subreddit/movies.jsonl +3 -0
- Reddit-Movie-small/subreddit/moviesuggestions.jsonl +3 -0
- Reddit-Movie-small/subreddit/netflixbestof.jsonl +3 -0
- Reddit-Movie-small/subreddit/truefilm.jsonl +3 -0
.gitattributes
CHANGED
@@ -53,3 +53,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
53 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
54 |
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
55 |
*.webp filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
53 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
54 |
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
55 |
*.webp filter=lfs diff=lfs merge=lfs -text
|
56 |
+
*.jsonl filter=lfs diff=lfs merge=lfs -text
|
57 |
+
*.tsv filter=lfs diff=lfs merge=lfs -text
|
IMDB-database/clean.py
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
""" IMDB database (https://www.imdb.com/interfaces/) is not clean, which can be improved by some heuristic rules
|
2 |
+
rule 1. titleType == 'movie' (from ['short', 'movie', 'tvShort', 'tvMovie', 'tvSeries', 'tvEpisode', 'tvMiniSeries', 'tvSpecial', 'video', 'videoGame', 'tvPilot'])
|
3 |
+
rule 2. runtimeMinutes == '60' - '360' (1h - 6h)
|
4 |
+
rule 3. sorted by numVotes (descending)
|
5 |
+
the cleaned dataset is called “imdb/movie_clean.tsv”
|
6 |
+
"""
|
7 |
+
|
8 |
+
import pandas as pd
|
9 |
+
|
10 |
+
df_basics = pd.read_csv("title.basics.tsv", sep="\t")
|
11 |
+
df_ratings = pd.read_csv("title.ratings.tsv", sep="\t")
|
12 |
+
|
13 |
+
print("Before merging: ", df_basics.shape, df_ratings.shape)
|
14 |
+
|
15 |
+
# merge
|
16 |
+
df = pd.merge(df_basics, df_ratings, on="tconst", how="left")
|
17 |
+
|
18 |
+
# Fill missing values with -1
|
19 |
+
df.fillna(-1, inplace=True)
|
20 |
+
|
21 |
+
print("Before cleaning: ", df.shape)
|
22 |
+
|
23 |
+
# rule 1
|
24 |
+
df = df[df['titleType'] == 'movie']
|
25 |
+
|
26 |
+
print("After Rule 1: ", df.shape)
|
27 |
+
|
28 |
+
# rule 2
|
29 |
+
df = df[df['runtimeMinutes'].apply(lambda x: x.isnumeric() and 60 <= int(x) <= 360)]
|
30 |
+
|
31 |
+
print("After Rule 2: ", df.shape)
|
32 |
+
|
33 |
+
# rule 3
|
34 |
+
df = df.sort_values(by="numVotes", ascending=False)
|
35 |
+
|
36 |
+
# save
|
37 |
+
df.to_csv("movie_clean.tsv", sep="\t", index=False)
|
IMDB-database/movie_clean.tsv
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9ca833be0d10426845466da776e3d85fe3f8003b2c2b5c7c100a28cdd04e1fb0
|
3 |
+
size 31647873
|
IMDB-database/title.basics.tsv
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f4bc11bfdf4a5057463cca7362809742e6997e384db09c0e6e35be0c01e74e75
|
3 |
+
size 833599816
|
IMDB-database/title.ratings.tsv
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:97124ebff2f0a5235c683d4111a9575b3072d661d036841f17a2cd2869c75bd7
|
3 |
+
size 22433095
|
README.md
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
task_categories:
|
3 |
+
- conversational
|
4 |
+
language:
|
5 |
+
- en
|
6 |
+
tags:
|
7 |
+
- recommendation
|
8 |
+
viewer: false
|
9 |
+
---
|
10 |
+
|
11 |
+
# Dataset Card for `Reddit-Movie-raw`
|
12 |
+
|
13 |
+
## Dataset Description
|
14 |
+
|
15 |
+
- **Homepage:** https://github.com/AaronHeee/LLMs-as-Zero-Shot-Conversational-RecSys
|
16 |
+
- **Repository:** https://github.com/AaronHeee/LLMs-as-Zero-Shot-Conversational-RecSys
|
17 |
+
- **Paper:** To appear
|
18 |
+
- **Point of Contact:** [email protected]
|
19 |
+
|
20 |
+
### Dataset Summary
|
21 |
+
|
22 |
+
This dataset provides the raw text from [Reddit](https://reddit.com) related to movie recommendation conversations.
|
23 |
+
The dataset is extracted from the data dump of [pushshift.io](https://arxiv.org/abs/2001.08435) and only for research use.
|
24 |
+
|
25 |
+
### Disclaimer
|
26 |
+
|
27 |
+
⚠️ **Please note that conversations processed from Reddit raw data may include content that is not entirely conducive to a positive experience (e.g., toxic speech). Exercise caution and discretion when utilizing this information.**
|
28 |
+
|
29 |
+
### Folder Structure
|
30 |
+
|
31 |
+
We explain our data folder as follows:
|
32 |
+
|
33 |
+
```bash
|
34 |
+
reddit_movie_raw
|
35 |
+
├── IMDB-database
|
36 |
+
│ ├── clean.py # script to obtain clean IMDB movie titles, which can be used for movie name matching if needed.
|
37 |
+
│ ├── movie_clean.tsv # results after movie title cleaning
|
38 |
+
│ ├── title.basics.tsv # original movie title information from IMDB
|
39 |
+
│ └── title.ratings.tsv # # original movie title and rating information from IMDB
|
40 |
+
├── Reddit-Movie-large
|
41 |
+
│ ├── sentences.jsonl # raw sentences from the subreddit/* data, it can be used for following processing
|
42 |
+
│ └── subreddit # raw text from different subreddits from Jan. 2012 to Dec. 2022 (large)
|
43 |
+
│ ├── bestofnetflix.jsonl
|
44 |
+
│ ├── movies.jsonl
|
45 |
+
│ ├── moviesuggestions.jsonl
|
46 |
+
│ ├── netflixbestof.jsonl
|
47 |
+
│ └── truefilm.jsonl
|
48 |
+
└── Reddit-Movie-small
|
49 |
+
├── sentences.jsonl # raw sentences from the subreddit/* data, it can be used for following processing
|
50 |
+
└── subreddit # raw text from different subreddits from Jan. 2022 to Dec. 2022 (small)
|
51 |
+
├── bestofnetflix.jsonl
|
52 |
+
├── movies.jsonl
|
53 |
+
├── moviesuggestions.jsonl
|
54 |
+
├── netflixbestof.jsonl
|
55 |
+
└── truefilm.jsonl
|
56 |
+
```
|
57 |
+
|
58 |
+
### Data Processing
|
59 |
+
|
60 |
+
We also provide first-version processed Reddit-Movie datasets as [Reddit-Movie-small-V1]() and [Reddit-Movie-large-V1]().
|
61 |
+
Join us if you want to improve the processing quality as well!
|
62 |
+
|
63 |
+
### Citation Information
|
64 |
+
|
65 |
+
Please cite these two papers if you used this raw data, thanks!
|
66 |
+
|
67 |
+
```bib
|
68 |
+
@inproceedings{baumgartner2020pushshift,
|
69 |
+
title={The pushshift reddit dataset},
|
70 |
+
author={Baumgartner, Jason and Zannettou, Savvas and Keegan, Brian and Squire, Megan and Blackburn, Jeremy},
|
71 |
+
booktitle={Proceedings of the international AAAI conference on web and social media},
|
72 |
+
volume={14},
|
73 |
+
pages={830--839},
|
74 |
+
year={2020}
|
75 |
+
}
|
76 |
+
```
|
77 |
+
|
78 |
+
```bib
|
79 |
+
@inproceedings{he23large,
|
80 |
+
title = Large language models as zero-shot conversational recommenders",
|
81 |
+
author = "Zhankui He and Zhouhang Xie and Rahul Jha and Harald Steck and Dawen Liang and Yesu Feng and Bodhisattwa Majumder and Nathan Kallus and Julian McAuley",
|
82 |
+
year = "2023",
|
83 |
+
booktitle = "CIKM"
|
84 |
+
}
|
85 |
+
```
|
86 |
+
|
87 |
+
Please contact [Zhankui He](https://aaronheee.github.io) if you have any questions or suggestions.
|
Reddit-Movie-large/sentences.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:735cf0fb57b53e75dcf1e6ed86ee74b66a3a80301cce6c88ee19ecfe24177995
|
3 |
+
size 518578690
|
Reddit-Movie-large/subreddit/bestofnetflix.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4d636ad6505f4b92a7a06bfd893567788fc4a68f7cae139052e9aa467092a8ba
|
3 |
+
size 33258942
|
Reddit-Movie-large/subreddit/movies.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c419ea103b8a46438dca6aadc6bf6226fab43ac5e839e0a1f165318e320eed5c
|
3 |
+
size 329132814
|
Reddit-Movie-large/subreddit/moviesuggestions.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6e1fafde0f45119634da334ff73429efcdfc0fa9dbf6888003756efbb1a86af1
|
3 |
+
size 583204829
|
Reddit-Movie-large/subreddit/netflixbestof.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5a5f365234df215f2d7d1ad1bb9be1faab65aed8dd05845f9e8050219e246e87
|
3 |
+
size 154359283
|
Reddit-Movie-large/subreddit/truefilm.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c5d28533914a0e80e3236d0daf0bdfa2d2903d7f239c4d66ac6ceed657a06094
|
3 |
+
size 4984443
|
Reddit-Movie-small/sentences.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3703a823b45d37b3b11ba7b84afc0feb4fb361b3a7dc72bc142f8aeb583ab059
|
3 |
+
size 147074704
|
Reddit-Movie-small/subreddit/bestofnetflix.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e4a6661644aa43912e108d4b3e4273ead1a7c0ed929f93bb0efc8ff1d33a7390
|
3 |
+
size 294851
|
Reddit-Movie-small/subreddit/movies.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9e0aa1e282408748d4dedd249e5677bdca2de485613379964da0a7803e5839e5
|
3 |
+
size 68343459
|
Reddit-Movie-small/subreddit/moviesuggestions.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:846f1f07bddca9640d463b59051e7a5e03e08a01377339c71c3ac2b5a21cc2fb
|
3 |
+
size 252040327
|
Reddit-Movie-small/subreddit/netflixbestof.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8eb493140a8b27ccd4d55ff804726693d4d89221e60202b9e5f4ef5789443fbb
|
3 |
+
size 31275409
|
Reddit-Movie-small/subreddit/truefilm.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c0c757762579439eb93a2c4a8a4f9a0280ea4ccb139bf8485e9d15bac5fa5f25
|
3 |
+
size 2649255
|