I have an input file like this
John completed his graduation John is working for an IT industry Thomas completed his graduation John completed his graduation Thomas is working for an IT industry Thomas is working for an IT industry
I want an output like this
John word has 2 Graduations Thomas word has 2 IT industry
Can any body help me out