I am working on an NLP project and I need the following functionality illustrated by an example. Say there is a sentence
Tell Sam that he will have to leave without Arthur, as he is sick.
In this statement, the first he
has to be tagged to Sam and the second he
to Arthur. I work in Python. Any suggestions on what I can use to get the following functionality?