nltk.test.unit.align package
Submodules
nltk.test.unit.align.test_ibm1 module
Tests for IBM Model 1 training methods
-
class
nltk.test.unit.align.test_ibm1.
TestIBMModel1
(methodName='runTest')[source]
Bases: unittest.case.TestCase
-
test_prob_t_a_given_s
()[source]
nltk.test.unit.align.test_ibm2 module
Tests for IBM Model 2 training methods
-
class
nltk.test.unit.align.test_ibm2.
TestIBMModel2
(methodName='runTest')[source]
Bases: unittest.case.TestCase
-
test_prob_t_a_given_s
()[source]
nltk.test.unit.align.test_ibm4 module
Tests for IBM Model 4 training methods
-
class
nltk.test.unit.align.test_ibm4.
TestIBMModel4
(methodName='runTest')[source]
Bases: unittest.case.TestCase
-
test_prob_t_a_given_s
()[source]
-
test_set_uniform_distortion_probabilities_of_max_displacements
()[source]
-
test_set_uniform_distortion_probabilities_of_non_domain_values
()[source]
nltk.test.unit.align.test_ibm5 module
Tests for IBM Model 5 training methods
-
class
nltk.test.unit.align.test_ibm5.
TestIBMModel5
(methodName='runTest')[source]
Bases: unittest.case.TestCase
-
test_prob_t_a_given_s
()[source]
-
test_prune
()[source]
-
test_set_uniform_distortion_probabilities_of_max_displacements
()[source]
-
test_set_uniform_distortion_probabilities_of_non_domain_values
()[source]
nltk.test.unit.align.test_ibm_model module
Tests for common methods of IBM translation models
-
class
nltk.test.unit.align.test_ibm_model.
TestIBMModel
(methodName='runTest')[source]
Bases: unittest.case.TestCase
-
test_best_model2_alignment
()[source]
-
test_best_model2_alignment_does_not_change_pegged_alignment
()[source]
-
test_best_model2_alignment_handles_empty_src_sentence
()[source]
-
test_best_model2_alignment_handles_empty_trg_sentence
()[source]
-
test_best_model2_alignment_handles_fertile_words
()[source]
-
test_hillclimb
()[source]
-
test_neighboring_finds_neighbor_alignments
()[source]
-
test_neighboring_returns_neighbors_with_pegged_alignment
()[source]
-
test_neighboring_sets_neighbor_alignment_info
()[source]
-
test_sample
()[source]
-
test_vocabularies_are_initialized
()[source]
-
test_vocabularies_are_initialized_even_with_empty_corpora
()[source]
Module contents