I have a text file which has a data as below. There are many such lines but not of the same pattern
Celina is acting as assistant to John, M.D.
I want to categorize Celina as assistant and John as M.D.
I need guidance on what would be the approach to handle such problems? Is it Sentiment Analysis?