I am trying to match patterns between two strings. For example, I have
pattern_search = ['education four year']
string1 = 'It is mandatory to have at least of four years of professional education'
string2 = 'need to have education four years with professional degree'
I am trying a way to say true when i try to find match between pattern_search and string1 & string2.
When I am using regex library match/search/findall doesn't help me. In string i have the all the words required but not in order, in string2 i have one extra word with added plural.
Currently I am splitting the strings checking with each word in pattern_search with each word in string1 & 2 after preprocessing, is there any way to find match between the sentences?