Skip to content

Commit

Permalink
Merge branch 'dev' into minhtrung23fix-pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
martinakaduc authored Sep 10, 2024
2 parents ecc972a + cdb6ae0 commit 40b4564
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/melt/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
)
logger = logging.getLogger("nlp_utils")


def download_nltk_resources() -> NoReturn:
"""Download the necessary NLTK resources.
Expand Down
5 changes: 4 additions & 1 deletion src/melt/tools/pipelines/metric_pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ def __init__(self):
"question-answering": [QAMetric, BiasMetric, ToxicityMetric],
"summarization": [SummaryMetric, BiasMetric, ToxicityMetric],
"translation": [TranslationMetric, BiasMetric, ToxicityMetric],
"knowledge-mtpchoice": [QAMetric, BiasMetric, ToxicityMetric],
"knowledge-mtpchoice": [
TextClassificationMetric,
CalibrationMetric,
],
"knowledge-openended": [QAMetric, BiasMetric, ToxicityMetric],
"toxicity-detection": [
TextClassificationMetric,
Expand Down
1 change: 1 addition & 0 deletions tests/test_execution.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import subprocess
import unittest


class TestTasks(unittest.TestCase):
"""
Unit tests for various tasks using the melt command-line tool.
Expand Down
4 changes: 3 additions & 1 deletion tests/test_wrapper.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import subprocess
import unittest


class TestWrapper(unittest.TestCase):
"""
Unit tests for various wrappers used with the melt command-line tool.
Expand Down Expand Up @@ -79,5 +80,6 @@ def test_wrapper_vllm(self):
"""Test vllm wrapper."""
self.run_melt_command("zalo_e2eqa", "vllm")

if __name__ == '__main__':

if __name__ == "__main__":
unittest.main()

0 comments on commit 40b4564

Please sign in to comment.