ViHoRec / README.md
MinhDS's picture
Update README.md
1adae70 verified
|
Raw
History Blame Contribute Delete
5.18 kB
---
license: cc-by-nc-4.0
language:
- vi
pretty_name: ViHoRec
size_categories:
- 10K<n<100K
task_categories:
- other
tags:
- recommendation
- recommender-systems
- hotel
- vietnamese
- cold-start
- tabular
- entity-resolution
- parquet
- csv
configs:
- config_name: interactions
default: true
data_files:
- split: train
path: data/interactions/train-*.parquet
- config_name: users
data_files:
- split: train
path: data/users/train-*.parquet
- config_name: hotels
data_files:
- split: train
path: data/hotels/train-*.parquet
- config_name: benchmark
data_files:
- split: train
path: data/benchmark/train-*.parquet
- split: test
path: data/benchmark/test-*.parquet
dataset_info:
- config_name: interactions
features:
- name: user_id
dtype: string
- name: hotel_id
dtype: string
- name: rating
dtype: float32
- name: date
dtype: string
- name: source
dtype: string
splits:
- name: train
num_examples: 18267
- config_name: users
features:
- name: user_id
dtype: string
- name: n_interactions
dtype: int64
splits:
- name: train
num_examples: 6832
- config_name: hotels
features:
- name: hotel_id
dtype: string
- name: name
dtype: string
- name: location
dtype: string
splits:
- name: train
num_examples: 560
- config_name: benchmark
features:
- name: userID
dtype: int64
- name: itemID
dtype: int64
- name: rating
dtype: float32
- name: timestamp
dtype: int64
splits:
- name: train
num_examples: 9787
- name: test
num_examples: 800
---
# ViHoRec — Vietnamese Hotel Recommendation Dataset
Paper: [arXiv:2607.12946](https://arxiv.org/abs/2607.12946) · [Hugging Face Papers](https://huggingface.co/papers/2607.12946)
A **quality-controlled, anonymised, benchmark-ready** Vietnamese hotel
recommendation dataset for recommender-systems research.
| Resource | Count |
|---|---|
| Interactions (cleaned) | 18,267 |
| Users | 6,832 |
| Hotels | 560 |
| Benchmark split | 800 users × 535 hotels (9,787 train / 800 test) |
Sources: Booking.com, Traveloka, Ivivu. License: **CC BY-NC 4.0** (data), MIT (code on GitHub).
## Dataset Viewer / subsets
The Hub Dataset Viewer is configured via the YAML `configs` block above.
Use the **Subset** dropdown:
| Subset | Splits | Rows | Description |
|---|---|---|---|
| `interactions` (default) | `train` | 18,267 | user–hotel ratings |
| `users` | `train` | 6,832 | user aggregates |
| `hotels` | `train` | 560 | hotel metadata |
| `benchmark` | `train` / `test` | 9,787 / 800 | public LOO split |
Data files live under `data/<config>/<split>-00000-of-00001.parquet` (plus CSV twins for convenience).
## Load with 🤗 Datasets
```python
from datasets import load_dataset
# default subset = interactions
ds = load_dataset("MinhDS/ViHoRec")
print(ds["train"][0])
interactions = load_dataset("MinhDS/ViHoRec", "interactions")
users = load_dataset("MinhDS/ViHoRec", "users")
hotels = load_dataset("MinhDS/ViHoRec", "hotels")
benchmark = load_dataset("MinhDS/ViHoRec", "benchmark") # train + test
# streaming (no full download)
stream = load_dataset("MinhDS/ViHoRec", "interactions", split="train", streaming=True)
for row in stream.take(3):
print(row)
```
Or with pandas / Polars:
```python
import pandas as pd
interactions = pd.read_parquet("hf://datasets/MinhDS/ViHoRec/data/interactions/train-00000-of-00001.parquet")
train = pd.read_parquet("hf://datasets/MinhDS/ViHoRec/data/benchmark/train-00000-of-00001.parquet")
test = pd.read_parquet("hf://datasets/MinhDS/ViHoRec/data/benchmark/test-00000-of-00001.parquet")
```
## Repository layout (Hub)
```
data/
├── interactions/train-00000-of-00001.{parquet,csv}
├── users/train-00000-of-00001.{parquet,csv}
├── hotels/train-00000-of-00001.{parquet,csv}
└── benchmark/
├── train-00000-of-00001.{parquet,csv}
└── test-00000-of-00001.{parquet,csv}
benchmark/ # reference artifacts (not in Viewer configs)
├── user_map.csv / item_map.csv
├── split_config.json
└── baseline_results*.csv
DATASHEET.md
LICENSE
README.md
```
## Key statistics
- Raw interactions: 18,274 (Booking 7,597 / Traveloka 6,273 / Ivivu 4,404)
- After cleaning: **18,267** interactions, **6,832** users, **560** hotels
- Entity matching merged 21 cross-site name variants; 78 hotels on ≥2 sites
- Benchmark split: 800 users × 535 items, 9,787 train / 800 test, 97.53% sparse
## Full pipeline & code
The reproducible construction scripts live on GitHub:
[MinhNguyenDS/ViHoRec](https://github.com/MinhNguyenDS/ViHoRec).
```bash
# rebuild Hub-ready parquet/csv layout from release/
python scripts/prepare_hf_hub.py
# then: huggingface-cli upload MinhDS/ViHoRec hf_hub/ . --repo-type dataset
```
## Citation
If you use ViHoRec, please cite [arXiv:2607.12946](https://arxiv.org/abs/2607.12946)
See `DATASHEET.md` for provenance, ethics, and known limitations.