-
Notifications
You must be signed in to change notification settings - Fork 555
dataset: [ADD] 50 Vietnamese dataset from vn-mteb #2964
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
9 commits
Select commit
Hold shift + click to select a range
4bd3b39
[ADD] 50 vietnamese dataset from vn-mteb
BaoLocPham e87fb0d
[UPDATE] task metadata
BaoLocPham 5d18eca
[UPDATE] import dependencies
BaoLocPham e3237aa
Merge branch 'embeddings-benchmark:main' into main
BaoLocPham 0f7a192
[UPDATE] task metadata, bibtext citation
BaoLocPham 35948bc
[UPDATE-TEST] test_model_meta
BaoLocPham c136fb6
[UPDATE] sample_creation to machine-translated and LM verified
BaoLocPham b26a507
[ADD] sample creation machine-translated and LM verified
BaoLocPham 9d2a03b
[REMOVE] default fields metadata in Classfication tasks
BaoLocPham 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
47 changes: 47 additions & 0 deletions
47
mteb/tasks/Classification/vie/AmazonCounterfactualVNClassification.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,47 @@ | ||
| from __future__ import annotations | ||
|
|
||
| from mteb.abstasks.AbsTaskClassification import AbsTaskClassification | ||
| from mteb.abstasks.TaskMetadata import TaskMetadata | ||
|
|
||
|
|
||
| class AmazonCounterfactualVNClassification(AbsTaskClassification): | ||
| num_samples = 32 | ||
|
|
||
| metadata = TaskMetadata( | ||
| name="AmazonCounterfactualVNClassification", | ||
| dataset={ | ||
| "path": "GreenNode/amazon-counterfactual-vn", | ||
| "revision": "b48bc27d383cfca5b6a47135a52390fa5f66b253", | ||
| }, | ||
| description="""A collection of translated Amazon customer reviews annotated for counterfactual detection pair classification. | ||
| The process of creating the VN-MTEB (Vietnamese Massive Text Embedding Benchmark) from English samples involves a new automated system: | ||
| - The system uses large language models (LLMs), specifically Coherence's Aya model, for translation. | ||
| - Applies advanced embedding models to filter the translations. | ||
| - Use LLM-as-a-judge to scoring the quality of the samples base on multiple criteria. | ||
| """, | ||
| reference="https://arxiv.org/abs/2104.06893", | ||
| category="s2s", | ||
| type="Classification", | ||
| eval_splits=["test"], | ||
| eval_langs=["vie-Latn"], | ||
| main_score="accuracy", | ||
| date=("2025-07-29", "2025-07-30"), | ||
| license="cc-by-sa-4.0", | ||
| annotations_creators="derived", | ||
| dialect=[], | ||
| sample_creation="machine-translated and LM verified", | ||
| domains=["Reviews", "Written"], | ||
| task_subtypes=["Counterfactual Detection"], | ||
| bibtex_citation=r""" | ||
| @misc{pham2025vnmtebvietnamesemassivetext, | ||
| archiveprefix = {arXiv}, | ||
| author = {Loc Pham and Tung Luu and Thu Vo and Minh Nguyen and Viet Hoang}, | ||
| eprint = {2507.21500}, | ||
| primaryclass = {cs.CL}, | ||
| title = {VN-MTEB: Vietnamese Massive Text Embedding Benchmark}, | ||
| url = {https://arxiv.org/abs/2507.21500}, | ||
| year = {2025}, | ||
| } | ||
| """, | ||
| adapted_from=["AmazonCounterfactualClassification"], | ||
| ) | ||
45 changes: 45 additions & 0 deletions
45
mteb/tasks/Classification/vie/AmazonPolarityVNClassification.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,45 @@ | ||
| from __future__ import annotations | ||
|
|
||
| from mteb.abstasks.AbsTaskClassification import AbsTaskClassification | ||
| from mteb.abstasks.TaskMetadata import TaskMetadata | ||
|
|
||
|
|
||
| class AmazonPolarityVNClassification(AbsTaskClassification): | ||
| metadata = TaskMetadata( | ||
| name="AmazonPolarityVNClassification", | ||
| description="""A collection of translated Amazon customer reviews annotated for polarity classification. | ||
| The process of creating the VN-MTEB (Vietnamese Massive Text Embedding Benchmark) from English samples involves a new automated system: | ||
| - The system uses large language models (LLMs), specifically Coherence's Aya model, for translation. | ||
| - Applies advanced embedding models to filter the translations. | ||
| - Use LLM-as-a-judge to scoring the quality of the samples base on multiple criteria. | ||
| """, | ||
| reference="https://huggingface.co/datasets/amazon_polarity", | ||
| dataset={ | ||
| "path": "GreenNode/amazon-polarity-vn", | ||
| "revision": "4e9a0d6e6bd97ab32f23c50c043d751eed2a5f8a", | ||
| }, | ||
| type="Classification", | ||
| category="s2s", | ||
| eval_splits=["test"], | ||
| eval_langs=["vie-Latn"], | ||
| main_score="accuracy", | ||
| date=("2025-07-29", "2025-07-30"), | ||
| license="cc-by-sa-4.0", | ||
| annotations_creators="derived", | ||
| dialect=[], | ||
| sample_creation="machine-translated and LM verified", | ||
| domains=["Reviews", "Written"], | ||
| task_subtypes=["Sentiment/Hate speech"], | ||
| bibtex_citation=r""" | ||
| @misc{pham2025vnmtebvietnamesemassivetext, | ||
| archiveprefix = {arXiv}, | ||
| author = {Loc Pham and Tung Luu and Thu Vo and Minh Nguyen and Viet Hoang}, | ||
| eprint = {2507.21500}, | ||
| primaryclass = {cs.CL}, | ||
| title = {VN-MTEB: Vietnamese Massive Text Embedding Benchmark}, | ||
| url = {https://arxiv.org/abs/2507.21500}, | ||
| year = {2025}, | ||
| } | ||
| """, | ||
| adapted_from=["AmazonPolarityClassification"], | ||
| ) |
44 changes: 44 additions & 0 deletions
44
mteb/tasks/Classification/vie/AmazonReviewsVNClassification.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,44 @@ | ||
| from __future__ import annotations | ||
|
|
||
| from mteb.abstasks.AbsTaskClassification import AbsTaskClassification | ||
| from mteb.abstasks.TaskMetadata import TaskMetadata | ||
|
|
||
|
|
||
| class AmazonReviewsVNClassification(AbsTaskClassification): | ||
| metadata = TaskMetadata( | ||
| name="AmazonReviewsVNClassification", | ||
| dataset={ | ||
| "path": "GreenNode/amazon-reviews-multi-vn", | ||
| "revision": "27da94deb6d4f44af789a3d70750fa506b79f189", | ||
| }, | ||
| description="""A collection of translated Amazon reviews specifically designed to aid research in multilingual text classification. | ||
| The process of creating the VN-MTEB (Vietnamese Massive Text Embedding Benchmark) from English samples involves a new automated system: | ||
| - The system uses large language models (LLMs), specifically Coherence's Aya model, for translation. | ||
| - Applies advanced embedding models to filter the translations. | ||
| - Use LLM-as-a-judge to scoring the quality of the samples base on multiple criteria.""", | ||
| reference="https://arxiv.org/abs/2010.02573", | ||
| category="s2s", | ||
| type="Classification", | ||
| eval_splits=["test"], | ||
| eval_langs=["vie-Latn"], | ||
| main_score="accuracy", | ||
| date=("2025-07-29", "2025-07-30"), | ||
| license="cc-by-sa-4.0", | ||
| annotations_creators="derived", | ||
| dialect=[], | ||
| sample_creation="machine-translated and LM verified", | ||
| domains=["Reviews", "Written"], | ||
| task_subtypes=["Emotion classification"], | ||
| bibtex_citation=r""" | ||
| @misc{pham2025vnmtebvietnamesemassivetext, | ||
| archiveprefix = {arXiv}, | ||
| author = {Loc Pham and Tung Luu and Thu Vo and Minh Nguyen and Viet Hoang}, | ||
| eprint = {2507.21500}, | ||
| primaryclass = {cs.CL}, | ||
| title = {VN-MTEB: Vietnamese Massive Text Embedding Benchmark}, | ||
| url = {https://arxiv.org/abs/2507.21500}, | ||
| year = {2025}, | ||
| } | ||
| """, | ||
| adapted_from=["AmazonReviewsClassification"], | ||
| ) |
44 changes: 44 additions & 0 deletions
44
mteb/tasks/Classification/vie/Banking77VNClassification.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,44 @@ | ||
| from __future__ import annotations | ||
|
|
||
| from mteb.abstasks.AbsTaskClassification import AbsTaskClassification | ||
| from mteb.abstasks.TaskMetadata import TaskMetadata | ||
|
|
||
|
|
||
| class Banking77VNClassification(AbsTaskClassification): | ||
| metadata = TaskMetadata( | ||
| name="Banking77VNClassification", | ||
| description="""A translated dataset composed of online banking queries annotated with their corresponding intents. | ||
| The process of creating the VN-MTEB (Vietnamese Massive Text Embedding Benchmark) from English samples involves a new automated system: | ||
| - The system uses large language models (LLMs), specifically Coherence's Aya model, for translation. | ||
| - Applies advanced embedding models to filter the translations. | ||
| - Use LLM-as-a-judge to scoring the quality of the samples base on multiple criteria.""", | ||
| reference="https://arxiv.org/abs/2003.04807", | ||
| dataset={ | ||
| "path": "GreenNode/banking77-vn", | ||
| "revision": "42541b07c25a49604be129fba6d70b752be229c1", | ||
| }, | ||
| type="Classification", | ||
| category="s2s", | ||
| eval_splits=["test"], | ||
| eval_langs=["vie-Latn"], | ||
| main_score="accuracy", | ||
| date=("2025-07-29", "2025-07-30"), | ||
| license="cc-by-sa-4.0", | ||
| annotations_creators="derived", | ||
| dialect=[], | ||
| sample_creation="machine-translated and LM verified", | ||
| domains=["Written"], | ||
| task_subtypes=[], | ||
| bibtex_citation=r""" | ||
| @misc{pham2025vnmtebvietnamesemassivetext, | ||
| archiveprefix = {arXiv}, | ||
| author = {Loc Pham and Tung Luu and Thu Vo and Minh Nguyen and Viet Hoang}, | ||
| eprint = {2507.21500}, | ||
| primaryclass = {cs.CL}, | ||
| title = {VN-MTEB: Vietnamese Massive Text Embedding Benchmark}, | ||
| url = {https://arxiv.org/abs/2507.21500}, | ||
| year = {2025}, | ||
| } | ||
| """, | ||
| adapted_from=["Banking77Classification"], | ||
| ) |
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,46 @@ | ||
| from __future__ import annotations | ||
|
|
||
| from mteb.abstasks.AbsTaskClassification import AbsTaskClassification | ||
| from mteb.abstasks.TaskMetadata import TaskMetadata | ||
|
|
||
|
|
||
| class EmotionVNClassification(AbsTaskClassification): | ||
| num_samples = 16 | ||
|
|
||
| metadata = TaskMetadata( | ||
| name="EmotionVNClassification", | ||
| description="""Emotion is a translated dataset of Vietnamese from English Twitter messages with six basic emotions: anger, fear, joy, love, sadness, and surprise. | ||
| The process of creating the VN-MTEB (Vietnamese Massive Text Embedding Benchmark) from English samples involves a new automated system: | ||
| - The system uses large language models (LLMs), specifically Coherence's Aya model, for translation. | ||
| - Applies advanced embedding models to filter the translations. | ||
| - Use LLM-as-a-judge to scoring the quality of the samples base on multiple criteria.""", | ||
| reference="https://www.aclweb.org/anthology/D18-1404", | ||
| dataset={ | ||
| "path": "GreenNode/emotion-vn", | ||
| "revision": "797a93c0dd755ebf5818fbf54d0e0a024df9216d", | ||
| }, | ||
| type="Classification", | ||
| category="s2s", | ||
| eval_splits=["validation", "test"], | ||
| eval_langs=["vie-Latn"], | ||
| main_score="accuracy", | ||
| date=("2025-07-29", "2025-07-30"), | ||
| license="cc-by-sa-4.0", | ||
| annotations_creators="derived", | ||
| dialect=[], | ||
| sample_creation="machine-translated and LM verified", | ||
| domains=["Social", "Written"], | ||
| task_subtypes=["Sentiment/Hate speech"], | ||
| bibtex_citation=r""" | ||
| @misc{pham2025vnmtebvietnamesemassivetext, | ||
| archiveprefix = {arXiv}, | ||
| author = {Loc Pham and Tung Luu and Thu Vo and Minh Nguyen and Viet Hoang}, | ||
| eprint = {2507.21500}, | ||
| primaryclass = {cs.CL}, | ||
| title = {VN-MTEB: Vietnamese Massive Text Embedding Benchmark}, | ||
| url = {https://arxiv.org/abs/2507.21500}, | ||
| year = {2025}, | ||
| } | ||
| """, | ||
| adapted_from=["EmotionClassification"], | ||
| ) |
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,44 @@ | ||
| from __future__ import annotations | ||
|
|
||
| from mteb.abstasks.AbsTaskClassification import AbsTaskClassification | ||
| from mteb.abstasks.TaskMetadata import TaskMetadata | ||
|
|
||
|
|
||
| class ImdbVNClassification(AbsTaskClassification): | ||
| metadata = TaskMetadata( | ||
| name="ImdbVNClassification", | ||
| description="""A translated dataset of large movie reviews annotated for sentiment classification. | ||
| The process of creating the VN-MTEB (Vietnamese Massive Text Embedding Benchmark) from English samples involves a new automated system: | ||
| - The system uses large language models (LLMs), specifically Coherence's Aya model, for translation. | ||
| - Applies advanced embedding models to filter the translations. | ||
| - Use LLM-as-a-judge to scoring the quality of the samples base on multiple criteria.""", | ||
| dataset={ | ||
| "path": "GreenNode/imdb-vn", | ||
| "revision": "0dccb383ee26c90c99d03c8674cf40de642f099a", | ||
| }, | ||
| reference="http://www.aclweb.org/anthology/P11-1015", | ||
| type="Classification", | ||
| category="p2p", | ||
| eval_splits=["test"], | ||
| eval_langs=["vie-Latn"], | ||
| main_score="accuracy", | ||
| date=("2025-07-29", "2025-07-30"), | ||
| license="cc-by-sa-4.0", | ||
| annotations_creators="derived", | ||
| dialect=[], | ||
| sample_creation="machine-translated and LM verified", | ||
| domains=["Reviews", "Written"], | ||
| task_subtypes=["Sentiment/Hate speech"], | ||
| bibtex_citation=r""" | ||
| @misc{pham2025vnmtebvietnamesemassivetext, | ||
| archiveprefix = {arXiv}, | ||
| author = {Loc Pham and Tung Luu and Thu Vo and Minh Nguyen and Viet Hoang}, | ||
| eprint = {2507.21500}, | ||
| primaryclass = {cs.CL}, | ||
| title = {VN-MTEB: Vietnamese Massive Text Embedding Benchmark}, | ||
| url = {https://arxiv.org/abs/2507.21500}, | ||
| year = {2025}, | ||
| } | ||
| """, | ||
| adapted_from=["ImdbClassification"], | ||
| ) |
44 changes: 44 additions & 0 deletions
44
mteb/tasks/Classification/vie/MTOPDomainVNClassification.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,44 @@ | ||
| from __future__ import annotations | ||
|
|
||
| from mteb.abstasks.AbsTaskClassification import AbsTaskClassification | ||
| from mteb.abstasks.TaskMetadata import TaskMetadata | ||
|
|
||
|
|
||
| class MTOPDomainVNClassification(AbsTaskClassification): | ||
| metadata = TaskMetadata( | ||
| name="MTOPDomainVNClassification", | ||
| dataset={ | ||
| "path": "GreenNode/mtop-domain-vn", | ||
| "revision": "6e1ec8c54c018151c77472d94b1c0765230cf6ca", | ||
| }, | ||
| description="""A translated dataset from MTOP: Multilingual Task-Oriented Semantic Parsing | ||
| The process of creating the VN-MTEB (Vietnamese Massive Text Embedding Benchmark) from English samples involves a new automated system: | ||
| - The system uses large language models (LLMs), specifically Coherence's Aya model, for translation. | ||
| - Applies advanced embedding models to filter the translations. | ||
| - Use LLM-as-a-judge to scoring the quality of the samples base on multiple criteria.""", | ||
| reference="https://arxiv.org/pdf/2008.09335.pdf", | ||
| category="s2s", | ||
| type="Classification", | ||
| eval_splits=["test"], | ||
| eval_langs=["vie-Latn"], | ||
| main_score="accuracy", | ||
| date=("2025-07-29", "2025-07-30"), | ||
| license="cc-by-sa-4.0", | ||
| annotations_creators="derived", | ||
| dialect=[], | ||
| sample_creation="machine-translated and LM verified", | ||
| domains=["Spoken", "Spoken"], | ||
| task_subtypes=[], | ||
| bibtex_citation=r""" | ||
| @misc{pham2025vnmtebvietnamesemassivetext, | ||
| archiveprefix = {arXiv}, | ||
| author = {Loc Pham and Tung Luu and Thu Vo and Minh Nguyen and Viet Hoang}, | ||
| eprint = {2507.21500}, | ||
| primaryclass = {cs.CL}, | ||
| title = {VN-MTEB: Vietnamese Massive Text Embedding Benchmark}, | ||
| url = {https://arxiv.org/abs/2507.21500}, | ||
| year = {2025}, | ||
| } | ||
| """, | ||
| adapted_from=["MTOPDomainClassification"], | ||
| ) |
44 changes: 44 additions & 0 deletions
44
mteb/tasks/Classification/vie/MTOPIntentVNClassification.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,44 @@ | ||
| from __future__ import annotations | ||
|
|
||
| from mteb.abstasks.AbsTaskClassification import AbsTaskClassification | ||
| from mteb.abstasks.TaskMetadata import TaskMetadata | ||
|
|
||
|
|
||
| class MTOPIntentVNClassification(AbsTaskClassification): | ||
| metadata = TaskMetadata( | ||
| name="MTOPIntentVNClassification", | ||
| dataset={ | ||
| "path": "GreenNode/mtop-intent-vn", | ||
| "revision": "c4e81a5c9a813a0142d905e261e5a446cc6fbc4a", | ||
| }, | ||
| description="""A translated dataset from MTOP: Multilingual Task-Oriented Semantic Parsing | ||
| The process of creating the VN-MTEB (Vietnamese Massive Text Embedding Benchmark) from English samples involves a new automated system: | ||
| - The system uses large language models (LLMs), specifically Coherence's Aya model, for translation. | ||
| - Applies advanced embedding models to filter the translations. | ||
| - Use LLM-as-a-judge to scoring the quality of the samples base on multiple criteria.""", | ||
| reference="https://arxiv.org/pdf/2008.09335.pdf", | ||
| category="s2s", | ||
| type="Classification", | ||
| eval_splits=["test"], | ||
| eval_langs=["vie-Latn"], | ||
| main_score="accuracy", | ||
| date=("2025-07-29", "2025-07-30"), | ||
| license="cc-by-sa-4.0", | ||
| annotations_creators="derived", | ||
| dialect=[], | ||
| sample_creation="machine-translated and LM verified", | ||
| domains=["Spoken", "Spoken"], | ||
| task_subtypes=[], | ||
| bibtex_citation=r""" | ||
| @misc{pham2025vnmtebvietnamesemassivetext, | ||
| archiveprefix = {arXiv}, | ||
| author = {Loc Pham and Tung Luu and Thu Vo and Minh Nguyen and Viet Hoang}, | ||
| eprint = {2507.21500}, | ||
| primaryclass = {cs.CL}, | ||
| title = {VN-MTEB: Vietnamese Massive Text Embedding Benchmark}, | ||
| url = {https://arxiv.org/abs/2507.21500}, | ||
| year = {2025}, | ||
| } | ||
| """, | ||
| adapted_from=["MTOPIntentClassification"], | ||
| ) |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.