1from transformers import pipeline
23classifier = pipeline(4"text-classification",5 model="Kauhiro/modernbert-yelp-polarity",6)78result = classifier("The food was absolutely amazing and the service was top notch!")9print(result)10# [{'label': 'positive', 'score': 0.9997}]
Citation
If you use this model, please cite:
@misc{modernbert-yelp-polarity,
author = {Kauhiro},
title = {ModernBERT fine-tuned on Yelp Polarity},
year = {2025},
url = {https://huggingface.co/Kauhiro/modernbert-yelp-polarity}
}