Upload BertForSequenceClassification 9b045e8 verified
Samuel commited on
How to use SAdeosun/Pharmacy-Practice-Research-Domain-Classifier_PPRDC_Abstract with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="SAdeosun/Pharmacy-Practice-Research-Domain-Classifier_PPRDC_Abstract") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("SAdeosun/Pharmacy-Practice-Research-Domain-Classifier_PPRDC_Abstract")
model = AutoModelForSequenceClassification.from_pretrained("SAdeosun/Pharmacy-Practice-Research-Domain-Classifier_PPRDC_Abstract")