Answers.Body: <p>I would suggest to convert the documents into <strong>TF-IDF(use Gensim</strong>) vectors and then compare them using various similarity calculating techniques like <strong>cosine similarity</strong>.<br><br>
  You should read this amazing article for the same. I once used it while working on my project.</p>
  <p><a href="https://medium.com/@adriensieg/text-similarities-da019229c894" rel="nofollow noreferrer">https://medium.com/@adriensieg/text-similarities-da019229c894</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-18T05:53:37.207Z
Answers.LastActivityDate: 2020-08-18T05:53:37.207Z
Answers.UserDisplayName: Neha Chaudhary
Answers.Body: <p>Google has introduced <a href="https://ai.googleblog.com/2019/07/multilingual-universal-sentence-encoder.html" rel="nofollow noreferrer">Universal Sentence Encoder</a>, which converts sentences into vector representations while preserving the semantic details. The pre-trained models are available on <a href="https://tfhub.dev/google/universal-sentence-encoder/3" rel="nofollow noreferrer">Tensorflow Hub</a>. The <a href="https://colab.research.google.com/github/tensorflow/hub/blob/master/examples/colab/semantic_similarity_with_tf_hub_universal_encoder.ipynb" rel="nofollow noreferrer">Colab notebook</a> would help you get started as well.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-18T13:58:58.453Z
Answers.LastActivityDate: 2019-11-15T19:47:08.883Z
Answers.LastEditDate: 2019-11-15T19:47:08.883Z
Answers.UserDisplayName: Arun George
Body: <p>I would like to develop a platform in which people will write text and upload images. I am going to use Google API to classify the text and extract from the image all kinds of metadata. In the end, I am going to have a lot of text which describes the content (text and images). Later, I would like to show my users related posts (that is, similar posts, from the content point of view).</p>
  
  <p>What is the most ppropriate way of doing this? I am not an AI expert and the best approach from my prescriptive it to have some tools, like google API or Apache Lucene search engine, which can hide the details of how this is done.</p>
  
Tags: <natural-language-processing><classification><recommender-system>
Title: What is the best way to find the similarities between two text documents?
UserDisplayName: Nehemia Litterat
ThreadText: # What is the best way to find the similarities between two text documents?
  
  (Asked by: username_0 on 2019-09-18)
  
  I would like to develop a platform in which people will write text and upload images. I am going to use Google API to classify the text and extract from the image all kinds of metadata. In the end, I am going to have a lot of text which describes the content (text and images). Later, I would like to show my users related posts (that is, similar posts, from the content point of view).
  
  What is the most ppropriate way of doing this? I am not an AI expert and the best approach from my prescriptive it to have some tools, like google API or Apache Lucene search engine, which can hide the details of how this is done.
  
  **Tags:** natural-language-processing, classification, recommender-system
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2020-08-18. Score: 1
  
  I would suggest to convert the documents into **TF-IDF(use Gensim**) vectors and then compare them using various similarity calculating techniques like **cosine similarity**.  
    
  You should read this amazing article for the same. I once used it while working on my project.
  
  <https://medium.com/@adriensieg/text-similarities-da019229c894>
  
  
  ---
  
  ### Answer by username_2 on 2019-09-18. Score: 0
  
  Google has introduced [Universal Sentence Encoder](https://ai.googleblog.com/2019/07/multilingual-universal-sentence-encoder.html), which converts sentences into vector representations while preserving the semantic details. The pre-trained models are available on [Tensorflow Hub](https://tfhub.dev/google/universal-sentence-encoder/3). The [Colab notebook](https://colab.research.google.com/github/tensorflow/hub/blob/master/examples/colab/semantic_similarity_with_tf_hub_universal_encoder.ipynb) would help you get started as well.
  
  
  ---
  
  