Tasks and output formats¶
Targets and identifiers¶
Eight task families produce twelve output variants when all are enabled. Each
variant receives the family's target records. Sample IDs are opaque identifiers;
do not infer the task, language, correctness, or source revision from substrings
inside an ID.
| Task | Stored task_group / type_id |
Dataset filename for target N |
|---|---|---|
| Paragraph coherence | multiple_choice_qa / type1 |
paragraph_coherence_N.jsonl |
| Paragraph ordering | multiple_choice_qa / type2 |
paragraph_ordering_N.jsonl |
| Article membership | other / type1 |
article_membership_N.jsonl |
| Next paragraph | other / type2 |
next_paragraph_N.jsonl |
| Title reranking | reranking / type1 |
reranking_N.jsonl |
| NER extraction | ner / type1 |
named_entity_recognition_type1_N.jsonl |
| NER type assignment | ner / type2 |
named_entity_recognition_type2_N.jsonl |
| NER type verification | ner / type3 |
named_entity_recognition_type3_N.jsonl |
| Topic prediction | classification / type1 |
topic_classification_type1_N.jsonl |
| Topic multiple choice | classification / type2 |
topic_classification_type2_N.jsonl |
| Topic verification | classification / type3 |
topic_classification_type3_N.jsonl |
| Extractive QA | extractive_qa / type1 |
extractive_question_answering_N.jsonl |
The legacy group/type fields are retained for compatibility. Paragraph task filenames and directories provide the descriptive task names.
Shared record schema¶
Each main task JSONL record has these fields. CSV uses the same columns, with nested objects/lists encoded as JSON strings inside cells.
| Field | Meaning |
|---|---|
sample_id |
Stable identifier for the generator's input/ID policy |
task_group, type_id |
Task family representation shown above |
instruction |
Configured or default response instructions |
input |
Task-specific text and other visible inputs |
choices |
Choice list; its element type depends on the variant |
answer |
Gold annotation object; its schema depends on the variant |
metadata |
Available source, sampling, split, or confidence information |
Paragraph tasks¶
All four tasks share enrichment and clustering. They require eligible articles with at least four selected paragraphs. Their ground truth is derived from source article membership and order.
Paragraph coherence¶
A four-paragraph window has one paragraph replaced with an embedding-selected
paragraph from a different article. input.paragraphs contains indexed paragraphs;
choices use letters A–D and paragraph_index values 1–4. The answer has
choice_id and paragraph_index. The replacement is the constructed gold outlier;
its semantic incoherence is not independently guaranteed.
Paragraph ordering¶
Four consecutive source paragraphs are shuffled. Labels A–D are assigned
after shuffling, in displayed order, so labels do not disclose original order.
Each choice contains an order permutation; the answer contains choice_id and
the source-order permutation. Recovering source order is the objective; it is
not a claim that source order is the only coherent arrangement.
Article membership¶
Two paragraphs are drawn from the same article or from different articles.
input has paragraph_a and paragraph_b; the answer has is_same_article.
The constructed positive/negative labels alternate, giving equal counts for even
targets and one extra positive for odd targets. The label concerns provenance,
not simply semantic similarity.
Next paragraph¶
The input contains a title and preceding paragraphs. Four choices contain
candidate continuation text; one comes from the selected source continuation.
The answer has choice_id and next_paragraph. Distractors are constructed
from other articles; more than one choice may still read plausibly to a human.
Title reranking¶
The input is query_text, a source paragraph. Choices expose candidate titles
with string IDs 1–candidate_count. Candidate mining uses embeddings of a
title plus representative text internally. One gold title is known from source
provenance; the remaining choices are hard negatives.
The answer contains choice_id, zero-based gold_index, and gold_title.
The default instruction asks for a complete ranking, but the annotation supplies
one relevant title, not a gold permutation or graded relevance for every title.
Evaluate the rank of that gold title, for example with Recall@k or reciprocal
rank. A complete relevance-order evaluation needs additional judgments. Hermes
currently generates datasets; it does not supply a general model evaluation runner.
Named entity recognition¶
Annotations are derived from Wikipedia link mentions, resolved to Wikidata items, then mapped through the configured ontology and priority. This is distant supervision: unlinked entities may be missing and link boundaries/types may be imperfect.
| Variant | Input / choices | Answer |
|---|---|---|
type1 |
Passage; no choices | entities: text, type, and token bounds |
type2 |
Passage and entities identified as E1, E2, …; active label choices |
entity_types: entity ID/type pairs |
type3 |
Passage, entity, proposed type; boolean choices | is_correct, correct_type |
start_token is inclusive and end_token is exclusive in the generator's
word/punctuation tokenization. These are not byte offsets or a language model's
subword-token indices. The verification variant alternates true/false proposals.
Instructions accept the {ner_labels} vocabulary placeholder.
Topic classification¶
Candidate articles have lead text and retained direct categories. Category hints and embedding clusters support candidate sampling; an LLM assigns exactly one allowed label. The provided taxonomy determines what that label means.
| Variant | Input / choices | Answer |
|---|---|---|
type1 |
Passage and allowed labels | label |
type2 |
Passage; four lettered label choices | choice_id, label |
type3 |
Passage and proposed label; boolean choices | is_correct, correct_label |
At least four distinct labels are required. Metadata confidence is the model's self-reported value, not an empirically calibrated probability. Review files include blank human-review fields; writing these files does not perform a human review.
Extractive question answering¶
Link mentions provide candidate answer spans. Contexts can be normalized, trimmed, or prefixed with the title. Template mode uses configured question patterns; hybrid mode rewrites selected questions with an LLM. The answer is always checked against the exported context.
This illustrative fragment shows the schema, not an exported Wikipedia record:
{
"input": {
"question": "Azərbaycanın paytaxtı hansı şəhərdir?",
"context": "Bakı Azərbaycanın paytaxtıdır."
},
"answer": {
"answer_text": "Bakı",
"answer_start": 0,
"answer_end": 4
}
}
Character bounds use Python string positions: start inclusive, end exclusive. They are Unicode character positions in the exported string, not UTF-8 byte offsets. QA also exports raw train/dev/test JSONL, a SQuAD-style JSON file, and review files. SQuAD-style export is a format choice; these data are not the original SQuAD dataset and are not necessarily collected by the same method.
Normalized identical question/context pairs with different gold answers form a
conflict group. Generation replaces the entire group, preserves the target
count, and records the changes in quality_report.json. Hybrid replacements
must pass a separate model answer check that does not see the gold answer.
Structural validation detects remaining conflicting gold annotations. Neither
check proves that every other question is unambiguous; see
Methodology.
Output layout¶
output/<run>/
├── benchmark_manifest.json
├── raw/{articles.jsonl,paragraphs.jsonl,manifest.json}
├── enriched/{articles.jsonl,paragraphs.jsonl,*.npy,manifest.json}
├── tasks/
│ ├── paragraph/<descriptive-task-name>/<task-name>_N.{jsonl,csv}
│ ├── reranking/type1/reranking_N.{jsonl,csv}
│ ├── ner/type{1,2,3}/named_entity_recognition_typeX_N.{jsonl,csv}
│ ├── classification/type{1,2,3}/topic_classification_typeX_N.{jsonl,csv}
│ └── extractive_qa/
│ ├── type1/extractive_question_answering_N.{jsonl,csv}
│ ├── raw/{train,dev,test}.jsonl
│ ├── squad/extractive_question_answering_N_squad.json
│ ├── review/manual_review_N.{jsonl,csv}
│ ├── quality_report.json
│ └── manifest.json
└── cache/*.sqlite
Braces describe alternatives, not literal filenames. Review counts can differ
from N when manual_review_total is changed. Each generated task directory also
contains its own manifest. Enrichment exists only when a task requires it.
Legacy samples_N datasets are renamed to descriptive paths when matching
cached outputs are reused; manifest references are updated with the rename.