class_docstr: An abstract class that wraps around the nltk.classify module.
  
  Expects that descendant classes include a class variable ``nltk_class``
  which is the class in the nltk.classify module to be wrapped.
  
  Example: ::
  
      class MyClassifier(NLTKClassifier):
          nltk_class = nltk.classify.svm.SvmClassifier
class_docstr_tok: ["An","abstract","class","that","wraps","around","the","nltk.classify","module",".","Expects","that","descendant","classes","include","a","class","variable","``","nltk_class","``","which","is","the","class","in","the","nltk.classify","module","to","be","wrapped",".","Example",":",":",":","class","MyClassifier","(","NLTKClassifier",")",":","nltk_class","=","nltk.classify.svm.SvmClassifier"]
docstr: Train the classifier with a labeled feature set and return
  the classifier. Takes the same arguments as the wrapped NLTK class.
  This method is implicitly called when calling ``classify`` or
  ``accuracy`` methods and is included only to allow passing in arguments
  to the ``train`` method of the wrapped NLTK class.
  
  .. versionadded:: 0.6.2
  
  :rtype: A classifier
docstr_tok: ["Train","the","classifier","with","a","labeled","feature","set","and","return","the","classifier",".","Takes","the","same","arguments","as","the","wrapped","NLTK","class",".","This","method","is","implicitly","called","when","calling","``","classify","``","or","``","accuracy","``","methods","and","is","included","only","to","allow","passing","in","arguments","to","the","``","train","``","method","of","the","wrapped","NLTK","class",".","..","versionadded",":",":","0.6.2",":","rtype",":","A","classifier"]
code: def train(self, *args, **kwargs):
      """Train the classifier with a labeled feature set and return
      the classifier. Takes the same arguments as the wrapped NLTK class.
      This method is implicitly called when calling ``classify`` or
      ``accuracy`` methods and is included only to allow passing in arguments
      to the ``train`` method of the wrapped NLTK class.
  
      .. versionadded:: 0.6.2
  
      :rtype: A classifier
      """
      try:
          self.classifier = self.nltk_class.train(
              self.train_features, *args, **kwargs
          )
          return self.classifier
      except AttributeError:
          raise ValueError(
              "NLTKClassifier must have a nltk_class"
              " variable that is not None."
          )
  
imports: from __future__ import absolute_import
  from itertools import chain
  import nltk
  from textblob.compat import basestring
  from textblob.decorators import cached_property
  from textblob.exceptions import FormatError
  from textblob.tokenizers import word_tokenize
  from textblob.utils import strip_punc, is_filelike
  import textblob.formats
label_desc: Use image node_id 4 for calling the NLTKClassifier obj's underlying member method code with example usage: obj.train() and returns: self