nltk.test.unit.lm.test_models module

nltk.test.unit.lm.test_models.vocabulary()[source]
nltk.test.unit.lm.test_models.training_data()[source]
nltk.test.unit.lm.test_models.bigram_training_data(training_data)[source]
nltk.test.unit.lm.test_models.trigram_training_data(training_data)[source]
nltk.test.unit.lm.test_models.mle_bigram_model(vocabulary, bigram_training_data)[source]
nltk.test.unit.lm.test_models.test_mle_bigram_scores(mle_bigram_model, word, context, expected_score)[source]
nltk.test.unit.lm.test_models.test_mle_bigram_logscore_for_zero_score(mle_bigram_model)[source]
nltk.test.unit.lm.test_models.test_mle_bigram_entropy_perplexity_seen(mle_bigram_model)[source]
nltk.test.unit.lm.test_models.test_mle_bigram_entropy_perplexity_unseen(mle_bigram_model)[source]
nltk.test.unit.lm.test_models.test_mle_bigram_entropy_perplexity_unigrams(mle_bigram_model)[source]
nltk.test.unit.lm.test_models.mle_trigram_model(trigram_training_data, vocabulary)[source]
nltk.test.unit.lm.test_models.test_mle_trigram_scores(mle_trigram_model, word, context, expected_score)[source]
nltk.test.unit.lm.test_models.lidstone_bigram_model(bigram_training_data, vocabulary)[source]
nltk.test.unit.lm.test_models.test_lidstone_bigram_score(lidstone_bigram_model, word, context, expected_score)[source]
nltk.test.unit.lm.test_models.test_lidstone_entropy_perplexity(lidstone_bigram_model)[source]
nltk.test.unit.lm.test_models.lidstone_trigram_model(trigram_training_data, vocabulary)[source]
nltk.test.unit.lm.test_models.test_lidstone_trigram_score(lidstone_trigram_model, word, context, expected_score)[source]
nltk.test.unit.lm.test_models.laplace_bigram_model(bigram_training_data, vocabulary)[source]
nltk.test.unit.lm.test_models.test_laplace_bigram_score(laplace_bigram_model, word, context, expected_score)[source]
nltk.test.unit.lm.test_models.test_laplace_bigram_entropy_perplexity(laplace_bigram_model)[source]
nltk.test.unit.lm.test_models.test_laplace_gamma(laplace_bigram_model)[source]
nltk.test.unit.lm.test_models.wittenbell_trigram_model(trigram_training_data, vocabulary)[source]
nltk.test.unit.lm.test_models.test_wittenbell_trigram_score(wittenbell_trigram_model, word, context, expected_score)[source]
nltk.test.unit.lm.test_models.kneserney_trigram_model(trigram_training_data, vocabulary)[source]
nltk.test.unit.lm.test_models.test_kneserney_trigram_score(kneserney_trigram_model, word, context, expected_score)[source]
nltk.test.unit.lm.test_models.absolute_discounting_trigram_model(trigram_training_data, vocabulary)[source]
nltk.test.unit.lm.test_models.test_absolute_discounting_trigram_score(absolute_discounting_trigram_model, word, context, expected_score)[source]
nltk.test.unit.lm.test_models.stupid_backoff_trigram_model(trigram_training_data, vocabulary)[source]
nltk.test.unit.lm.test_models.test_stupid_backoff_trigram_score(stupid_backoff_trigram_model, word, context, expected_score)[source]
nltk.test.unit.lm.test_models.kneserney_bigram_model(bigram_training_data, vocabulary)[source]
nltk.test.unit.lm.test_models.test_sums_to_1(model_fixture, context, request)[source]
nltk.test.unit.lm.test_models.test_generate_one_no_context(mle_trigram_model)[source]
nltk.test.unit.lm.test_models.test_generate_one_from_limiting_context(mle_trigram_model)[source]
nltk.test.unit.lm.test_models.test_generate_one_from_varied_context(mle_trigram_model)[source]
nltk.test.unit.lm.test_models.test_generate_cycle(mle_trigram_model)[source]
nltk.test.unit.lm.test_models.test_generate_with_text_seed(mle_trigram_model)[source]
nltk.test.unit.lm.test_models.test_generate_oov_text_seed(mle_trigram_model)[source]
nltk.test.unit.lm.test_models.test_generate_None_text_seed(mle_trigram_model)[source]