nltk.classify.ConditionalExponentialClassifier.__init__¶
-
ConditionalExponentialClassifier.
__init__
(encoding, weights, logarithmic=True)¶ Construct a new maxent classifier model. Typically, new classifier models are created using the
train()
method.Parameters: - encoding (MaxentFeatureEncodingI) – An encoding that is used to convert the
featuresets that are given to the
classify
method into joint-feature vectors, which are used by the maxent classifier model. - weights (list of float) – The feature weight vector for this classifier.
- logarithmic (bool) – If false, then use non-logarithmic weights.
- encoding (MaxentFeatureEncodingI) – An encoding that is used to convert the
featuresets that are given to the