I am new to named entity recognition. I have a requirement to extract some specific data from corpus.

Two corpus example:

> 
> Hi, Rajesh Das want to buy this car. Rakesh Das will use this car.
> 
> 
> Hi, Rakesh Das is brother of Rajesh Das. Rajesh Das will buy this car.
> 
> 
> 

From these above example I need to extract the buyer name. So obviously the name which is near to buy word will be buyer name. Here position of Rajesh Das is different for two corpus. I can not figure out which algorithm need to implement for extracting buyer name.

I followed the <https://towardsdatascience.com/named-entity-recognition-with-nltk-and-spacy-8c4a7d88e7da> post which implement SpaCy and NLTK. It only provides all name list. Can someone provides me the idea how to get buyer name.