文字:“PATANJALT MEGA SoRE
AUND PUNE411007
AROGYADAYI
MOB :: 7507489862
消费税号:27ABcFA1565H1ZM“
如何使用spacy提取此类信息?
nlp = spacy.load('en_core_web_sm')
for entity in doc.ents:
print(entity.text, entity.label_)
I did this but the ans is :
(u'27ABcFA1565H1ZM', u'CARDINAL')