What wodenokoto said, and also look up &quot;Word Embeddings&quot;, word2vec is a popular method.<p><a href="https:&#x2F;&#x2F;www.tensorflow.org&#x2F;versions&#x2F;r0.7&#x2F;tutorials&#x2F;word2vec&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;www.tensorflow.org&#x2F;versions&#x2F;r0.7&#x2F;tutorials&#x2F;word2vec&#x2F;...</a><p>There&#x27;s a bunch of blogs, tutorials, etc, around word2vec and other methods of generating vectors from a training set of words.<p>Also, in the tensorflow models codebase where this syntaxnet code lives, there is an another tensorflow-using-method of generating word embeddings with demonstration code called Swivel<p><a href="https:&#x2F;&#x2F;github.com&#x2F;tensorflow&#x2F;models&#x2F;tree&#x2F;master&#x2F;swivel" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tensorflow&#x2F;models&#x2F;tree&#x2F;master&#x2F;swivel</a>