nltk/nltk

How to stabilize NaiveBayesClassifier outputs?

Open

#2097 opened on Aug 28, 2018

View on GitHub
 (7 comments) (0 reactions) (0 assignees)Python (12,712 stars) (2,826 forks)batch import
good first issuetaggertests

Description

On sometimes we see that the continuous integration test fails because of some non-deterministic results from the NgramTagger i.e. are NaiveBayesClassifer, e.g. https://nltk.ci.cloudbees.com/job/pull_request_tests/822/PYV=3.6.4,jdk=jdk8latestOnlineInstall/testReport/junit/(root)/nltk/tag/

Is there someway to set a random seed or something such that classifier's output is consistent and make sure that the model is easily replicable?

Contributor guide