File size: 227 Bytes
714be4e
 
 
 
 
 
1
2
3
4
5
6
7
from sentence_transformers import SentenceTransformer
from transformers import pipeline


model = SentenceTransformer("paraphrase-MiniLM-L6-v2")
qa_pipeline = pipeline("question-answering", model="deepset/roberta-base-squad2")