Is it possible to write a tool to build vectors (embedding) yourself?

Word2Vec is one of the better options out there

There are also versions that handle sentences.