We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93ee876 commit 852dd2fCopy full SHA for 852dd2f
silnlp/common/compare_translations.py
@@ -48,7 +48,7 @@ def compare_translations(project1: Path, project2: Path, scorers: Set[str], scor
48
b_lines = []
49
with parallel_corpus.get_rows() as rows:
50
for row in rows:
51
- if not score_empty and (len(row.source_text.strip()) == 0 or len(row.target_text.strip()) == 0):
+ if not score_empty and row.is_empty:
52
continue
53
a_lines.append(row.source_text)
54
b_lines.append(row.target_text)
0 commit comments