jestevesv's picture
Update README.md
c34c0a4 verified
|
raw
history blame
882 Bytes
---
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`
## Usage in Transformers.js
```javascript
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));