Update README.md
Browse files
README.md
CHANGED
@@ -11,7 +11,7 @@ configs:
|
|
11 |
- config_name: default
|
12 |
data_files:
|
13 |
- split: train
|
14 |
-
path: "
|
15 |
---
|
16 |
|
17 |
# Elliquiy roleplaying forum data
|
@@ -29,6 +29,38 @@ During the scraping procedure (occurred on April 2023) some information like tex
|
|
29 |
|
30 |
Given the text formatting used by many users, complete and thorough conversion to Markdown seems very difficult without losing information in the process or causing other issues.
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
# Dataset field explanation
|
33 |
## Threads
|
34 |
| Field | Explanation
|
|
|
11 |
- config_name: default
|
12 |
data_files:
|
13 |
- split: train
|
14 |
+
path: "*.parquet"
|
15 |
---
|
16 |
|
17 |
# Elliquiy roleplaying forum data
|
|
|
29 |
|
30 |
Given the text formatting used by many users, complete and thorough conversion to Markdown seems very difficult without losing information in the process or causing other issues.
|
31 |
|
32 |
+
# Basic usage
|
33 |
+
|
34 |
+
The files need PyArrow installed from pip. FastParquet will not work properly due to the nested data structure (I might change this in the future if it's too much of an issue).
|
35 |
+
|
36 |
+
```python
|
37 |
+
import pandas
|
38 |
+
|
39 |
+
# Load one dataframe
|
40 |
+
df = pandas.read_parquet('elliquiy-rp_2023-04_train-00000-of-00005.parquet')
|
41 |
+
|
42 |
+
# Load the shareGPT-like message group from one specific row into a standard Python list
|
43 |
+
messages = list(df.iloc[2350].messages)
|
44 |
+
|
45 |
+
```
|
46 |
+
|
47 |
+
Showing thread metadata from one specific row after loading the data:
|
48 |
+
|
49 |
+
```text
|
50 |
+
In [2]: df.iloc[2350]
|
51 |
+
Out[2]:
|
52 |
+
thread-id 11897
|
53 |
+
thread-title The League of Extraordinary ...
|
54 |
+
category-id 65
|
55 |
+
category-name Noncon: Human-Freeform Solos
|
56 |
+
participant-count 3
|
57 |
+
message-count 242
|
58 |
+
word-count-total 35197
|
59 |
+
word-count-median 136.0
|
60 |
+
messages {'from': 'OrdinaryName', 'from-alternative': 'User...
|
61 |
+
Name: 2350, dtype: object
|
62 |
+
```
|
63 |
+
|
64 |
# Dataset field explanation
|
65 |
## Threads
|
66 |
| Field | Explanation
|