Skip to content

Commit

Permalink
delete sacrebleu extra dependency for Korean and Japanese (#554)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eastsidegunn authored Jul 4, 2024
1 parent 3dc8672 commit 70e432f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ pyyaml # for yaml file
pyarrow # for pandas with parquet
fastparquet # for pandas with parquet
sacrebleu # for bleu score
sacrebleu[ko] # for bleu score Korean
sacrebleu[jp] # for bleu score Japanese
evaluate # for meteor and other scores
rouge_score # for rouge score
rich # for pretty logging
Expand Down
1 change: 0 additions & 1 deletion tests/autorag/evaluate/metric/test_generation_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ def ko_base_test_generation_metrics(func, solution, **kwargs):

def test_bleu():
base_test_generation_metrics(bleu, [51.1507, 23.5783, 100.0], lowercase=True)
ko_base_test_generation_metrics(bleu, [100.0, 81.9178, 73.7534], lowercase=True, tokenize='ko-mecab', max_ngram_order=2, trg_lang='ko')


def test_meteor():
Expand Down

0 comments on commit 70e432f

Please sign in to comment.