Word2Vec API created from scratch