FEA-Bench / testbed /embeddings-benchmark__mteb /mteb /tasks /Classification /eng /AmazonPolarityClassification.py
| from __future__ import annotations | |
| from mteb.abstasks.TaskMetadata import TaskMetadata | |
| from ....abstasks import AbsTaskClassification | |
| class AmazonPolarityClassification(AbsTaskClassification): | |
| metadata = TaskMetadata( | |
| name="AmazonPolarityClassification", | |
| description="Amazon Polarity Classification Dataset.", | |
| reference="https://huggingface.co/datasets/amazon_polarity", | |
| dataset={ | |
| "path": "mteb/amazon_polarity", | |
| "revision": "e2d317d38cd51312af73b3d32a06d1a08b442046", | |
| }, | |
| type="Classification", | |
| category="s2s", | |
| eval_splits=["test"], | |
| eval_langs=["eng-Latn"], | |
| main_score="accuracy", | |
| date=( | |
| "2012-01-01", | |
| "2015-12-31", | |
| ), # Estimated range for the collection of reviews | |
| form=["written"], | |
| domains=["Reviews"], | |
| task_subtypes=["Sentiment/Hate speech"], | |
| license="Not specified", | |
| socioeconomic_status="mixed", | |
| annotations_creators="derived", | |
| dialect=[], | |
| text_creation="found", | |
| bibtex_citation="""@article{McAuley2013HiddenFA, | |
| title={Hidden factors and hidden topics: understanding rating dimensions with review text}, | |
| author={Julian McAuley and Jure Leskovec}, | |
| journal={Proceedings of the 7th ACM conference on Recommender systems}, | |
| year={2013}, | |
| url={https://api.semanticscholar.org/CorpusID:6440341} | |
| }""", | |
| n_samples={"test": 400000}, | |
| avg_character_length={"test": 431.4}, | |
| ) | |