forked from ReceiptManager/receipt-parser-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
65 lines (60 loc) · 1.11 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
# Where the receipts are stored
# Receipts should be simple text files
receipts_path: "data/txt"
# Market names roughly ordered by likelyhood.
# Can contain market locations for fuzzy parsing
markets:
Colruyt:
- colruyt
- Colruyt
Delhaize:
- Delhaize
- delhaize
Penny:
- penny
- p e n n y
- m a r k t gmbh
REWE:
- rewe
Real:
- real
Netto:
- netto-online
Kaiser's:
- kaiser
- kaiserswerther straße 270
Aldi:
- aldi
- friedrichstr 128—133
Lidl:
- lidl
Edeka:
- edeka
Drogerie:
- drogerie
Kodi:
- kodi
Getraenke:
- Getraenke Tempel
Tanken:
- shell
- esso station
- aral
- total tankstelle
- RK Tankstellen
Migros:
- genossenschaft migros
# Sum keys roughly ordered by likelyhood.
sum_keys:
- summe
- gesamtbetrag
- gesamt
- total
- sum
- zwischensumme
- bar
- te betalen
sum_format: '\d+(\.\s?|,\s?|[^a-zA-Z\d])\d{2}'
# Matches dates like 19.08.15 and 19. 08. 2015
date_format: '.*?(?P<date>(\d{2,4}(\.\s?|[^a-zA-Z\d])\d{2}(\.\s?|[^a-zA-Z\d])(19|20)?\d\d)\s+'