shivam701171 commited on
Commit
5c218e5
·
verified ·
1 Parent(s): 3a5cd77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -1829,18 +1829,18 @@ if __name__ == "__main__":
1829
  main()
1830
 
1831
 
1832
- 'date': [
1833
- r'date\s*:?\s*(\d{1,2}[/\-\.]\d{1,2}[/\-\.]\d{2,4})',
1834
- r'(?:invoice|bill)\s*date\s*:?\s*(\d{1,2}[/\-\.]\d{1,2}[/\-\.]\d{2,4})',
1835
- r'(?:^|\s)(\d{1,2}[/\-\.]\d{1,2}[/\-\.]\d{2,4})(?=\s|$)',
1836
- r'(\d{4}[/\-\.]\d{1,2}[/\-\.]\d{1,2})',
1837
- r'(\d{1,2}\s+(?:jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\s+\d{2,4})',
1838
  ],
1839
- 'quantity': [
1840
- r'qty\s*:?\s*(\d+)',
1841
- r'quantity\s*:?\s*(\d+)',
1842
- r'(?:units?|pcs?|pieces?)\s*:?\s*(\d+)',
1843
- r'(\d+)\s*(?:pcs?|units?|items?|pieces?)',
1844
  ]
1845
 
1846
  text_lower = text.lower()
 
1829
  main()
1830
 
1831
 
1832
+ 'date': [
1833
+ r'date\s*:?\s*(\d{1,2}[/\-\.]\d{1,2}[/\-\.]\d{2,4})',
1834
+ r'(?:invoice|bill)\s*date\s*:?\s*(\d{1,2}[/\-\.]\d{1,2}[/\-\.]\d{2,4})',
1835
+ r'(?:^|\s)(\d{1,2}[/\-\.]\d{1,2}[/\-\.]\d{2,4})(?=\s|$)',
1836
+ r'(\d{4}[/\-\.]\d{1,2}[/\-\.]\d{1,2})',
1837
+ r'(\d{1,2}\s+(?:jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\s+\d{2,4})',
1838
  ],
1839
+ 'quantity': [
1840
+ r'qty\s*:?\s*(\d+)',
1841
+ r'quantity\s*:?\s*(\d+)',
1842
+ r'(?:units?|pcs?|pieces?)\s*:?\s*(\d+)',
1843
+ r'(\d+)\s*(?:pcs?|units?|items?|pieces?)',
1844
  ]
1845
 
1846
  text_lower = text.lower()