add tokenizer 28c3cbb
Julia Gonik commited on
How to use jgonik/nlp-puzzle with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="jgonik/nlp-puzzle") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("jgonik/nlp-puzzle")
model = AutoModelForSequenceClassification.from_pretrained("jgonik/nlp-puzzle")