'How to extract full postal home address data from a text file using Stanford NLP java

I am trying to extract PII data from a .txt file completed to extract phone number credit card email id and much more using regex if possible is there any other method to extract these. i am stuck at extracting full address of home or office address ,i have successfully extracted name and location keyword using Stanford NLP from a String text but not able to extract it from a .txt file.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source