How ainniy/hotel_review_multilabel_classification works
This repository documents a multilingual, 20-topic hotel-review classifier. The principal workflow prepares and augments labeled data, trains an XLM-RoBERTa multi-label model, tunes per-label thresholds, then applies the model and thresholds to reviews for submission. The README also describes semantic review headers, stratified splitting, and class-weighted loss. Relationships are based on the README; no notebook source excerpts were provided, so notebook internals and unconfirmed data-flow details are not expanded.
Main entry points: preprocessing.ipynb Prepare and augment · model.ipynb Fine-tune classifier · inference.ipynb Predict and submit · train_data.csv Training data
Components 9
Data preparation
- Prepare and augment
preprocessing.ipynb - Training data
train_data.csv - Validation data
val_data.csv
Model training
- Fine-tune classifier
model.ipynb - Label thresholds
best_thresholds.npy
Prediction
- Predict and submit
inference.ipynb
Other components
- Review data
- Back-translation service
- Topic predictions
Connections 10
- Review data → Prepare and augment: prepares
README.md - Prepare and augment → Back-translation service: back-translates
README.md - Prepare and augment → Training data: creates
README.md - Prepare and augment → Validation data: creates
README.md - Fine-tune classifier → Training data: trains on
README.md - Fine-tune classifier → Validation data: validates on
README.md - Fine-tune classifier → Label thresholds: optimizes
README.md - Review data → Predict and submit: submits reviews
README.md - Predict and submit → Label thresholds: uses
README.md - Predict and submit → Topic predictions: produces
README.md