-
Notifications
You must be signed in to change notification settings - Fork 567
fix: Add Encodechka benchmark #2561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
50 changes: 50 additions & 0 deletions
50
mteb/tasks/Classification/rus/ru_nlu_intent_classification.py
This file contains hidden or 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,50 @@ | ||
| from __future__ import annotations | ||
|
|
||
| from mteb.abstasks.AbsTaskClassification import AbsTaskClassification | ||
| from mteb.abstasks.MultilingualTask import MultilingualTask | ||
| from mteb.abstasks.TaskMetadata import TaskMetadata | ||
|
|
||
|
|
||
| class RuNLUIntentClassification(AbsTaskClassification, MultilingualTask): | ||
| metadata = TaskMetadata( | ||
| name="RuNLUIntentClassification", | ||
| dataset={ | ||
| "path": "mteb/RuNLUIntentClassification", | ||
| "revision": "424d0f767aaa5c411e3a529eec04658e5726a39e", | ||
| }, | ||
| description=( | ||
| "Contains natural language data for human-robot interaction in home domain which we collected and" | ||
| " annotated for evaluating NLU Services/platforms." | ||
| ), | ||
| reference="https://arxiv.org/abs/1903.05566", | ||
| type="Classification", | ||
| category="t2t", | ||
| modalities=["text"], | ||
| eval_splits=["test"], | ||
| eval_langs={ | ||
| "rus-eng": [ | ||
| "rus-Cyrl", | ||
| "rus-Latn", | ||
| ], | ||
| "rus": [ | ||
| "rus-Cyrl", | ||
| ], | ||
| }, | ||
| main_score="accuracy", | ||
| date=("2019-03-26", "2019-03-26"), | ||
| domains=[], | ||
| task_subtypes=["Intent classification"], | ||
| license="cc-by-4.0", | ||
| annotations_creators="human-annotated", | ||
| dialect=[], | ||
| sample_creation="found", | ||
| bibtex_citation="""@misc{liu2019benchmarkingnaturallanguageunderstanding, | ||
| title={Benchmarking Natural Language Understanding Services for building Conversational Agents}, | ||
| author={Xingkun Liu and Arash Eshghi and Pawel Swietojanski and Verena Rieser}, | ||
| year={2019}, | ||
| eprint={1903.05566}, | ||
| archivePrefix={arXiv}, | ||
| primaryClass={cs.CL}, | ||
| url={https://arxiv.org/abs/1903.05566}, | ||
| }""", | ||
| ) |
33 changes: 33 additions & 0 deletions
33
mteb/tasks/Classification/rus/ru_toixic_classification_okmlcup.py
This file contains hidden or 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,33 @@ | ||
| from __future__ import annotations | ||
|
|
||
| from mteb.abstasks.AbsTaskClassification import AbsTaskClassification | ||
| from mteb.abstasks.TaskMetadata import TaskMetadata | ||
|
|
||
|
|
||
| class RuToxicOKMLCUPClassification(AbsTaskClassification): | ||
| metadata = TaskMetadata( | ||
| name="RuToxicOKMLCUPClassification", | ||
| dataset={ | ||
| "path": "mteb/RuToxicOKMLCUPClassification", | ||
| "revision": "13722b7320ef4b6a471f9e8b379f3f49167d0517", | ||
| }, | ||
| description="On the Odnoklassniki social network, users post a huge number of comments of various directions and nature every day.", | ||
| reference="https://cups.online/ru/contests/okmlcup2020", | ||
| type="Classification", | ||
| category="t2t", | ||
| modalities=["text"], | ||
| eval_splits=["test"], | ||
| eval_langs=["rus-Cyrl"], | ||
| main_score="accuracy", | ||
| date=("2015-01-01", "2020-01-01"), | ||
| domains=[], | ||
| task_subtypes=["Sentiment/Hate speech"], | ||
| license="not specified", | ||
| annotations_creators="derived", | ||
| dialect=[], | ||
| sample_creation="found", | ||
| bibtex_citation="""""", | ||
| ) | ||
|
|
||
| def dataset_transform(self): | ||
| self.dataset = self.dataset.rename_column("toxic", "label") |
This file contains hidden or 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,39 @@ | ||
| from __future__ import annotations | ||
|
|
||
| from mteb.abstasks.AbsTaskClassification import AbsTaskClassification | ||
| from mteb.abstasks.TaskMetadata import TaskMetadata | ||
|
|
||
|
|
||
| class SentiRuEval2016Classification(AbsTaskClassification): | ||
| metadata = TaskMetadata( | ||
| name="SentiRuEval2016", | ||
| dataset={ | ||
| "path": "mteb/SentiRuEval2016", | ||
| "revision": "8507eab0deef37f040a750afbcb4dba7a7de9c16", | ||
| }, | ||
| description="Russian sentiment analysis evaluation SentiRuEval-2016 devoted to reputation monitoring of banks " | ||
| "and telecom companies in Twitter. We describe the task, data, the procedure of data preparation, " | ||
| "and participants’ results.", | ||
| reference="https://github.com/mokoron/sentirueval", | ||
| type="Classification", | ||
| category="t2t", | ||
| modalities=["text"], | ||
| eval_splits=["test"], | ||
| eval_langs=["rus-Cyrl"], | ||
| main_score="accuracy", | ||
| date=("2015-01-01", "2016-01-01"), | ||
| domains=[], | ||
| task_subtypes=["Sentiment/Hate speech"], | ||
| license="not specified", | ||
| annotations_creators="derived", | ||
| dialect=[], | ||
| sample_creation="found", | ||
| bibtex_citation="""@inproceedings{loukachevitch2016sentirueval, | ||
| title={SentiRuEval-2016: overcoming time gap and data sparsity in tweet sentiment analysis}, | ||
| author={Loukachevitch, NV and Rubtsova, Yu V}, | ||
| booktitle={Computational Linguistics and Intellectual Technologies}, | ||
| pages={416--426}, | ||
| year={2016} | ||
| } | ||
| """, | ||
| ) |
This file contains hidden or 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
35 changes: 35 additions & 0 deletions
35
mteb/tasks/MultiLabelClassification/rus/ru_toixic_multilabelclassification_okmlcup.py
This file contains hidden or 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,35 @@ | ||
| from __future__ import annotations | ||
|
|
||
| from mteb.abstasks.AbsTaskMultilabelClassification import ( | ||
| AbsTaskMultilabelClassification, | ||
| ) | ||
| from mteb.abstasks.TaskMetadata import TaskMetadata | ||
|
|
||
|
|
||
| class RuToxicOKMLCUPMultilabelClassification(AbsTaskMultilabelClassification): | ||
| metadata = TaskMetadata( | ||
| name="RuToxicOKMLCUPMultilabelClassification", | ||
| dataset={ | ||
| "path": "mteb/RuToxicOKMLCUPClassification", | ||
| "revision": "13722b7320ef4b6a471f9e8b379f3f49167d0517", | ||
| }, | ||
| description="On the Odnoklassniki social network, users post a huge number of comments of various directions and nature every day.", | ||
| reference="https://cups.online/ru/contests/okmlcup2020", | ||
| type="Classification", | ||
| category="t2t", | ||
| modalities=["text"], | ||
| eval_splits=["test"], | ||
| eval_langs=["rus-Cyrl"], | ||
| main_score="accuracy", | ||
| date=("2015-01-01", "2024-01-01"), | ||
| domains=[], | ||
| task_subtypes=["Sentiment/Hate speech"], | ||
| license="not specified", | ||
| annotations_creators="derived", | ||
| dialect=[], | ||
| sample_creation="found", | ||
| bibtex_citation="""""", | ||
| ) | ||
|
|
||
| def dataset_transform(self): | ||
| self.dataset = self.dataset.rename_column("labels", "label") |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Samoed @KennethEnevoldsen this seems unrelated to this PR. I had previously updated this to match the MTEB paper's bibtex style. Would appreciate it if you could revert this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will fix it in separate PR then. I don't know why it was changed