From f87dd2084069fd037b9e838de4cb5b52b1f493ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Silva?= Date: Thu, 24 Aug 2017 18:37:37 -0300 Subject: [PATCH] Fix typo on naivebayes.py documentation - P(featues) -> P(features) --- nltk/classify/naivebayes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nltk/classify/naivebayes.py b/nltk/classify/naivebayes.py index 22f0861bd3..b547a7a8b1 100644 --- a/nltk/classify/naivebayes.py +++ b/nltk/classify/naivebayes.py @@ -21,7 +21,7 @@ | P(label|features) = -------------------------------------------- | P(features) -Rather than computing P(featues) explicitly, the algorithm just +Rather than computing P(features) explicitly, the algorithm just calculates the numerator for each label, and normalizes them so they sum to one: