()
| 551 | |
| 552 | |
| 553 | def test_num_hypotheses(): |
| 554 | translator = _get_transliterator() |
| 555 | output = translator.translate_batch( |
| 556 | [["آ", "ت", "ز", "م", "و", "ن"]], beam_size=4, num_hypotheses=2 |
| 557 | ) |
| 558 | assert len(output[0].hypotheses) == 2 |
| 559 | |
| 560 | |
| 561 | def test_max_decoding_length(): |
nothing calls this directly
no test coverage detected