jylin001206 commited on
Commit
1f7d23e
·
verified ·
1 Parent(s): 2e1b99e

Upload folder using huggingface_hub

Browse files
Files changed (4) hide show
  1. .gitattributes +2 -0
  2. README.md +52 -3
  3. test.jsonl +3 -0
  4. train.jsonl +3 -0
.gitattributes CHANGED
@@ -57,3 +57,5 @@ saved_model/**/* 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
 
 
 
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
60
+ test.jsonl filter=lfs diff=lfs merge=lfs -text
61
+ train.jsonl filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,52 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CommunityBench
2
+
3
+ ## Dataset Description
4
+
5
+ CommunityBench is a benchmark dataset for evaluating language models' ability to understand and align with online community preferences. The dataset is constructed from Reddit posts and comments, focusing on real-world scenarios where models need to reason about community values, predict preference distributions, identify community-specific communication patterns, and generate content that aligns with community norms.
6
+
7
+ ## Dataset Structure
8
+
9
+ The dataset consists of two splits:
10
+ - **train.jsonl**: Training set
11
+ - **test.jsonl**: Test/evaluation set
12
+
13
+ Each line in the JSONL files contains a JSON object representing a single sample.
14
+
15
+ ## Task Types
16
+
17
+ The dataset includes four distinct tasks:
18
+
19
+ 1. **`pref_id`** (Preference Identification): Identify which option best matches a community's preferences
20
+ 2. **`dist_pred`** (Distribution Prediction): Predict the popularity distribution across multiple options
21
+ 3. **`com_pred`** (Communication Prediction): Predict community-specific communication patterns
22
+ 4. **`steer_gen`** (Steering Generation): Generate content that aligns with community norms and preferences
23
+
24
+ ## Dataset Statistics
25
+
26
+ - **Task distribution**: Each task type (`pref_id`, `dist_pred`, `com_pred`, `steer_gen`) has an equal number of samples
27
+ - **Options per sample** (for tasks with options): Average ~4.0 options per sample
28
+
29
+ ## Usage
30
+
31
+ You can load and use the dataset with the Hugging Face `datasets` library:
32
+
33
+ ```python
34
+ from datasets import load_dataset
35
+
36
+ dataset = load_dataset("jylin001206/communitybench", split="train")
37
+ ```
38
+
39
+ Or load specific splits:
40
+
41
+ ```python
42
+ train_dataset = load_dataset("jylin001206/communitybench", split="train")
43
+ test_dataset = load_dataset("jylin001206/communitybench", split="test")
44
+ ```
45
+
46
+ ## Data Fields
47
+
48
+ Each sample in the dataset contains community portraits, request-option sets, and task-specific annotations. The exact schema depends on the task type and includes information about:
49
+ - Subreddit and thread context
50
+ - Community portraits
51
+ - Request-option pairs
52
+ - Ground truth labels or distributions
test.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37f6bf1240ea75601e014c33e05a146798c1808712fe6de17ad82da8a4e23df3
3
+ size 939046926
train.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0fbe077e583c428351dc538538531fbb936302d7b5b76be9d7ad27396c47e535
3
+ size 84038680846