Hugo commited on
Commit
d0c8866
·
1 Parent(s): 7587f79

Updated README.md

Browse files
Files changed (1) hide show
  1. README.md +60 -3
README.md CHANGED
@@ -1,3 +1,60 @@
1
- ---
2
- license: cc-by-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - zh
5
+ pretty_name: PerCN
6
+ size_categories:
7
+ - 10K<n<100K
8
+ task_categories:
9
+ - text-classification
10
+ - multi-label-classification
11
+ tags:
12
+ - mbti
13
+ - personality
14
+ - chinese
15
+ - social-media
16
+ ---
17
+
18
+ # PerCN Dataset
19
+
20
+ ## Overview
21
+ PerCN is a Chinese dataset for MBTI personality type prediction. Each sample contains multiple short posts from the same user, and labels are a 4-d binary vector corresponding to the four MBTI dimensions. The texts include typical Chinese social media expressions, emojis, and colloquial phrasing.
22
+
23
+ ## Data Format
24
+ The dataset is provided in `JSONL` format with three splits: `train.jsonl`, `eval.jsonl`, and `test.jsonl`.
25
+
26
+ Each line is a JSON object with the following fields:
27
+ - `texts`: `List[str]`, multiple texts from the same user (variable length).
28
+ - `labels`: `List[int]`, a length-4 binary vector (0/1).
29
+
30
+ Example (truncated):
31
+ ```json
32
+ {
33
+ "texts": ["...", "...", "..."],
34
+ "labels": [0, 1, 0, 1]
35
+ }
36
+ ```
37
+
38
+ ## Usage
39
+ Load from local files with `datasets`:
40
+ ```python
41
+ from datasets import load_dataset
42
+
43
+ # Load from local paths
44
+ dataset = load_dataset(
45
+ "json",
46
+ data_files={
47
+ "train": "train.jsonl",
48
+ "validation": "eval.jsonl",
49
+ "test": "test.jsonl",
50
+ },
51
+ )
52
+
53
+ print(dataset["train"][0]["texts"][:3])
54
+ print(dataset["train"][0]["labels"]) # 4-d binary vector
55
+ ```
56
+
57
+ ## Ethics & Use
58
+ - The data contains user-generated content and may include personal or sensitive information. Do not attempt de-anonymization or re-identification.
59
+ - Recommended for research and educational use only. Comply with applicable laws and platform policies.
60
+