Skip to content

Commit d789f66

Browse files
isaac091Enkidu93
authored andcommitted
Add test for no translation/alignment score
1 parent 31e17c6 commit d789f66

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/corpora/test_aligned_word_pair.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ def test_parse():
1010
assert len(wps) == 1
1111
assert wps[0].translation_score == 0.111111
1212
assert wps[0].alignment_score == -1
13+
wps = list(AlignedWordPair.from_string("1-0"))
14+
assert len(wps) == 1
15+
assert wps[0].translation_score == -1
16+
assert wps[0].alignment_score == -1
1317

1418

1519
def test_parse_to_string():

0 commit comments

Comments
 (0)