title: Define and Use new smoothing method in nltk language models
body: <p>I'm trying to provide and test new smoothing method for language models. I'm using nltk tools and don't want to redefine everything from scratch. So is there any way to define and use my own smoothing method in nltk models?</p>
  
  <p>Edit:
  I'm trying to do something like this :</p>
  
  <pre class="lang-py prettyprint-override"><code>def my_smoothing_method(model) :
      # some code using model (MLE) count
  
  model = nltk.lm.MLE(n, smoothing_method=my_smoothing_method)
  model.fit(train)
  </code></pre>