Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
markus583 committed Jun 16, 2024
1 parent c995b70 commit 1add5b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wtpsplit/evaluation/llm_sentence.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ def align_llm_output(row):
)
# same as aligned_in, aligned_llm, but with additional formatting. Latter used to debug only.
formatted_alignment = alignment._format_alignment(aligned_in, aligned_llm).split("\n")
except:
except: # ruff: ignore=E722

Check failure on line 428 in wtpsplit/evaluation/llm_sentence.py

View workflow job for this annotation

GitHub Actions / build (3.8)

Ruff (E722)

wtpsplit/evaluation/llm_sentence.py:428:5: E722 Do not use bare `except`

Check failure on line 428 in wtpsplit/evaluation/llm_sentence.py

View workflow job for this annotation

GitHub Actions / build (3.9)

Ruff (E722)

wtpsplit/evaluation/llm_sentence.py:428:5: E722 Do not use bare `except`

Check failure on line 428 in wtpsplit/evaluation/llm_sentence.py

View workflow job for this annotation

GitHub Actions / build (3.11)

Ruff (E722)

wtpsplit/evaluation/llm_sentence.py:428:5: E722 Do not use bare `except`
print("Alignment failed: ", row.name)
formatted_alignment = [row["test_chunks"], "", " " * len(row["test_chunks"])]
return pd.Series(
Expand Down
2 changes: 1 addition & 1 deletion wtpsplit/train/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
)
from wtpsplit.train.evaluate import evaluate_sentence
from wtpsplit.train.trainer import Trainer
from wtpsplit.train.utils import Model, cleanup_cache_files
from wtpsplit.train.utils import Model
# from wtpsplit.train.utils import cleanup_cache_files
from wtpsplit.utils import Constants, LabelArgs, corrupt_training, get_label_dict, get_subword_label_dict

Expand Down

0 comments on commit 1add5b5

Please sign in to comment.