DFKI-SLT/few-nerd
Viewer • Updated • 514k • 2.98k • 21
How to use Berk/span-marker-xlm-roberta-base-fewnerd-onnx with SpanMarker:
from span_marker import SpanMarkerModel
model = SpanMarkerModel.from_pretrained("Berk/span-marker-xlm-roberta-base-fewnerd-onnx")ONNX export of tomaarsen/span-marker-xlm-roberta-base-fewnerd-fine-super for browser-based inference.
building-hotel, building-airport, location-GPE, location-park, location-bodiesofwater, location-mountain, etc.)| File | Size | Description |
|---|---|---|
encoder.onnx |
~266 MB | XLM-RoBERTa encoder (INT8 quantized) |
classifier.onnx |
0.4 MB | Linear classifier (1536 -> 67 classes) |
labels.json |
2 KB | ID to label mapping |
tokenizer.json |
17 MB | SentencePiece tokenizer |
SpanMarker uses a custom architecture:
entity_max_length=8 tokens)[start_idx : start_idx + n_pairs][start_idx + n_pairs : start_idx + n_pairs*2]CC-BY-SA-4.0 (same as original model)
Base model
FacebookAI/xlm-roberta-base