joemaatouk commited on
Commit
bbdd86b
·
1 Parent(s): a6e8ca7

Update EZPass-Dataset.py

Browse files
Files changed (1) hide show
  1. EZPass-Dataset.py +7 -1
EZPass-Dataset.py CHANGED
@@ -43,7 +43,10 @@ archivePrefix = {arXiv},
43
  _DESCRIPTION = """\
44
  """
45
 
 
46
  _URL = "https://huggingface.co/datasets/joemaatouk/EZPass-Dataset/resolve/main/EZPass-images.tar.gz"
 
 
47
  descriptions = [
48
  "{\"header\": {\"to\": \"FEITH SYSTEMS AND SOFTWARE\",\"billing_address\": \"425 MARYLAND DR FT WASHINGTON PA 19034-2501\",\"invoice_number\": \"127806097-1\", \"account_number\": \"5526331\", \"invoice_date\": \"08/21/2023\", \"license_plate\": \"PA-KMB5413\", \"payment_due\": \"$42.40\", \"payment_due_date\": \"09/11/2023\", \"amount_due\": \"$42.40\"}}",
49
  "{\"header\": {\"to\": \"FEITH SYSTEMS AND SOFTWARE\",\"billing_address\": \"425 MARYLAND DR FT WASHINGTON PA 19034-2501\",\"mailing_number\": \"B1531128696669\", \"mailing_date\": \"06/29/2023\",\"NOTD_amount_due\": \"$6.00\",\"by\": \"07/31/2023\", \"toll_amount_due\": \"$6.00\", \"video_toll_transaction_number\": \"B1531128696669-00001\", \"state/license_plate\": \"PA/LSY0217\", \"location_toll\": \"Baltimore City I-95 Fort McHenry Tunnel\", \"exit_date_and_time_of_toll\": \"10/11/2022 05:40:51 PM\"}}",
@@ -53,6 +56,9 @@ descriptions = [
53
  "{\"header\": {\"to\": \"FEITH SYSTEMS AND SOFTWARE\",\"billing_address\": \"425 MARYLAND DR FT WASHINGTON PA 19034-2501\",\"invoice_number\": \"112580557-1\", \"account_number\": \"1214734\", \"license_plate\": \"PA-LSY0217\", \"invoice_date\": \"09/23/21\",\"toll_charges\": \"$0.00\", \"payments\": \"$0.00\",\"adjustments\": \"$0.00\",\"fees\": \"$0.00\",\"payment_due\": \"$6.00\", \"payment_due_date\": \"10/13/2021\", \"amount_due\": \"$6.00\"}}"
54
  ]
55
 
 
 
 
56
  class EZPassTargz(datasets.GeneratorBasedBuilder):
57
  """SQUAD: The Stanford Question Answering Dataset. Version 1.1."""
58
 
@@ -91,7 +97,7 @@ class EZPassTargz(datasets.GeneratorBasedBuilder):
91
  #extract the text from the filename
92
  yield idx,{
93
  "text": descriptions[idx],
94
- "image":{"path": filepath,"bytes":image.read()}
95
 
96
  }
97
  idx+=1
 
43
  _DESCRIPTION = """\
44
  """
45
 
46
+
47
  _URL = "https://huggingface.co/datasets/joemaatouk/EZPass-Dataset/resolve/main/EZPass-images.tar.gz"
48
+ """
49
+
50
  descriptions = [
51
  "{\"header\": {\"to\": \"FEITH SYSTEMS AND SOFTWARE\",\"billing_address\": \"425 MARYLAND DR FT WASHINGTON PA 19034-2501\",\"invoice_number\": \"127806097-1\", \"account_number\": \"5526331\", \"invoice_date\": \"08/21/2023\", \"license_plate\": \"PA-KMB5413\", \"payment_due\": \"$42.40\", \"payment_due_date\": \"09/11/2023\", \"amount_due\": \"$42.40\"}}",
52
  "{\"header\": {\"to\": \"FEITH SYSTEMS AND SOFTWARE\",\"billing_address\": \"425 MARYLAND DR FT WASHINGTON PA 19034-2501\",\"mailing_number\": \"B1531128696669\", \"mailing_date\": \"06/29/2023\",\"NOTD_amount_due\": \"$6.00\",\"by\": \"07/31/2023\", \"toll_amount_due\": \"$6.00\", \"video_toll_transaction_number\": \"B1531128696669-00001\", \"state/license_plate\": \"PA/LSY0217\", \"location_toll\": \"Baltimore City I-95 Fort McHenry Tunnel\", \"exit_date_and_time_of_toll\": \"10/11/2022 05:40:51 PM\"}}",
 
56
  "{\"header\": {\"to\": \"FEITH SYSTEMS AND SOFTWARE\",\"billing_address\": \"425 MARYLAND DR FT WASHINGTON PA 19034-2501\",\"invoice_number\": \"112580557-1\", \"account_number\": \"1214734\", \"license_plate\": \"PA-LSY0217\", \"invoice_date\": \"09/23/21\",\"toll_charges\": \"$0.00\", \"payments\": \"$0.00\",\"adjustments\": \"$0.00\",\"fees\": \"$0.00\",\"payment_due\": \"$6.00\", \"payment_due_date\": \"10/13/2021\", \"amount_due\": \"$6.00\"}}"
57
  ]
58
 
59
+ """
60
+ descriptions = ["test","test2","test3","test4","test5","test6"]
61
+
62
  class EZPassTargz(datasets.GeneratorBasedBuilder):
63
  """SQUAD: The Stanford Question Answering Dataset. Version 1.1."""
64
 
 
97
  #extract the text from the filename
98
  yield idx,{
99
  "text": descriptions[idx],
100
+ "image":{"filepath": filepath,"image":image.read()},
101
 
102
  }
103
  idx+=1