A simple implementation of the "paragraph vector"