Update README.md 739d30f verified
Kansal commited on
How to use ParitKansal/BERT_Paraphrase_Detection_GLUE_MRPC with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="ParitKansal/BERT_Paraphrase_Detection_GLUE_MRPC") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("ParitKansal/BERT_Paraphrase_Detection_GLUE_MRPC")
model = AutoModelForSequenceClassification.from_pretrained("ParitKansal/BERT_Paraphrase_Detection_GLUE_MRPC")