Update data card to wvs-aligned format
Browse files
README.md
CHANGED
|
@@ -1,325 +1,175 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
-
|
| 9 |
-
该数据集整理了一段时间内不同个体的博客内容,愿数据集总计68万条博客。
|
| 10 |
-
原始数据形式: 【id,gender,age,topic,sign,date,text】 (同一ID表示同一个人)
|
| 11 |
-
例如:第一条数据 2059027,male,15,Student,Leo,"14,May,2004"," Info has been found (+/- 100 pages, and 4.5 MB of .pdf files) Now i have to wait untill our team leader has processed it and learns html. "
|
| 12 |
|
| 13 |
-
数据
|
| 14 |
-
考虑到该数据集非结构化,个人色彩较强,在总结人格特质和生成问题时需要模型一定的发散性思维。observation和question的处理中设置temperature为0.6
|
| 15 |
-
抽样多个个体进行多次提取,observation数量差别<=3%.各observation和question之间语义基本一致。
|
| 16 |
|
| 17 |
-
|
| 18 |
-
1,由于总数量过大,将总数据集按每20000条切分处理
|
| 19 |
|
| 20 |
-
|
| 21 |
-
考虑到单个个体需要足够数量的信息,个体博客数量小于20条的跳过,不再进行后续处理。
|
| 22 |
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
-
|
| 27 |
-
对每个观测,将其重点反映的个人特质转变成选项式的问题。选项之间保持较为细粒度的差异,或者在其反映出的背后特质上有差异。
|
| 28 |
-
在得到回答后用随机数的方式打乱四个选项,保证随机性。
|
| 29 |
|
|
|
|
| 30 |
|
| 31 |
-
|
|
|
|
| 32 |
|
| 33 |
-
|
| 34 |
-
|
|
|
|
|
|
|
| 35 |
|
| 36 |
-
|
| 37 |
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
-
|
| 41 |
|
| 42 |
-
|
| 43 |
-
2. You must NOT speculate or infer beyond what is clearly supported.
|
| 44 |
-
3. You may extract MULTIPLE features, but ONLY if each one is strongly supported.
|
| 45 |
-
4. If no feature is strongly supported, return an empty list.
|
| 46 |
-
5. Avoid clinical or medical diagnosis.
|
| 47 |
-
6. Be conservative: when in doubt, do NOT include the feature.
|
| 48 |
|
| 49 |
-
|
| 50 |
|
| 51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
-
|
| 54 |
-
- A behavioral pattern (habit, routine)
|
| 55 |
-
- A stable interest
|
| 56 |
-
- A personality tendency (ONLY if clearly supported)
|
| 57 |
-
- A recurring emotional tendency
|
| 58 |
-
- A clear value or belief
|
| 59 |
|
| 60 |
-
|
| 61 |
|
| 62 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
|
| 64 |
-
|
| 65 |
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
"category": "behavior | interest | personality | emotion | value",
|
| 71 |
-
"evidence": ["short quote"],
|
| 72 |
-
"confidence": "high"
|
| 73 |
-
}
|
| 74 |
-
]
|
| 75 |
-
}
|
| 76 |
|
| 77 |
-
|
| 78 |
|
| 79 |
-
|
| 80 |
-
"features": []
|
| 81 |
-
}
|
| 82 |
|
| 83 |
-
|
| 84 |
|
| 85 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
|
| 87 |
-
|
| 88 |
-
- Each MUST be a complete declarative sentence
|
| 89 |
-
- Each MUST reflect a stable tendency, not a one-time event
|
| 90 |
-
- Evidence must be a direct quote (max 20 words)
|
| 91 |
-
- ONLY include features with HIGH confidence
|
| 92 |
-
- Do NOT include weak or ambiguous traits
|
| 93 |
-
- Do NOT explain your reasoning
|
| 94 |
-
- Do NOT summarize the blog
|
| 95 |
|
| 96 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 97 |
|
| 98 |
-
|
| 99 |
-
<BLOG_HERE>
|
| 100 |
-
"""
|
| 101 |
-
|
| 102 |
-
4,PROMPT_TEMPLATE
|
| 103 |
-
"""
|
| 104 |
-
You are a data transformation assistant.
|
| 105 |
-
|
| 106 |
-
Your task is to convert a first-person statement into a challenging multiple-choice question (4 options).
|
| 107 |
-
|
| 108 |
-
Input:
|
| 109 |
-
A single first-person sentence describing a personal preference, habit, or trait.
|
| 110 |
-
|
| 111 |
-
Output format (STRICT JSON, no extra text):
|
| 112 |
-
{
|
| 113 |
-
"question": "<a natural question in first-person perspective>",
|
| 114 |
-
"option1": "<option>",
|
| 115 |
-
"option2": "<option>",
|
| 116 |
-
"option3": "<option>",
|
| 117 |
-
"option4": "<option>",
|
| 118 |
-
"groundtruth": <1, 2, 3, or 4>
|
| 119 |
-
}
|
| 120 |
-
|
| 121 |
-
Requirements:
|
| 122 |
-
|
| 123 |
-
[Core Question Design]
|
| 124 |
-
1. The question must be written in first-person (use "I") and end with a question mark.
|
| 125 |
-
2. The question must NOT directly reuse key nouns or verbs from the input.
|
| 126 |
-
3. The question should target a higher-level preference, tendency, or behavioral pattern — NOT a direct restatement of the activity.
|
| 127 |
-
4. The question should require at least one step of inference (i.e., not directly answerable by keyword matching).
|
| 128 |
-
|
| 129 |
-
[Two Allowed Difficulty Styles — choose ONE per example]
|
| 130 |
-
5. Use ONE of the following strategies to increase difficulty:
|
| 131 |
-
|
| 132 |
-
(A) Fine-grained distinction:
|
| 133 |
-
- All four options belong to a similar broad domain but differ in subtle, meaningful ways.
|
| 134 |
-
- Example dimensions:
|
| 135 |
-
* types of activities (e.g., competitive sport vs leisure sport vs strategic game vs artistic hobby)
|
| 136 |
-
* levels of accessibility (mass vs elite vs niche)
|
| 137 |
-
* physical vs mental vs mixed engagement
|
| 138 |
-
- Avoid overly similar options (e.g., basketball vs football).
|
| 139 |
-
- Ensure distinctions are meaningful and inferable.
|
| 140 |
-
|
| 141 |
-
(B) Abstract categorization:
|
| 142 |
-
- Map the input to a higher-level personality trait, cognitive style, or behavioral tendency.
|
| 143 |
-
- Example dimensions:
|
| 144 |
-
* structured vs spontaneous vs exploratory vs habitual
|
| 145 |
-
* social vs independent vs reflective vs expressive
|
| 146 |
-
* analytical vs creative vs physical vs routine-oriented
|
| 147 |
-
- Options should be conceptual and require interpretation of the input.
|
| 148 |
-
|
| 149 |
-
[Option Quality]
|
| 150 |
-
6. Exactly FOUR options must be provided.
|
| 151 |
-
7. Only ONE option is correct.
|
| 152 |
-
8. All options must:
|
| 153 |
-
- be concise (short phrases)
|
| 154 |
-
- be at a similar level of abstraction
|
| 155 |
-
- be semantically plausible (no obviously wrong answers)
|
| 156 |
-
9. Avoid negations (e.g., "not doing something").
|
| 157 |
-
10. Ensure the incorrect options are strong distractors:
|
| 158 |
-
- They should be reasonable interpretations but ultimately inconsistent with the input.
|
| 159 |
-
|
| 160 |
-
[Balance & Structure]
|
| 161 |
-
11. Randomly assign the correct answer to option1-option4 (ensure distribution balance over multiple samples).
|
| 162 |
-
12. Maintain symmetry:
|
| 163 |
-
- Similar length
|
| 164 |
-
- Similar structure
|
| 165 |
-
- Similar abstraction level
|
| 166 |
-
|
| 167 |
-
[Reasoning Constraint]
|
| 168 |
-
13. Internally perform:
|
| 169 |
-
- Step 1: Identify the core feature of the input (e.g., physical, intellectual, social, routine-based, exploratory, etc.)
|
| 170 |
-
- Step 2: Map it to either a fine-grained category OR an abstract trait
|
| 171 |
-
- Step 3: Generate 3 high-quality distractors from nearby but distinct categories
|
| 172 |
-
|
| 173 |
-
14. The final question must be solvable with reasonable inference, but not trivial.
|
| 174 |
-
|
| 175 |
-
Output must be valid JSON (no comments, no trailing commas, no extra text).
|
| 176 |
|
| 177 |
-
|
|
|
|
| 178 |
|
| 179 |
-
|
| 180 |
-
Input: I like playing basketball.
|
| 181 |
|
| 182 |
-
|
| 183 |
-
{
|
| 184 |
-
"question": "What kind of activity do I tend to prefer?",
|
| 185 |
-
"option1": "casual leisure activities",
|
| 186 |
-
"option2": "strategic board-based challenges",
|
| 187 |
-
"option3": "physically competitive team sports",
|
| 188 |
-
"option4": "solo creative expression",
|
| 189 |
-
"groundtruth": 3
|
| 190 |
-
}
|
| 191 |
|
| 192 |
-
|
| 193 |
|
| 194 |
-
|
| 195 |
-
|
|
|
|
| 196 |
|
| 197 |
-
|
| 198 |
-
{
|
| 199 |
-
"question": "What kind of personal tendency best describes me?",
|
| 200 |
-
"option1": "seeking intellectual engagement",
|
| 201 |
-
"option2": "pursuing high-energy stimulation",
|
| 202 |
-
"option3": "favoring spontaneous exploration",
|
| 203 |
-
"option4": "preferring social interaction",
|
| 204 |
-
"groundtruth": 1
|
| 205 |
-
}
|
| 206 |
|
| 207 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 208 |
|
| 209 |
-
|
| 210 |
-
<input_text>
|
| 211 |
-
"""
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
每个个体数据结构如下:
|
| 217 |
-
{
|
| 218 |
-
observations = [observations]
|
| 219 |
-
predictions = {questions}
|
| 220 |
-
data_source = "Blog Authorship Corpus"
|
| 221 |
-
split = split
|
| 222 |
-
extra_info = {
|
| 223 |
-
"interview_id": interview_id,
|
| 224 |
-
"n_observations": len(observations),
|
| 225 |
-
"n_predictions": len(predictions),
|
| 226 |
-
"eval_rewrite": "holdout_n_predict",
|
| 227 |
-
"holdout_n_predict": len(predictions),
|
| 228 |
-
}
|
| 229 |
-
}
|
| 230 |
-
一个具体例子如下:
|
| 231 |
-
{
|
| 232 |
-
"observations": [
|
| 233 |
-
"I am a male",
|
| 234 |
-
"My age is 23",
|
| 235 |
-
"I work in the Student industry.",
|
| 236 |
-
"I can become obsessive in my thoughts about someone I am attracted to.",
|
| 237 |
-
"I tend to be highly self-critical about my own performance.",
|
| 238 |
-
"I tend to write lists to organize my thoughts and tasks.",
|
| 239 |
-
"I tend to be self-critical about my romantic history.",
|
| 240 |
-
"I like to optimize and simplify systems using technical tricks.",
|
| 241 |
-
"I tend to sleep very deeply and am difficult to wake up.",
|
| 242 |
-
"I often engage in solitary, reflective contemplation in nature.",
|
| 243 |
-
"I enjoy figuring out and sharing undocumented features.",
|
| 244 |
-
"I have a stable interest in programming.",
|
| 245 |
-
"I write personal blog posts.",
|
| 246 |
-
"I tend to use smoking as a response to stress or difficult conversations.",
|
| 247 |
-
"I am interested in testing new things.",
|
| 248 |
-
"I find a sense of peace and expansiveness in solitary moments.",
|
| 249 |
-
"I have a stable interest in studying vocabulary.",
|
| 250 |
-
"I value trying new things.",
|
| 251 |
-
"I do not like being cheated on or lied to.",
|
| 252 |
-
"I tend to view my own undertakings and efforts negatively.",
|
| 253 |
-
"I value honesty and decency in a partner.",
|
| 254 |
-
"I tend to feel despairing about my future prospects.",
|
| 255 |
-
"I have a stable interest in physical fitness activities like working out, swimming, and playing ball.",
|
| 256 |
-
"I value and plan to cherish my current carefree and happy time.",
|
| 257 |
-
"I am interested in Open Source GIS technology and its applications.",
|
| 258 |
-
"I am deeply interested in the technical details of software performance and scalability.",
|
| 259 |
-
"I value creating organized frameworks to tackle complex problems.",
|
| 260 |
-
"I have a stable interest in playing the guitar.",
|
| 261 |
-
"I decide to sleep extra to recover after completing a major task.",
|
| 262 |
-
"I tend to view my own actions in personal relationships negatively.",
|
| 263 |
-
"I value acting in a carefree and unrestrained manner.",
|
| 264 |
-
"I enjoy creating practical, client-side tools for developers.",
|
| 265 |
-
"I tend to rely on and believe my own strong, immediate feelings.",
|
| 266 |
-
"I focus on getting what I want and enjoy the outcome, even if the process is painful.",
|
| 267 |
-
"I am interested in the history and construction of buildings.",
|
| 268 |
-
"I value providing clear, technical overviews for others."
|
| 269 |
-
],
|
| 270 |
-
"predictions": [
|
| 271 |
-
{
|
| 272 |
-
"question": "What type of mental activity is most characteristic of my daily tendencies?, Option1: active collaborative brainstorming, Option2: spontaneous imaginative introspection, Option3: routine-based physical engagement, Option4: structured analytical problem-solving",
|
| 273 |
-
"ground_truth": "Option 2"
|
| 274 |
-
},
|
| 275 |
-
{
|
| 276 |
-
"question": "What general domain of personal interests do I gravitate toward?, Option1: diversifying physical skills, Option2: exploring traditional arts and crafts, Option3: engaging in creative storytelling, Option4: understanding technical systems and their safeguards",
|
| 277 |
-
"ground_truth": "Option 4"
|
| 278 |
-
},
|
| 279 |
-
{
|
| 280 |
-
"question": "What kind of lifestyle pattern would I be most likely to follow?, Option1: spontaneous and unplanned exploration, Option2: methodical and routine-oriented schedules, Option3: minimal-effort and low-demand habits, Option4: high-energy and physically active pursuits",
|
| 281 |
-
"ground_truth": "Option 3"
|
| 282 |
-
},
|
| 283 |
-
{
|
| 284 |
-
"question": "What best characterizes my approach to personal development?, Option1: experiential learning through direct participation, Option2: independent exploration via digital media, Option3: casual social networking in informal settings, Option4: structured academic study through formal courses",
|
| 285 |
-
"ground_truth": "Option 1"
|
| 286 |
-
},
|
| 287 |
-
{
|
| 288 |
-
"question": "What would my attitude towards daily life most likely be?, Option1: impulsive and driven by dramatic reactions, Option2: calm and inclined to see issues as manageable, Option3: anxious and prone to worrying about minor setbacks, Option4: obsessive and focused on avoiding potential disasters",
|
| 289 |
-
"ground_truth": "Option 2"
|
| 290 |
-
},
|
| 291 |
-
{
|
| 292 |
-
"question": "Which personal approach best characterizes my typical mode of introspection?, Option1: independently analyzing internal states, Option2: habitually following structured routines, Option3: socially seeking external validation, Option4: spontaneously exploring new environments",
|
| 293 |
-
"ground_truth": "Option 1"
|
| 294 |
-
},
|
| 295 |
-
{
|
| 296 |
-
"question": "Which pattern of behavior best characterizes my shopping habits?, Option1: focusing on immediate, high-energy impulse buys, Option2: exploring diverse new products constantly, Option3: primarily seeking social shopping experiences, Option4: maintaining a consistent relationship with a few trusted sources",
|
| 297 |
-
"ground_truth": "Option 4"
|
| 298 |
-
},
|
| 299 |
-
{
|
| 300 |
-
"question": "Which working approach resonates most with my preferences?, Option1: leading competitive individual projects, Option2: independent research in a specialized field, Option3: coordinating efforts across diverse domains, Option4: structured execution within a single team",
|
| 301 |
-
"ground_truth": "Option 3"
|
| 302 |
-
},
|
| 303 |
-
{
|
| 304 |
-
"question": "What is my general attitude towards outsourcing?, Option1: preferring localized production for quality, Option2: supportive of global economic benefits, Option3: concerned about local job displacement, Option4: indifferent to economic distribution effects",
|
| 305 |
-
"ground_truth": "Option 2"
|
| 306 |
-
},
|
| 307 |
-
{
|
| 308 |
-
"question": "Which of these behavior patterns best characterizes my approach to tasks?, Option1: being hesitant and delay-oriented, Option2: being risk-taking and decisive, Option3: being methodical and scheduled, Option4: being spontaneous and exploratory",
|
| 309 |
-
"ground_truth": "Option 1"
|
| 310 |
-
},
|
| 311 |
-
{
|
| 312 |
-
"question": "What kind of approach do I typically take towards my responsibilities?, Option1: proactive and early initiative, Option2: methodical and planned execution, Option3: urgent deadline-driven completion, Option4: collaborative and shared effort",
|
| 313 |
-
"ground_truth": "Option 3"
|
| 314 |
-
}
|
| 315 |
-
],
|
| 316 |
-
"data_source": "Blog Authorship Corpus",
|
| 317 |
-
"split": "train",
|
| 318 |
-
"extra_info": {
|
| 319 |
-
"interview_id": "3356691",
|
| 320 |
-
"n_observations": 36,
|
| 321 |
-
"n_predictions": 11,
|
| 322 |
-
"eval_rewrite": "holdout_n_predict",
|
| 323 |
-
"holdout_n_predict": 11
|
| 324 |
-
}
|
| 325 |
-
},
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: other
|
| 5 |
+
pretty_name: Chiron Blog Authorship
|
| 6 |
+
tags:
|
| 7 |
+
- blog
|
| 8 |
+
- personality
|
| 9 |
+
- psychology
|
| 10 |
+
- mcq
|
| 11 |
+
size_categories:
|
| 12 |
+
- 1K<n<10K
|
| 13 |
+
configs:
|
| 14 |
+
- config_name: default
|
| 15 |
+
data_files:
|
| 16 |
+
- split: train
|
| 17 |
+
path: qa/train-*.parquet
|
| 18 |
+
- split: val
|
| 19 |
+
path: qa/val-*.parquet
|
| 20 |
+
- split: test
|
| 21 |
+
path: qa/test-*.parquet
|
| 22 |
+
---
|
| 23 |
|
| 24 |
+
# Chiron-Blog
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
+
基于 **Blog Authorship Corpus** 个体级博客文本整理而成的数据集,服务于 **Chiron** 测量-预测流水线 —— 从受访者已知响应中合成心理学测量,再据测量预测留出响应。
|
|
|
|
|
|
|
| 27 |
|
| 28 |
+
本数据卡是**自包含**的:Parquet 文件、字段 schema、生成策略、上游来源与许可,以及完整复现 / 反向转换脚本都直接随仓库附带。
|
|
|
|
| 29 |
|
| 30 |
+
## 文件清单
|
|
|
|
| 31 |
|
| 32 |
+
```
|
| 33 |
+
data_01.zst ... data_07.zst 上游 zstd 压缩 JSON 数组,每个元素是一名个体
|
| 34 |
+
(observations + predictions + extra_info)
|
| 35 |
+
共 5 858 名个体
|
| 36 |
+
qa/
|
| 37 |
+
train-00000-of-00001.parquet 4 366 行
|
| 38 |
+
val-00000-of-00001.parquet 243 行
|
| 39 |
+
test-00000-of-00001.parquet 243 行
|
| 40 |
+
scripts/
|
| 41 |
+
build_qa.py data_*.zst -> qa/*.parquet
|
| 42 |
+
parquet_to_jsonl.py 任意 parquet -> jsonl(自动处理 ZSTD/Snappy/GZIP)
|
| 43 |
+
```
|
| 44 |
|
| 45 |
+
所有 Parquet 均使用 ZSTD 压缩 + 列式存储 + 字典编码。
|
|
|
|
|
|
|
| 46 |
|
| 47 |
+
## 加载方式
|
| 48 |
|
| 49 |
+
```python
|
| 50 |
+
from datasets import load_dataset
|
| 51 |
|
| 52 |
+
ds = load_dataset("chiron-group/Blog_Authorship_Corpus")
|
| 53 |
+
print(ds) # train / val / test
|
| 54 |
+
print(ds["train"][0])
|
| 55 |
+
```
|
| 56 |
|
| 57 |
+
或直接用 `pandas` / `pyarrow`:
|
| 58 |
|
| 59 |
+
```python
|
| 60 |
+
import pandas as pd
|
| 61 |
+
train = pd.read_parquet("hf://datasets/chiron-group/Blog_Authorship_Corpus/qa/train-00000-of-00001.parquet")
|
| 62 |
+
val = pd.read_parquet("hf://datasets/chiron-group/Blog_Authorship_Corpus/qa/val-00000-of-00001.parquet")
|
| 63 |
+
test = pd.read_parquet("hf://datasets/chiron-group/Blog_Authorship_Corpus/qa/test-00000-of-00001.parquet")
|
| 64 |
+
```
|
| 65 |
|
| 66 |
+
## QA Schema
|
| 67 |
|
| 68 |
+
切分粒度是**个体级**:同一个体的所���题目都落在同一个 split 中。
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
|
| 70 |
+
### `train`
|
| 71 |
|
| 72 |
+
| 字段 | 类型 | 含义 |
|
| 73 |
+
|---|---|---|
|
| 74 |
+
| `observations` | `list[str]` | 该个体的第一人称行为 / 兴趣 / 倾向陈述,作为测量模型的输入。 |
|
| 75 |
+
| `predictions` | `list[{question, ground_truth}]` | 该个体 ~2/3 的 MCQ 题项。用于测量质量打分以及 prediction-SFT 的监督。 |
|
| 76 |
+
| `held_out_predictions` | `list[{question, ground_truth}]` | 剩余 ~1/3。**训练阶段绝不使用**,留作 within-respondent 留出评估。 |
|
| 77 |
+
| `data_source` | `str` | 固定为 `"Blog Authorship Corpus"`。 |
|
| 78 |
+
| `split` | `str` | `"train"`。 |
|
| 79 |
+
| `extra_info` | `struct` | `{interview_id: str, n_observations, n_predictions, n_held_out_predictions}`。 |
|
| 80 |
|
| 81 |
+
### `val` / `test`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
|
| 83 |
+
字段与 `train` 一致,**唯独没有** `held_out_predictions`:那 1/3 的留出切片已被合并进 `predictions`。所以验证 / 测试集的预测题池是完整的题目全集。
|
| 84 |
|
| 85 |
+
| 字段 | 类型 | 含义 |
|
| 86 |
+
|---|---|---|
|
| 87 |
+
| `observations` | `list[str]` | 同上。 |
|
| 88 |
+
| `predictions` | `list[{question, ground_truth}]` | 完整 MCQ 全集(原 predictions ∪ 原 holdout)。 |
|
| 89 |
+
| `data_source` | `str` | 固定 `"Blog Authorship Corpus"`。 |
|
| 90 |
+
| `split` | `str` | `"val"` 或 `"test"`。 |
|
| 91 |
+
| `extra_info` | `struct` | `{interview_id, n_observations, n_predictions}`。 |
|
| 92 |
|
| 93 |
+
### `Prediction` 结构
|
| 94 |
|
| 95 |
+
```
|
| 96 |
+
question: "<first-person question>, Option1: <t1>, Option2: <t2>, Option3: <t3>, Option4: <t4>"
|
| 97 |
+
ground_truth: "Option k" # k ∈ {1,2,3,4}
|
| 98 |
+
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
|
| 100 |
+
题目与选项均由上游 LLM 流水线从原始博客文本生成(见末节"来源与许可")。
|
| 101 |
|
| 102 |
+
## 生成策略
|
|
|
|
|
|
|
| 103 |
|
| 104 |
+
常量集中在 `scripts/build_qa.py` 顶部:
|
| 105 |
|
| 106 |
+
```
|
| 107 |
+
SEED = 42
|
| 108 |
+
MIN_OBSERVATIONS = 20 # 不足则丢弃该个体
|
| 109 |
+
MAX_OBSERVATIONS = 200 # 超过则确定性下采样
|
| 110 |
+
HELD_OUT_FRACTION = 1/3 # ~2/3 -> predictions, ~1/3 -> held-out
|
| 111 |
+
MIN_PREDICTIONS = 5
|
| 112 |
+
MIN_HELD_OUT = 3
|
| 113 |
+
TRAIN/VAL/TEST = 0.90 / 0.05 / 0.05
|
| 114 |
+
DATA_SOURCE = "Blog Authorship Corpus"
|
| 115 |
+
```
|
| 116 |
|
| 117 |
+
逐个体(以 `SEED + interview_id` 为种子,确定性):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
|
| 119 |
+
1. 收集 `observations` 与 `predictions`。
|
| 120 |
+
2. 若 `len(observations) < MIN_OBSERVATIONS`,丢弃该个体。
|
| 121 |
+
3. 若 `len(observations) > MAX_OBSERVATIONS`,以确定性 `random.sample` 下采样到 `MAX_OBSERVATIONS`。
|
| 122 |
+
4. 打乱该个体所有 predictions,按 ~2/3 / ~1/3 切到 predictions / held-out。
|
| 123 |
+
5. 拒绝 predictions < `MIN_PREDICTIONS` 或 held-out < `MIN_HELD_OUT` 的个体。
|
| 124 |
|
| 125 |
+
跨个体(以 `SEED` 为种子,确定性):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 126 |
|
| 127 |
+
6. 对所有合格个体整体洗一次牌,按 90 / 5 / 5 划分到 train / val / test。
|
| 128 |
+
7. 对 val / test:把 held-out 切片合并进 `predictions`,并丢弃 `held_out_predictions` 字段。
|
| 129 |
|
| 130 |
+
在本数据集 5 858 名上游个体上:1 006 名因不足被舍弃,4 852 名合格个体落到 4 366 train / 243 val / 243 test。
|
|
|
|
| 131 |
|
| 132 |
+
## 复现命令
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 133 |
|
| 134 |
+
只需 `pyarrow` 与系统 PATH 上的 `zstd`:
|
| 135 |
|
| 136 |
+
```bash
|
| 137 |
+
pip install pyarrow
|
| 138 |
+
```
|
| 139 |
|
| 140 |
+
### 直接基于本仓库 zst 重建 QA
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 141 |
|
| 142 |
+
```bash
|
| 143 |
+
python scripts/build_qa.py \
|
| 144 |
+
--input-dir . \
|
| 145 |
+
--output-dir qa \
|
| 146 |
+
--compression zstd --compression-level 9
|
| 147 |
+
```
|
| 148 |
+
|
| 149 |
+
(`build_qa.py` 接受 `--input-dir` 指向放有 `data_*.zst` 的目录;调试用 `--max-rows 200` 先小跑一遍。)
|
| 150 |
+
|
| 151 |
+
### 反向:Parquet → JSONL
|
| 152 |
+
|
| 153 |
+
`parquet_to_jsonl.py` 透明处理 ZSTD / Snappy / GZIP(codec 信息存在 Parquet 元数据里,不需要额外指定):
|
| 154 |
+
|
| 155 |
+
```bash
|
| 156 |
+
# 单文件
|
| 157 |
+
python scripts/parquet_to_jsonl.py --src qa/train-00000-of-00001.parquet --dst train.jsonl
|
| 158 |
+
|
| 159 |
+
# 整个 qa/ 目录,按 split 各输出一份 .jsonl
|
| 160 |
+
python scripts/parquet_to_jsonl.py --src qa/ --dst qa_jsonl/ --by-split
|
| 161 |
+
```
|
| 162 |
+
|
| 163 |
+
## QA 与原始数据的关联
|
| 164 |
+
|
| 165 |
+
`extra_info.interview_id` 是博客原始数据中的作者 ID(字符串),也是与 `data_*.zst` 中元素的 `extra_info.interview_id` 的连接键。要还原任意个体的完整原始 observations / predictions,在 `data_*.zst` 中按该 ID 查表即可。
|
| 166 |
+
|
| 167 |
+
## 来源与许可
|
| 168 |
+
|
| 169 |
+
上游为 **Blog Authorship Corpus** —— 公开的 681 288 条博客文本数据集([Tianchi 镜像](https://tianchi.aliyun.com/dataset/90243))。本数据集的 observations 与 MCQ 题目由 LLM(`deepseek-v3.2`,`temperature=0.6`,随机种子 106)从原始博客文本中抽取并生成:
|
| 170 |
+
|
| 171 |
+
1. 按作者 ID 聚合个体级博客,提取 gender / age / topic 等基本属性;博客条数 < 20 的个体跳过。
|
| 172 |
+
2. 对每条博客并行抽取与人格特质相关的高置信度第一人称陈述(observation),无法体现人格特质则不抽。
|
| 173 |
+
3. 对每个个体,从随机 1/4 observation 中生成选项式 MCQ 问题(选项细粒度差异或高层抽象差异;选项随机置位)。
|
| 174 |
|
| 175 |
+
使用本数据集须遵循上游 Blog Authorship Corpus 的使用条款,再分发或生产用途前请先核对原始数据集的相关条件。本仓库的处理与 QA 构造脚本依据 frontmatter 中标注的 `other` 许可发布,内容层面以上游许可为准。
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|