Is there a NLP method like stemming, lemmatisation to figure out the below?
1=2
3=4
1) provide technical documentation
2) technical documentation
3) use software design patterns
4) software design patterns
Data Science Stack Exchange is a question and answer site for Data science professionals, Machine Learning specialists, and those interested in learning more about the field. It only takes a minute to sign up.
Sign up to join this communityIs there a NLP method like stemming, lemmatisation to figure out the below?
1=2
3=4
1) provide technical documentation
2) technical documentation
3) use software design patterns
4) software design patterns
As indicated by @hssay, your way seems to be PoS tagging and then removing verbs. If you don't want to get your hands dirty, you might prefer to use the off-the-shelf Google natural language web API. If you try the UI, click on the Analyse button, and then under the Syntax tab, look for Part of Speech and VERB.
Another similar toolkit that you could use as an API is StanfordNLP.
You are probably looking for "part of speech tagging". You can use any popular NLP library (check Spacy or NLTK) to do part of speech (POS) tagging. After that, you can eliminate tokens which have verbs as part of speech tags. POS tagging may not work well on very small sentences though.