I could classify words in all sentences in a text file as PERSON, LOCATION, ORGANIZATION etc. using Stanford's Named Entity Recognition. But how to extract names of a specific group of persons (eg: All borrowers names)?
You are looking for Knowledge Extraction, a task that goes far beyond Named Entity Recognition. It is an area of ongoing research, don't expect ready-made tools for this right now.