title: To bring string data to one hot vector for machine learning
body: <p>everyone. I have a list with strings:</p>
  
  <pre><code>labels = ["Synonym", "Antonym", "Not relevant", "Synonym", "Antonym"]
  </code></pre>
  
  <p>There are  3 different labels and I want first to refer them to numbers 1,2 and 3 and then build one hot vector from them, like for example for label 3 --> 0
              0
              1
  Have sombody an idea how to do it?</p>