jtbd-span-v1
Jobs, pains and gains as verbatim spans. Produced by scout-large 0.1.0, scout-large 0.1.1, scout-large 0.1.2.
Input
- A text in German or English, as one string. Any length; long texts are read in overlapping 512-token windows and the results are merged.
- Other languages and texts outside mobility are untested; the model still returns a valid output.
- The offsets in the output count characters (Unicode code points) of exactly the string you passed in.
Guarantees
Every quote is a verbatim span of the input:
text[start:end] == quote.Items are sorted by
startand never overlap.Every item has exactly the attribute keys listed in
dimensions.relevant: falsealways comes withitems: [].
Fields
| Field | Type | Allowed values | Meaning | Empty case |
|---|---|---|---|---|
output_format_version required | string (constant) | jtbd-span-v1 | The format of this output. Always | – |
relevant required | boolean | – | Whether the text contains jobs, pains or gains in mobility at all. scout-large sets it to true when its best item clears the relevance threshold. |
|
relevance_probability required | number (≥ 0, ≤ 1) | – | The mean probability of the model's relevance head over the windows of the text, from 0 to 1. Informational; | – |
dimensions required | array of string | actor_type evidence_type evidence_scope | The attribute dimensions the model produces for every item, a subset of | – |
items required | array of objects | – | The jobs, pains and gains found in the text, one object per item, sorted by | An empty list is a valid result. It means the model found no item, not that something failed. |
items[].kind required | string | job pain gain |
| – |
items[].quote required | string | – | The sentence or clause the item was found in, copied verbatim from the input. Items are whole sentences or clauses; a job that spans several sentences is split. | – |
items[].start required | integer (≥ 0) | – | Character offset where the quote starts in the input (inclusive, from 0). | – |
items[].end required | integer (≥ 1) | – | Character offset where the quote ends in the input (exclusive). | – |
items[].score required | number (≥ 0, ≤ 1) | – | The model's score for this span and kind, from 0 to 1. Higher is more confident; it is not a calibrated probability. | – |
items[].actor_type | string | individual worker organization public_sector society | Who has the job, pain or gain. The model gives the type only; it does not name the actor in free text. | – |
items[].evidence_type | string | opinion anecdote routine observation measurement | How directly the text supports the item, from lowest to highest: When the grade is uncertain, the lower grade is the correct one. | – |
items[].evidence_scope | string | single multiple quantified | How far the evidence reaches: | – |
Edge cases
| Input | What you get |
|---|---|
| Empty or whitespace-only text | A valid output with |
| A text on another subject, or without jobs, pains or gains |
|
| A very long text | Read in overlapping windows; offsets always refer to the whole text you passed in. |
| Another language | Untested. The output stays valid, but its quality is unknown. |
Versioning
Every output carries output_format_version. A change that breaks a parser (a renamed or removed field, a new required field, a changed meaning) gets a new format version; the old version stays documented. Before 1.0.0, an experimental model may change its output format in a minor release.