shireesh-uop/nhs_classification
Viewer • Updated • 27.1k • 11 • 2
How to use shireesh-uop/nhs_classification with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="shireesh-uop/nhs_classification") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("shireesh-uop/nhs_classification")
model = AutoModelForSequenceClassification.from_pretrained("shireesh-uop/nhs_classification")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("shireesh-uop/nhs_classification")
model = AutoModelForSequenceClassification.from_pretrained("shireesh-uop/nhs_classification")
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="shireesh-uop/nhs_classification")