<p>For Syntactic Similarity 
There can be 3 easy ways of detecting similarity.</p>

<ul>
<li>Word2Vec</li>
<li>Glove</li>
<li>Tfidf or countvectorizer</li>
</ul>

<p>For Semantic Similarity
One can use BERT Embedding and try a different word pooling strategies to get document embedding and then apply cosine similarity on document embedding. </p>

<p>An advanced methodology can use BERT SCORE to get similarity. 
<a href="https://i.stack.imgur.com/Yg8c0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Yg8c0.png" alt="BERT SCORE"></a></p>

<p>Research Paper Link: <a href="https://arxiv.org/abs/1904.09675" rel="noreferrer">https://arxiv.org/abs/1904.09675</a></p>
How to compute the similarity between two text documents?
<p>I am looking at working on an NLP project, in any programming language (though Python will be my preference).</p>
<p>I want to take two documents and determine how similar they are.</p>