-2
$\begingroup$

I am using Word2Vec for text vectorization. It is doing a good job but some cases it is failing. For example "turn the computer off and on" and the sentence "restart the computer" does not have a very good similarity score, even though they mean the same thing. Doc2Vec is not doing a good job as my inputs are usually a couple of sentences and not a document.

Can anyone please suggest an approach which would give a good similarity score between "turn on and off" and "restart" and also other combinations like that?

$\endgroup$
2

2 Answers 2

0
$\begingroup$

If you are training your word2vec by yourself than you should increase your training dataset. You can easily get the Wikipedia database. If you are using a pretrained model, you can always fine tune it with additional data.

$\endgroup$
0
$\begingroup$

One approach you could take is to build sentence vectors using vectors generated for Words.

This post covers the different techniques you could use to achieve it.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.