Dataset Viewer
The dataset viewer is not available for this dataset.
Cannot get the config names for the dataset.
Error code: ConfigNamesError
Exception: ImportError
Message: To be able to use IlyaGusev/pikabu, you need to install the following dependency: jsonlines.
Please install it using 'pip install jsonlines' for instance.
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 66, in compute_config_names_response
config_names = get_dataset_config_names(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 347, in get_dataset_config_names
dataset_module = dataset_module_factory(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1914, in dataset_module_factory
raise e1 from None
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1880, in dataset_module_factory
return HubDatasetModuleFactoryWithScript(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1504, in get_module
local_imports = _download_additional_modules(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 354, in _download_additional_modules
raise ImportError(
ImportError: To be able to use IlyaGusev/pikabu, you need to install the following dependency: jsonlines.
Please install it using 'pip install jsonlines' for instance.Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Pikabu dataset
Description
Summary: Dataset of posts and comments from pikabu.ru, a website that is Russian Reddit/9gag.
Script: convert_pikabu.py
Point of Contact: Ilya Gusev
Languages: Mostly Russian.
Usage
Prerequisites:
pip install datasets zstandard jsonlines pysimdjson
Dataset iteration:
from datasets import load_dataset
dataset = load_dataset('IlyaGusev/pikabu', split="train", streaming=True)
for example in dataset:
print(example["text_markdown"])
Data Instances
{
"id": 69911642,
"title": "Что можно купить в Китае за цену нового iPhone 11 Pro",
"text_markdown": "...",
"timestamp": 1571221527,
"author_id": 2900955,
"username": "chinatoday.ru",
"rating": -4,
"pluses": 9,
"minuses": 13,
"url": "...",
"tags": ["Китай", "AliExpress", "Бизнес"],
"blocks": {"data": ["...", "..."], "type": ["text", "text"]},
"comments": {
"id": [152116588, 152116426],
"text_markdown": ["...", "..."],
"text_html": ["...", "..."],
"images": [[], []],
"rating": [2, 0],
"pluses": [2, 0],
"minuses": [0, 0],
"author_id": [2104711, 2900955],
"username": ["FlyZombieFly", "chinatoday.ru"]
}
}
You can use this little helper to unflatten sequences:
def revert_flattening(records):
fixed_records = []
for key, values in records.items():
if not fixed_records:
fixed_records = [{} for _ in range(len(values))]
for i, value in enumerate(values):
fixed_records[i][key] = value
return fixed_records
Source Data
- The data source is the Pikabu website.
- An original dump can be found here: pikastat
- Processing script is here.
Personal and Sensitive Information
The dataset is not anonymized, so individuals' names can be found in the dataset. Information about the original authors is included in the dataset where possible.
- Downloads last month
- 139