martingrzzler/conreteness_ratings
Viewer • Updated • 40k • 9 • 2
How to use martingrzzler/bert-word-conreteness with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="martingrzzler/bert-word-conreteness") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("martingrzzler/bert-word-conreteness")
model = AutoModelForSequenceClassification.from_pretrained("martingrzzler/bert-word-conreteness", device_map="auto")