Update README.md
Browse files
README.md
CHANGED
|
@@ -1,37 +1,35 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
* `vocab.txt`
|
| 26 |
-
* `onnx/model_quantized.onnx`
|
| 27 |
-
|
| 28 |
-
### Usage in Transformers.js
|
| 29 |
-
|
| 30 |
```javascript
|
| 31 |
import { pipeline } from '@xenova/transformers';
|
| 32 |
|
| 33 |
// Load the Spanish QA pipeline
|
| 34 |
pipeline('question-answering', 'jestevesv/distilbert-base-spanish-uncased-finetuned-qa-mlqa-onnx', { quantized: true })
|
| 35 |
-
.then(qa => qa(
|
|
|
|
|
|
|
|
|
|
| 36 |
.then(result => console.log(result))
|
| 37 |
.catch(err => console.error(err));
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- question-answering
|
| 4 |
+
- transformers.js
|
| 5 |
+
- onnx
|
| 6 |
+
- distilbert
|
| 7 |
+
- quantized
|
| 8 |
+
- spanish
|
| 9 |
+
license: other
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# distilbert-base-spanish-uncased-finetuned-qa-mlqa-onnx
|
| 13 |
+
|
| 14 |
+
## Model Description
|
| 15 |
+
Spanish DistilBERT model fine-tuned for question answering on the MLQA dataset, exported to ONNX and quantized for use with Transformers.js.
|
| 16 |
+
|
| 17 |
+
## Files
|
| 18 |
+
- `config.json`
|
| 19 |
+
- `tokenizer.json`
|
| 20 |
+
- `tokenizer_config.json`
|
| 21 |
+
- `vocab.txt`
|
| 22 |
+
- `onnx/model_quantized.onnx`
|
| 23 |
+
|
| 24 |
+
## Usage in Transformers.js
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
```javascript
|
| 26 |
import { pipeline } from '@xenova/transformers';
|
| 27 |
|
| 28 |
// Load the Spanish QA pipeline
|
| 29 |
pipeline('question-answering', 'jestevesv/distilbert-base-spanish-uncased-finetuned-qa-mlqa-onnx', { quantized: true })
|
| 30 |
+
.then(qa => qa(
|
| 31 |
+
'¿Cuál es la capital de Francia?',
|
| 32 |
+
'La capital de Francia es París.'
|
| 33 |
+
))
|
| 34 |
.then(result => console.log(result))
|
| 35 |
.catch(err => console.error(err));
|