ZhankuiHe commited on
Commit
3f28ce1
1 Parent(s): d84f29e

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +117 -0
README.md ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ task_categories:
3
+ - conversational
4
+ language:
5
+ - en
6
+ tags:
7
+ - recommendation
8
+ ---
9
+
10
+ # Dataset Card for `Reddit-Movie-small-V1`
11
+
12
+ ## Dataset Description
13
+
14
+ - **Homepage:** https://github.com/AaronHeee/LLMs-as-Zero-Shot-Conversational-RecSys
15
+ - **Repository:** https://github.com/AaronHeee/LLMs-as-Zero-Shot-Conversational-RecSys
16
+ - **Paper:** To appear
17
+ - **Point of Contact:** zhh004@eng.ucsd.edu
18
+
19
+ ### Dataset Summary
20
+
21
+ This dataset contains the recommendation-related conversations in movie domain, only for research use in e.g., conversational recommendation, long-query retrieval tasks.
22
+
23
+ This dataset is ranging from Jan. 2022 to Dec. 2022. Another larger version dataset (from Jan. 2012 to Dec. 2022) can be found [here](https://huggingface.co/datasets/ZhankuiHe/reddit_movie_large_v1).
24
+
25
+
26
+ ### Dataset Processing
27
+
28
+ We dump [Reddit](https://reddit.com) conversations from [pushshift.io](https://pushshift.io), converted them into [raw text](https://huggingface.co/datasets/ZhankuiHe/reddit_movie_raw) on Reddit about movie recommendations from five subreddits:
29
+
30
+ - [r/movies](https://www.reddit.com/r/movies/)
31
+ - [r/moviesuggestions](https://www.reddit.com/r/suggestions/)
32
+ - [r/bestofnetflix](https://www.reddit.com/r/bestofnetflix/)
33
+ - [r/nextflixbestof](https://www.reddit.com/r/netflixbestof/)
34
+ - [r/truefilm](https://www.reddit.com/r/truefilm/)
35
+
36
+
37
+ After that, we process them by:
38
+ 1. extracting movie recommendation conversations;
39
+ 2. recognizing movie mentions in raw text;
40
+ 3. linking movie mentions to existing movie entities in [IMDB](https://imdb.com) database.
41
+
42
+ Since the raw text is quite noisy and processing is not perfect, we do observe some failure cases in our processed data. Thus we use V1 to highlight that this processed version is the first verion. Welcome to contribute to cleaner processed versions (such as V2) in the future, many thanks!
43
+
44
+ ### Disclaimer
45
+
46
+ ⚠️ **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.**
47
+
48
+ ## Dataset Structure
49
+
50
+ ### Data Fields
51
+
52
+ - `id2name.json` provides a lookup table (dictionary) from `itemid` (e.g., `tt0053779`) to `itemname` (e.g., `La Dolce Vita (1960)`). Note that, the `itemid` is from [IMDB](https://imdb.com), so that it can be used to align other movie recommendation datasets sharing the same `itemid`, such as [MovieLens](https://movielens.org/).
53
+ - `{train, valid, test}.csv` are question-answer pairs that can be used for training, validation and testing (split by the dialog created timestamp in their chronological order, ranging from far to recent). There are four columns in these `*.csv` files:
54
+ - `conv_id (string)`: Conversational ID. Since our conversations are collected from reddit posts, we generate conversations by extracting paths in a reddit thread with different replies. An example of `conv_id` is:
55
+ ```
56
+ "t3_rt7enj_0/14" # -> t3_rt7enj is the ID of the first post in the thread, 0 means this is the first path extracted from this thread, and 13 means there are 13 paths in total.
57
+ ```
58
+ - `turn_id (string)`: Conversational turn ID. For example:
59
+ ```
60
+ "t3_rt7enj" # -> We can use (conv_id, turn_id) to uniquely define a row in this dataset.
61
+ ```
62
+ - `turn_order (int64)`: No.X turn in a given conversation, which can be used to sort turns within the conversation. For example:
63
+ ```
64
+ 0 # -> It is the first turn in this conversation. Typically, for conversations from Reddit, the number of turns is usually not very large.
65
+ ```
66
+ - `is_seeker (bool)`: Whether the speaker at the current turn is the seeker for recommendation or not. For example
67
+ ```
68
+ true # -> It is the seeker (seeker starts a movie requesting conversation on Reddit).
69
+ ```
70
+ - `utc_time (int64)`: The UTC timestamp when this conversation turn happend. For example:
71
+ ```
72
+ 1641234238 # -> Try datetime.fromtimestamp(1641234238)
73
+ ```
74
+ - `upvotes (int64)`: The number of upvotes from other reddit users (it is `null` if this post is the first post in this thread, because upvotes only work for replies.). For example:
75
+ ```
76
+ 6 # -> 6 upvotes from other Reddit users.
77
+ ```
78
+
79
+ ### Data Splits
80
+
81
+ We hold the last 20% data (in chronological order according to the created time of the conversation) as testing set. Others can be treated as training samples. We provided a suggested split to split Train into Train and Validation but you are free to try your splits.
82
+
83
+ | | Total | Train + Validation | Test |
84
+ | - | - | - | - |
85
+ | #Conv. | 171,773 | 154,597 | 17,176 |
86
+ | #Turns | 419,233 | 377,614 | 41,619 |
87
+ | #Users | 12,508 | 11,477 | 1,384 |
88
+ | #Items | 31,396 | 30,146 | 10,434 |
89
+
90
+
91
+ ### Citation Information
92
+
93
+
94
+ Please cite these two papers if you used this raw data, thanks!
95
+
96
+ ```bib
97
+ @inproceedings{baumgartner2020pushshift,
98
+ title={The pushshift reddit dataset},
99
+ author={Baumgartner, Jason and Zannettou, Savvas and Keegan, Brian and Squire, Megan and Blackburn, Jeremy},
100
+ booktitle={Proceedings of the international AAAI conference on web and social media},
101
+ volume={14},
102
+ pages={830--839},
103
+ year={2020}
104
+ }
105
+ ```
106
+
107
+ ```bib
108
+ @inproceedings{he23large,
109
+ title = Large language models as zero-shot conversational recommenders",
110
+ 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",
111
+ year = "2023",
112
+ booktitle = "CIKM"
113
+ }
114
+ ```
115
+
116
+ Please contact [Zhankui He](https://aaronheee.github.io) if you have any questions or suggestions.
117
+