Created by: kexinzhao
Please check #10735 (closed) for why we are doing this.
To solve the issue above, we have merged a PR #10817 and now there is utility functions here to create LoDTensor.
So this means that we can simplify the book example code using the new API. This PR tries to simplify the new word2vec book example.