metadata
tags:
- question-answering
- transformers.js
- onnx
- distilbert
- quantized
- spanish
license: other
distilbert-base-spanish-uncased-finetuned-qa-mlqa-onnx
Model Description
Spanish DistilBERT model fine-tuned for question answering on the MLQA dataset, exported to ONNX and quantized for use with Transformers.js.
Files
config.json
tokenizer.json
tokenizer_config.json
vocab.txt
onnx/model_quantized.onnx
Model Description
This model is in active use on PDF TO Markdown as part of a bilingual Question Answering system. Visitors can select either the Spanish QnA model (this one) or an English QnA model via the website’s language selector. You can try it out and see the models working in real time by requesting support directly on the site.
Usage in Transformers.js
import { pipeline } from '@xenova/transformers';
// Load the Spanish QA pipeline
pipeline('question-answering', 'jestevesv/distilbert-base-spanish-uncased-finetuned-qa-mlqa-onnx', { quantized: true })
.then(qa => qa(
'¿Cuál es la capital de Francia?',
'La capital de Francia es París.'
))
.then(result => console.log(result))
.catch(err => console.error(err));