Skip to content

Commit

Permalink
make lint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Omar Elshehy authored and Omar Elshehy committed Dec 9, 2024
1 parent df3d18d commit 6ebbcf2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mteb/tasks/Reranking/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

from .ara.NamaaMrTydiReranking import *
from .eng.AskUbuntuDupQuestions import *
from .eng.MindSmallReranking import *
from .eng.SciDocsReranking import *
Expand All @@ -13,4 +14,3 @@
from .multilingual.WikipediaRerankingMultilingual import *
from .rus.RuBQReranking import *
from .zho.CMTEBReranking import *
from .ara.NamaaMrTydiReranking import *
9 changes: 6 additions & 3 deletions mteb/tasks/Reranking/ara/NamaaMrTydiReranking.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
from __future__ import annotations

import datasets

from mteb.abstasks.TaskMetadata import TaskMetadata

from ....abstasks.AbsTaskReranking import AbsTaskReranking

import datasets

class NamaaMrTydiReranking(AbsTaskReranking):
metadata = TaskMetadata(
Expand Down Expand Up @@ -42,12 +45,12 @@ def load_data(self, **kwargs):

self.dataset = self.dataset.map(
lambda x: {
"query" : x["query"],
"query": x["query"],
"positive": [x["positive"]],
"negative": x["negative"],
}
)
self.dataset = datasets.DatasetDict({"test": self.dataset})
self.dataset_transform()

self.data_loaded = True
self.data_loaded = True

0 comments on commit 6ebbcf2

Please sign in to comment.