nltk.classify.PositiveNaiveBayesClassifier.train

static PositiveNaiveBayesClassifier.train(positive_featuresets, unlabeled_featuresets, positive_prob_prior=0.5, estimator=<class 'nltk.probability.ELEProbDist'>)[source]
Parameters:
  • positive_featuresets – A list of featuresets that are known as positive examples (i.e., their label is True).
  • unlabeled_featuresets – A list of featuresets whose label is unknown.
  • positive_prob_prior – A prior estimate of the probability of the label True (default 0.5).