stanfordnlp/imdb
Viewer • Updated • 100k • 278k • 387
How to use Claudius7/cs546-adv-nlp-hw1-duozhou2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Claudius7/cs546-adv-nlp-hw1-duozhou2") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Claudius7/cs546-adv-nlp-hw1-duozhou2")
model = AutoModelForSequenceClassification.from_pretrained("Claudius7/cs546-adv-nlp-hw1-duozhou2")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Claudius7/cs546-adv-nlp-hw1-duozhou2")
model = AutoModelForSequenceClassification.from_pretrained("Claudius7/cs546-adv-nlp-hw1-duozhou2")Base model
nreimers/MiniLM-L6-H384-uncased
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Claudius7/cs546-adv-nlp-hw1-duozhou2")