forked from ReceiptManager/receipt-parser-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
98 lines (74 loc) · 1.39 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Define the tesseract language
language: deu
# Enable https
https: false
results_as_json: false
# Where the receipts are stored
# Receipts should be simple text files
receipts_path: "data/txt"
# Market names roughly ordered by likelihood.
# Can contain market locations for fuzzy parsing
markets:
Colruyt:
- colruyt
- Colruyt
Delhaize:
- Delhaize
- delhaize
Penny:
- penny markt
- 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:
- summe
- gesamtbetrag
- gesantbetrag
- gesamt
- total
- sum
- zwischensumme
- bar
- te betalen
- rockgeld
- rusckgeld
- rückgeld
ignore_keys:
- mwst
- kg x
- stkx
- stk
sum_format: '\d+(\.\s?|,\s?|[^a-zA-Z\d])\d{2}'
item_format: '([a-zA-Z].+)\s(-|)((\d|\d{2}),(\d{2}|\d{3}))\s'
item_format_metro: '[0-9]\s(.*?)\d.()((\d|\d{2})(\,|\.)\d{2})\s([A|a]|[B|b])'
date_format: '((\d{2}\.\d{2}\.\d{2,4})|(\d{2,4}\/\d{2}\/\d{2})|(\d{2}\/\d{2}\/\d{4}))'