Instructions to use louistzx/kaypohaunty with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use louistzx/kaypohaunty with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="louistzx/kaypohaunty")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("louistzx/kaypohaunty") model = AutoModelForSequenceClassification.from_pretrained("louistzx/kaypohaunty", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Review Classification Model
Multi-label classification model for restaurant reviews.
Labels
- Advertisement
- Irrelevant Content
- Rant Without Visit
- Spam
- Useful Review
Usage
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
tokenizer = AutoTokenizer.from_pretrained("louistzx/kaypohaunty")
model = AutoModelForSequenceClassification.from_pretrained("louistzx/kaypohaunty")
inputs = tokenizer("Your text here", return_tensors="pt", truncation=True, max_length=256)
with torch.no_grad():
outputs = model(**inputs)
predictions = torch.sigmoid(outputs.logits)
- Downloads last month
- 3