Skip to content

Commit 852dd2f

Browse files
committed
Use is_empty
1 parent 93ee876 commit 852dd2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

silnlp/common/compare_translations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def compare_translations(project1: Path, project2: Path, scorers: Set[str], scor
4848
b_lines = []
4949
with parallel_corpus.get_rows() as rows:
5050
for row in rows:
51-
if not score_empty and (len(row.source_text.strip()) == 0 or len(row.target_text.strip()) == 0):
51+
if not score_empty and row.is_empty:
5252
continue
5353
a_lines.append(row.source_text)
5454
b_lines.append(row.target_text)

0 commit comments

Comments
 (0)