FEA-Bench / testbed /embeddings-benchmark__mteb /mteb /tasks /Classification /eng /NewsClassification.py
| from __future__ import annotations | |
| from mteb.abstasks.TaskMetadata import TaskMetadata | |
| from ....abstasks import AbsTaskClassification | |
| class NewsClassification(AbsTaskClassification): | |
| metadata = TaskMetadata( | |
| name="NewsClassification", | |
| description="Large News Classification Dataset", | |
| dataset={ | |
| "path": "fancyzhx/ag_news", | |
| "revision": "eb185aade064a813bc0b7f42de02595523103ca4", | |
| }, | |
| reference="https://arxiv.org/abs/1509.01626", | |
| type="Classification", | |
| category="s2s", | |
| eval_splits=["test"], | |
| eval_langs=["eng-Latn"], | |
| main_score="accuracy", | |
| date=( | |
| "2004-01-01", | |
| "2015-12-31", | |
| ), # Estimated range for the collection of news articles | |
| form=["written"], | |
| domains=["News"], | |
| task_subtypes=["Topic classification"], | |
| license="Apache 2.0", | |
| socioeconomic_status="medium", | |
| annotations_creators="expert-annotated", | |
| dialect=["eng-Latn-US", "en-Latn-GB", "en-Latn-AU"], | |
| text_creation="found", | |
| bibtex_citation="", | |
| n_samples={"test": 7600}, | |
| avg_character_length={"test": 235.29}, | |
| ) | |