Skip to content

This project is implemented to check the similarity between sentences and provide a similarity score based on how similar the sentences are compared to each other.

Notifications You must be signed in to change notification settings

Gulfam92/DocumentSimilarity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

DocumentSimilarity Algorithm

This project is implemented to check the similarity between sentences and provide a similarity score based on how similar the sentences are compared to each other.

Steps to run the program

  1. Run the documentSimilarity.py file in any python editor.
  2. After running the file, the terminal will ask to enter Sentence 1, Sentence 2 and Sentence 3 one after other.
  3. At the end, the program will poduce the final similarity score between Sentence 1 & Sentence 2 and Sentence 1 & Sentence 3.

The below sample sentences could be used to run the program and check the final similarity scores for the sample sentences.

Sentence 1:
The easiest way to earn points with Fetch Rewards is to just shop for the products you already love. If you have any participating brands on your receipt, you'll get points based on the cost of the products. You don't need to clip any coupons or scan individual barcodes. Just scan each grocery receipt after you shop and we'll find the savings for you.

Sentence 2:
The easiest way to earn points with Fetch Rewards is to just shop for the items you already buy. If you have any eligible brands on your receipt, you will get points based on the total cost of the products. You do not need to cut out any coupons or scan individual UPCs. Just scan your receipt after you check out and we will find the savings for you.

Sentence 3:
We are always looking for opportunities for you to earn more points, which is why we also give you a selection of Special Offers. These Special Offers are opportunities to earn bonus points on top of the regular points you earn every time you purchase a participating brand. No need to pre-select these offers, we'll give you the points whether or not you knew about the offer. We just think it is easier that way.

About

This project is implemented to check the similarity between sentences and provide a similarity score based on how similar the sentences are compared to each other.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages