Downloads · 30 days
14
11% of all-time downloads
j2damax/serendip-travel-classifier
serendip-travel-classifier is a text classification model from j2damax. Use it when you need a label for a piece of text. The card lists the license as mit.
A fine-tuned bert-base-uncased model for classifying Sri Lankan tourist reviews into four experiential dimensions.
Downloads · 30 days
14
11% of all-time downloads
All-time downloads
130
Public
Parameters
109M
438 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors438 MB · 100%
From the Hugging Face model README
A fine-tuned bert-base-uncased model for classifying Sri Lankan tourist reviews into four experiential dimensions.
This model is a fine-tuned bert-base-uncased model trained on Sri Lankan tourism reviews to classify text into four experiential dimensions:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
# Load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("j2damax/serendip-travel-classifier")
model = AutoModelForSequenceClassification.from_pretrained("j2damax/serendip-travel-classifier")
# Example text
text = "The organic tea plantation tour was amazing! We learned about sustainable farming practices."
# Tokenize and predict
inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True)
with torch.no_grad():
outputs = model(**inputs)
predictions = torch.sigmoid(outputs.logits)
# Get predicted labels
labels = ["Regenerative & Eco-Tourism", "Integrated Wellness", "Immersive Culinary", "Off-the-Beaten-Path Adventure"]
predicted_labels = [labels[i] for i, score in enumerate(predictions[0]) if score > 0.5]
print(f"Predicted labels: predicted_labels")
This model was trained on Sri Lankan tourism reviews to classify experiences into four categories. The model uses a multi-label classification approach, meaning a single review can be classified into multiple categories simultaneously.
If you use this model, please cite:
@misc{serendip-travel-classifier,
title={Serendip Travel Experiential Classifier},
author={Jayampathy Balasuriya},
year={2025},
publisher={Hugging Face},
url={https://huggingface.co/j2damax/serendip-travel-classifier}
}