This problem involves creating a function to determine the similarity between two sentences. **Example:** Given two sentences 'The cat sat on the mat' and 'The dog sat on the mat', the function should return a similarity score between 0 and 1. **Constraints:** The input sentences will be strings, and the output should be a float. The function should be able to handle multiple sentence structures and vocabulary.
Test Cases
Test Case 1
Input:
"The cat sat on the mat", "The dog sat on the mat"Expected:
0.75Test Case 2
Input:
"The sun is shining", "The sun is not shining"Expected:
0.5+ 3 hidden test cases