[marian] converter supports models from new Tatoeba project (#6342)

This commit is contained in:
Sam Shleifer
2020-08-17 23:55:42 -04:00
committed by GitHub
parent fb7330b30e
commit 12d7624199
3 changed files with 202 additions and 36 deletions

View File

@@ -205,6 +205,17 @@ class TestMarian_MT_EN(MarianIntegrationTest):
self._assert_generated_batch_equal_expected()
class TestMarian_eng_zho(MarianIntegrationTest):
src = "eng"
tgt = "zho"
src_text = ["My name is Wolfgang and I live in Berlin"]
expected_text = ["我叫沃尔夫冈 我住在柏林"]
@slow
def test_batch_generation_eng_zho(self):
self._assert_generated_batch_equal_expected()
class TestMarian_en_ROMANCE(MarianIntegrationTest):
"""Multilingual on target side."""