Training the Object2Vec algorithm