svm.py 510 B

123456789101112131415161718
  1. # Natural Language Toolkit: SVM-based classifier
  2. #
  3. # Copyright (C) 2001-2019 NLTK Project
  4. # Author: Leon Derczynski <leon@dcs.shef.ac.uk>
  5. #
  6. # URL: <http://nltk.org/>
  7. # For license information, see LICENSE.TXT
  8. """
  9. nltk.classify.svm was deprecated. For classification based
  10. on support vector machines SVMs use nltk.classify.scikitlearn
  11. (or `scikit-learn <http://scikit-learn.org>`_ directly).
  12. """
  13. class SvmClassifier(object):
  14. def __init__(self, *args, **kwargs):
  15. raise NotImplementedError(__doc__)