title: How do I do use non-integer string labels with SVM from scikit-learn? Python
body: <p>Scikit-learn has fairly user-friendly python modules for machine learning.</p>
  
  <p>I am trying to train an SVM tagger for Natural Language Processing (NLP) where my labels and input data are words and annotation. E.g. Part-Of-Speech tagging, rather than using double/integer data as input tuples <code>[[1,2], [2,0]]</code>, my tuples will look like this <code>[['word','NOUN'], ['young', 'adjective']]</code></p>
  
  <p>Can anyone give an example of how i can use the SVM with string tuples? the tutorial/documentation given here are for integer/double inputs. <a href="http://scikit-learn.org/stable/modules/svm.html">http://scikit-learn.org/stable/modules/svm.html</a></p>