Rewrite the dataset card and correct model names
Browse files
README.md
CHANGED
|
@@ -4,7 +4,7 @@ language:
|
|
| 4 |
- en
|
| 5 |
task_categories:
|
| 6 |
- text-classification
|
| 7 |
-
pretty_name:
|
| 8 |
size_categories:
|
| 9 |
- 1K<n<10K
|
| 10 |
tags:
|
|
@@ -50,15 +50,28 @@ configs:
|
|
| 50 |
data_files: "screen_tags.jsonl"
|
| 51 |
---
|
| 52 |
|
| 53 |
-
#
|
| 54 |
|
| 55 |
-
|
| 56 |
|
| 57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
## Schema
|
| 60 |
|
| 61 |
-
Every row
|
| 62 |
|
| 63 |
```json
|
| 64 |
{
|
|
@@ -83,7 +96,7 @@ Every row follows the GLiNER2 classification JSONL shape:
|
|
| 83 |
|
| 84 |
- `true_label` is always a list of strings, even for single-label heads.
|
| 85 |
- `labels` is the **full candidate set** for that head — pass it to your model as-is; do not shuffle out the gold label.
|
| 86 |
-
-
|
| 87 |
- Ordinal heads (0–5, 0–10) use string digits, not integers.
|
| 88 |
|
| 89 |
## Domains
|
|
@@ -407,70 +420,65 @@ Gold labels:
|
|
| 407 |
|
| 408 |
## Splits
|
| 409 |
|
| 410 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 411 |
|
| 412 |
## Loading
|
| 413 |
|
| 414 |
-
|
| 415 |
|
| 416 |
```python
|
| 417 |
from datasets import load_dataset
|
| 418 |
|
| 419 |
-
ds = load_dataset("fastino/
|
| 420 |
-
print(ds[0])
|
| 421 |
```
|
| 422 |
|
| 423 |
-
|
| 424 |
|
| 425 |
```python
|
| 426 |
from datasets import load_dataset, concatenate_datasets
|
| 427 |
|
| 428 |
domains = [
|
| 429 |
-
"support_intent",
|
| 430 |
-
"
|
| 431 |
-
"
|
| 432 |
-
"
|
| 433 |
-
"agent_handoff",
|
| 434 |
-
"email_triage",
|
| 435 |
-
"ticket_route",
|
| 436 |
-
"product_feedback",
|
| 437 |
-
"banking_intent",
|
| 438 |
-
"clinic_request",
|
| 439 |
-
"travel_request",
|
| 440 |
-
"news_topic",
|
| 441 |
-
"paper_field",
|
| 442 |
-
"sports_recap",
|
| 443 |
-
"restaurant_review",
|
| 444 |
-
"benefits_request",
|
| 445 |
"screen_tags",
|
| 446 |
]
|
| 447 |
-
all_ds = concatenate_datasets(
|
| 448 |
-
|
| 449 |
-
)
|
| 450 |
```
|
| 451 |
|
| 452 |
-
|
| 453 |
|
| 454 |
```python
|
| 455 |
from gliner2 import AutoExtractor
|
| 456 |
|
| 457 |
-
model = AutoExtractor.from_pretrained("fastino/
|
| 458 |
|
| 459 |
-
hits
|
| 460 |
for row in ds:
|
| 461 |
-
text = row["input"]
|
| 462 |
for head in row["output"]["classifications"]:
|
| 463 |
-
|
| 464 |
-
|
| 465 |
-
|
| 466 |
-
|
|
|
|
|
|
|
|
|
|
| 467 |
total += 1
|
| 468 |
-
print(f"exact-match accuracy: {hits/total:.1%}")
|
| 469 |
```
|
| 470 |
|
|
|
|
|
|
|
| 471 |
## Provenance
|
| 472 |
|
| 473 |
-
|
| 474 |
|
| 475 |
## License
|
| 476 |
|
|
|
|
| 4 |
- en
|
| 5 |
task_categories:
|
| 6 |
- text-classification
|
| 7 |
+
pretty_name: Fast Decisions
|
| 8 |
size_categories:
|
| 9 |
- 1K<n<10K
|
| 10 |
tags:
|
|
|
|
| 50 |
data_files: "screen_tags.jsonl"
|
| 51 |
---
|
| 52 |
|
| 53 |
+
# Fast Decisions
|
| 54 |
|
| 55 |
+
Seventeen domains of schema-driven text classification. Each file is one domain. Each row is one document and one or more decisions: a task name, the candidate labels, and the gold label. Some domains ask a single question. Email triage, ticket routing, clinic requests, sports recaps, and benefits requests ask several questions of the same text. Product feedback, restaurant reviews, and screen tags include a multi-label head.
|
| 56 |
|
| 57 |
+
This release is the development split: 100 examples per domain, 1,700 rows. The test split, 300 examples per domain, is held out.
|
| 58 |
+
|
| 59 |
+
Held-out exact-match accuracy, same text and the same candidate labels for every model:
|
| 60 |
+
|
| 61 |
+
| Model | Average |
|
| 62 |
+
|---|---:|
|
| 63 |
+
| [GLiNER2.5-Decide](https://huggingface.co/fastino/GLiNER2.5-Decide) | 60.2% |
|
| 64 |
+
| [GLiNER2.5-multi-Decide](https://huggingface.co/fastino/GLiNER2.5-multi-Decide) | 56.7% |
|
| 65 |
+
| JevK5 | 57.6% |
|
| 66 |
+
| SemIf | 56.4% |
|
| 67 |
+
| GLiFormer | 49.0% |
|
| 68 |
+
| Laya | 46.6% |
|
| 69 |
+
|
| 70 |
+
GLiNER2.5-Decide is the English model. GLiNER2.5-multi-Decide is the multilingual model, scored here on English text. Report test numbers from a private evaluation. Do not treat this published split as the leaderboard.
|
| 71 |
|
| 72 |
## Schema
|
| 73 |
|
| 74 |
+
Every row has this shape:
|
| 75 |
|
| 76 |
```json
|
| 77 |
{
|
|
|
|
| 96 |
|
| 97 |
- `true_label` is always a list of strings, even for single-label heads.
|
| 98 |
- `labels` is the **full candidate set** for that head — pass it to your model as-is; do not shuffle out the gold label.
|
| 99 |
+
- Rows are classification only. There is no entity field.
|
| 100 |
- Ordinal heads (0–5, 0–10) use string digits, not integers.
|
| 101 |
|
| 102 |
## Domains
|
|
|
|
| 420 |
|
| 421 |
## Splits
|
| 422 |
|
| 423 |
+
| Split | Examples per domain | Where |
|
| 424 |
+
|---|---:|---|
|
| 425 |
+
| Development | 100 | This dataset |
|
| 426 |
+
| Test | 300 | Held out |
|
| 427 |
+
|
| 428 |
+
The table above is the test split. Use the files here to check a schema or a loader. A number computed on these 1,700 rows is not the benchmark result.
|
| 429 |
|
| 430 |
## Loading
|
| 431 |
|
| 432 |
+
One domain:
|
| 433 |
|
| 434 |
```python
|
| 435 |
from datasets import load_dataset
|
| 436 |
|
| 437 |
+
ds = load_dataset("fastino/fast-decisions", "support_intent", split="train")
|
|
|
|
| 438 |
```
|
| 439 |
|
| 440 |
+
Every domain:
|
| 441 |
|
| 442 |
```python
|
| 443 |
from datasets import load_dataset, concatenate_datasets
|
| 444 |
|
| 445 |
domains = [
|
| 446 |
+
"support_intent", "support_topic", "document_type", "review_sentiment",
|
| 447 |
+
"agent_handoff", "email_triage", "ticket_route", "product_feedback",
|
| 448 |
+
"banking_intent", "clinic_request", "travel_request", "news_topic",
|
| 449 |
+
"paper_field", "sports_recap", "restaurant_review", "benefits_request",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 450 |
"screen_tags",
|
| 451 |
]
|
| 452 |
+
all_ds = concatenate_datasets([
|
| 453 |
+
load_dataset("fastino/fast-decisions", name, split="train") for name in domains
|
| 454 |
+
])
|
| 455 |
```
|
| 456 |
|
| 457 |
+
Exact match against [GLiNER2.5-Decide](https://huggingface.co/fastino/GLiNER2.5-Decide). A single-label head returns a string. A multi-label head returns a list. Both are compared as sets.
|
| 458 |
|
| 459 |
```python
|
| 460 |
from gliner2 import AutoExtractor
|
| 461 |
|
| 462 |
+
model = AutoExtractor.from_pretrained("fastino/GLiNER2.5-Decide")
|
| 463 |
|
| 464 |
+
hits = total = 0
|
| 465 |
for row in ds:
|
|
|
|
| 466 |
for head in row["output"]["classifications"]:
|
| 467 |
+
pred = model.classify_text(row["input"], {head["task"]: head["labels"]})
|
| 468 |
+
got = pred[head["task"]]
|
| 469 |
+
if isinstance(got, str):
|
| 470 |
+
got = [got]
|
| 471 |
+
elif isinstance(got, dict):
|
| 472 |
+
got = [got["label"]]
|
| 473 |
+
hits += sorted(got) == sorted(head["true_label"])
|
| 474 |
total += 1
|
|
|
|
| 475 |
```
|
| 476 |
|
| 477 |
+
For text that is not English, load [GLiNER2.5-multi-Decide](https://huggingface.co/fastino/GLiNER2.5-multi-Decide) the same way.
|
| 478 |
+
|
| 479 |
## Provenance
|
| 480 |
|
| 481 |
+
Synthetic documents. Names, account numbers, and amounts are fictional. The set is not copied from a public benchmark.
|
| 482 |
|
| 483 |
## License
|
| 484 |
|