'Construct a new maxent classifier model.  Typically, new
classifier models are created using the ``train()`` method.
:type encoding: MaxentFeatureEncodingI
:param encoding: 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.
:type weights: list of float
:param weights:  The feature weight vector for this classifier.
:type logarithmic: bool
:param logarithmic: If false, then use non-logarithmic weights.'

def __init__(self, encoding, weights, logarithmic=True):

    self._encoding = encoding
    self._weights = weights
    self._logarithmic = logarithmic
    assert (encoding.length() == len(weights))
