-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Added English news classification dataset (#323)
* Fix typos in readme.md * Added news classification dataset. * Added news classification dataset. * Fixes on suggestions * Update docs/mmteb/points.md Co-authored-by: Kenneth Enevoldsen <kennethcenevoldsen@gmail.com> --------- Co-authored-by: Kenneth Enevoldsen <kennethcenevoldsen@gmail.com>
- Loading branch information
1 parent
d69bf94
commit 4d21807
Showing
9 changed files
with
73 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
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": "ag_news", | ||
"revision": "eb185aade064a813bc0b7f42de02595523103ca4", | ||
}, | ||
reference="https://arxiv.org/abs/1509.01626", | ||
type="Classification", | ||
category="s2s", | ||
eval_splits=["test"], | ||
eval_langs=["en"], | ||
main_score="accuracy", | ||
date=None, | ||
form=["written"], | ||
domains=["News"], | ||
task_subtypes=["Topic classification"], | ||
license="Apache 2.0", | ||
socioeconomic_status="medium", | ||
annotations_creators="expert-annotated", | ||
dialect=["en-US", "en-GB", "en-AU"], | ||
text_creation="found", | ||
bibtex_citation=None, | ||
n_samples={"test": 7600}, | ||
avg_character_length={"test": 235.29}, | ||
) |
13 changes: 13 additions & 0 deletions
13
results/intfloat__multilingual-e5-small/NewsClassification.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"dataset_revision": "eb185aade064a813bc0b7f42de02595523103ca4", | ||
"mteb_dataset_name": "NewsClassification", | ||
"mteb_version": "1.5.2", | ||
"test": { | ||
"accuracy": 0.8145526315789475, | ||
"accuracy_stderr": 0.02163049043233855, | ||
"evaluation_time": 69.36, | ||
"f1": 0.813099457864691, | ||
"f1_stderr": 0.02206820251059848, | ||
"main_score": 0.8145526315789475 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"model_name": "intfloat/multilingual-e5-small", "time_of_run": "2024-03-25 11:44:13.724109", "versions": null} | ||
{"model_name": "intfloat/multilingual-e5-small", "time_of_run": "2024-04-07 09:46:52.759711", "versions": null} |
13 changes: 13 additions & 0 deletions
13
results/sentence-transformers__paraphrase-multilingual-MiniLM-L12-v2/NewsClassification.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"dataset_revision": "eb185aade064a813bc0b7f42de02595523103ca4", | ||
"mteb_dataset_name": "NewsClassification", | ||
"mteb_version": "1.5.2", | ||
"test": { | ||
"accuracy": 0.685592105263158, | ||
"accuracy_stderr": 0.03763057828997146, | ||
"evaluation_time": 64.81, | ||
"f1": 0.6841960793010067, | ||
"f1_stderr": 0.03769716129683354, | ||
"main_score": 0.685592105263158 | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
results/sentence-transformers__paraphrase-multilingual-MiniLM-L12-v2/model_meta.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"model_name": "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2", "time_of_run": "2024-04-02 10:10:21.708612", "versions": {"sentence_transformers": "2.0.0", "transformers": "4.7.0", "pytorch": "1.9.0+cu102"}} | ||
{"model_name": "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2", "time_of_run": "2024-04-07 09:48:17.924041", "versions": {"sentence_transformers": "2.0.0", "transformers": "4.7.0", "pytorch": "1.9.0+cu102"}} |