Finding keywords in a string/paragraph

34 Views Asked by At

I have a function called similar that identifies if the two words are similar.

I need to find if any keyword exists in the Paragraph. These keywords can be 3 words,2 words or 1 word. For example: clutch,power steering, Intelligence control unit or control unit.

How do I implement it? I have only figured out to find the keywords for 1 word keyword only. I am splitting the paragraph at the the spaces. Removing stopwords using nltk and using itertools.product to compare the two lists. Can someone help me?

0

There are 0 best solutions below