title: How can I encode labels in TensorFlow?
body: <p>I need to convert my string labels into vectors like [0, 0, ... , 1, ... 0]. <br>
  As far as I could understand this is something that called one hot vector. <br>
  I have 10 classes, so 10 different string labels. <br></p>
  
  <p>Could anyone please help with direct and inverse transformation? <br>
  I'm newbie in tensorflow so please be kind.</p>