nltk.WekaClassifier

class nltk.WekaClassifier(formatter, model_filename)[source]

Methods

__init__(formatter, model_filename)
classify(featureset)
return:the most appropriate label for the given featureset.
classify_many(featuresets)
labels()
return:the list of category labels used by this classifier.
parse_weka_distribution(s)
parse_weka_output(lines)
prob_classify(featureset)
return:a probability distribution over labels for the given
prob_classify_many(featuresets)
train(model_filename, featuresets[, ...])