Skip to content

Commit

Permalink
Rename TextClassification
Browse files Browse the repository at this point in the history
  • Loading branch information
Rita Kurban authored and Rita Kurban committed Dec 27, 2024
1 parent cf878b9 commit 362ac74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/eva/language/data/datasets/classification/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from eva.language.data.datasets.language import LanguageDataset

class LanguageClassification(LanguageDataset[Tuple[str, torch.Tensor]], abc.ABC):
class TextClassification(LanguageDataset[Tuple[str, torch.Tensor]], abc.ABC):
"""Text classification abstract dataset."""

def __init__(self) -> None:
Expand Down
2 changes: 1 addition & 1 deletion src/eva/language/data/datasets/classification/pubmedqa.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from eva.language.data.datasets.classification import base


class PubMedQA(base.LanguageClassification):
class PubMedQA(base.TextClassification):
"""Dataset class for PubMedQA question answering task."""

_license: str = "MIT License (https://github.com/pubmedqa/pubmedqa/blob/master/LICENSE)"
Expand Down

0 comments on commit 362ac74

Please sign in to comment.