Click4Ai

236.

Medium

Implement a function to predict whether two sentences are adjacent in a text. **Example:** Given two sentences 'I love to eat' and 'I love to sleep', the function should return True if they are adjacent. **Constraints:** The function should use a pre-trained language model and the input sentences should be strings.

Test Cases

Test Case 1
Input: 'I love to eat', 'I love to sleep'
Expected: True
Test Case 2
Input: 'This is a test', 'This is another test'
Expected: False
+ 3 hidden test cases