I am new to spacy. I try to spot the words which have relationship with money or date.
import spacy
from spacy import displacy
nlp = spacy.load("en_core_web_sm")
doc=nlp("""The client is look at 5x income. He has a loan with $5000 outstanding which can be repaid now this will free up $50 monthly. Credit card outstanding of $60 client will look to pay this off with bonus in September.""")
displacy.render(doc,style="ent",jupyter=True)
displacy.render(doc,style="dep",jupyter=True)
According to dependency output (not shown here), I try to search for words to refer to money and date (for example, $60 -> credit card outstanding). After reading lots of tutorials (including spacy) and blogs, I think I should use the dependency rules based match. However, it seems that I need to specify the number (money) in the pattern with a specific structure (for example, a pattern structure for $10000). Can we create a pattern for any money entity?
Also in order to build the pattern, can someone help me build a pattern for $60 and $5000? Thank you