Skip to content

Latest commit

 

History

History
 
 

tfHub_sentence_similarity

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Sentence Similarity

A script to calculate the similarity between two sentences.

  • Script uses Universal Sentence Encoder by tfhub.
  • Similarity score ranges from 0-1.
  • Higher score means higher similarity.

Instructions

  • Install requirements from requirements.txt.
  • Set your sentences in variables - sentence1, sentence2.
  • run script using - python tfHub_sentence_similarity.py.