fixed model version b33589f
Moreno La Quatra commited on
How to use morenolq/thext-bio-scibert with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="morenolq/thext-bio-scibert") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("morenolq/thext-bio-scibert")
model = AutoModelForSequenceClassification.from_pretrained("morenolq/thext-bio-scibert")