nltk.test.unit.translate.test_ibm_model module

Tests for common methods of IBM translation models

class nltk.test.unit.translate.test_ibm_model.TestIBMModel[source]

Bases: unittest.case.TestCase

test_vocabularies_are_initialized()[source]
test_vocabularies_are_initialized_even_with_empty_corpora()[source]
test_best_model2_alignment()[source]
test_best_model2_alignment_does_not_change_pegged_alignment()[source]
test_best_model2_alignment_handles_fertile_words()[source]
test_best_model2_alignment_handles_empty_src_sentence()[source]
test_best_model2_alignment_handles_empty_trg_sentence()[source]
test_neighboring_finds_neighbor_alignments()[source]
test_neighboring_sets_neighbor_alignment_info()[source]
test_neighboring_returns_neighbors_with_pegged_alignment()[source]
test_hillclimb()[source]
test_sample()[source]