Extracting amount from free text I want to extract various amounts and tenure of contracts from different contract documents that we have.
For example: Mr xyz, this contact is valid for 3 Months and you have to pay $3000 as agreement fee.
Expected output : 3 Months, $3000
Please note that this is just an example but the sequence, format, currency and tenure is not fixed in the actual problem.
Named Entity Recognition (NER) models should be able to identify money amounts.

Other NLP techniques such as Dependency Parsing or Constituency Parsing can be used to identify the subject of the sentence - or the person the amount is referred to.

For the months amount, I think once you have other informations that's something you could extract with a "hard coded" script.