urchade commited on
Commit
45e47a3
·
verified ·
1 Parent(s): 6f37dd8

Rewrite the dataset card and correct model names

Browse files
Files changed (1) hide show
  1. README.md +48 -40
README.md CHANGED
@@ -4,7 +4,7 @@ language:
4
  - en
5
  task_categories:
6
  - text-classification
7
- pretty_name: GLissify bench (dev)
8
  size_categories:
9
  - 1K<n<10K
10
  tags:
@@ -50,15 +50,28 @@ configs:
50
  data_files: "screen_tags.jsonl"
51
  ---
52
 
53
- # GLissify bench — dev split
54
 
55
- A 17-domain, multi-task text classification benchmark used to evaluate [GLissify](https://huggingface.co/fastino/GLissify-latest) and other typed-decision models (JevK5, SemIf, GLiFormer, Laya). This release ships the **dev split only** (100 examples per domain, 1,700 rows total). The larger **test split (300/domain) is held out** so this dataset can be reused as a leaderboard without contamination — see [Splits](#splits) below.
56
 
57
- Each domain is a **separate JSONL file** (`<domain>.jsonl`) so you can load one at a time or the whole set. Every row is a single-turn classification example: free text in, one or more classification heads out. Some domains have a single head (e.g. sentiment); others stack 2–4 heads on the same input (e.g. email triage: category, action, needs-reply, phishing). A few heads are multi-label (`multi_label: true`), meaning more than one label can be correct at once.
 
 
 
 
 
 
 
 
 
 
 
 
 
58
 
59
  ## Schema
60
 
61
- Every row follows the GLiNER2 classification JSONL shape:
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
- - There is no `entities` key; this benchmark is classification-only, so it is omitted rather than shipped empty.
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
- This dataset was generated with a **dev (100/domain)** and a **test (300/domain)** split from the same seed and generator (`generated_multidomain_bench`, seed 23). **Only dev is published here.** Test is kept private and used internally to score GLissify, GLiNER2 XL, JevK5, SemIf, GLiFormer, and Laya under an identical protocol (same input text, same candidate label set, same exact-match scoring) — see the [GLissify model card](https://huggingface.co/fastino/GLissify-latest) for those numbers. Use dev for prompt/schema iteration and sanity checks; do not report dev numbers as the headline benchmark score, since dev was also used during development.
 
 
 
 
 
411
 
412
  ## Loading
413
 
414
- Load a single domain:
415
 
416
  ```python
417
  from datasets import load_dataset
418
 
419
- ds = load_dataset("fastino/glissify-bench", "support_intent", split="train")
420
- print(ds[0])
421
  ```
422
 
423
- Or load every domain and concatenate:
424
 
425
  ```python
426
  from datasets import load_dataset, concatenate_datasets
427
 
428
  domains = [
429
- "support_intent",
430
- "support_topic",
431
- "document_type",
432
- "review_sentiment",
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
- [load_dataset("fastino/glissify-bench", d, split="train") for d in domains]
449
- )
450
  ```
451
 
452
- Score a model against it:
453
 
454
  ```python
455
  from gliner2 import AutoExtractor
456
 
457
- model = AutoExtractor.from_pretrained("fastino/GLissify-latest")
458
 
459
- hits, total = 0, 0
460
  for row in ds:
461
- text = row["input"]
462
  for head in row["output"]["classifications"]:
463
- schema = {head["task"]: head["labels"]}
464
- pred = model.classify_text(text, schema)
465
- predicted = pred[head["task"]]["label"]
466
- hits += predicted in head["true_label"]
 
 
 
467
  total += 1
468
- print(f"exact-match accuracy: {hits/total:.1%}")
469
  ```
470
 
 
 
471
  ## Provenance
472
 
473
- Synthetically generated for the FELIX classification project (not scraped, not copied from any existing benchmark). Every domain has fictional names, IDs, and amounts. No real PII. Generator: `generated_multidomain_bench`, seed 23.
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