Slot Filling for Biomedical Information Extraction
Paper • 2109.08564 • Published
How to use healx/biomedical-dpr-qry-encoder with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="healx/biomedical-dpr-qry-encoder") # Load model directly
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("healx/biomedical-dpr-qry-encoder")
model = AutoModel.from_pretrained("healx/biomedical-dpr-qry-encoder")YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
DPR query encoder for Biomedical slot filling see https://arxiv.org/abs/2109.08564 for details.
Load with:
from transformers import DPRQuestionEncoder, DPRQuestionEncoderTokenizerFast
qry_encoder = DPRQuestionEncoder.from_pretrained('healx/biomedical-dpr-qry-encoder')
qry_tokenizer = DPRQuestionEncoderTokenizer.from_pretrained('facebook/dpr-question_encoder-single-nq-base')