Soh19 commited on
Commit
4019c1b
·
verified ·
1 Parent(s): d902606

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -9
README.md CHANGED
@@ -43,8 +43,7 @@ tokenizer = AutoTokenizer.from_pretrained("paytm/text2graph1.5b-int8")
43
 
44
 
45
  # Prepare your input text
46
- text = """
47
- ''
48
  {
49
  "task": "Extract structured information from SMS messages to identify financial details, message purpose, and related information",
50
  "instructions": [
@@ -79,16 +78,17 @@ text = """
79
  "key_themes: Extract only 3-5 main themes actually discussed in the SMS as an array of strings - avoid redundant or fabricated themes",
80
  "message_type: Categorize as exactly one of: alert message, delayed payment, repayment reminder, auto-pay reminder, refund information, payment failed information, settlement notification by payment aggregator, loan_emi_reminder, emi_confirmation, loan_offer, new_merchant_acquisition, product_offer",
81
  "product_type: Identify as one of: credit card, debit card, home loan, vehicle loan, merchant_qr_kit, soundbox (or null if not mentioned)",
82
- "aggregator_name: Extract payment aggregator name like paytm, phonepe, gpay , bharatpe, one 97 communications (or null if not mentioned). The namees can be written with differen caps lock , inside urls etc. Pay attention and extract it correctly.",
83
  "bank_nbfc_fintech_name: Extract the name of the financial institution the message is from (or null if not present). A bank might have aggregator service but dont confuse the bank with aggregator",
84
  "emi_amount: Extract only a clearly identified EMI amount as a float number (or null if not mentioned)",
85
  "Total_overdue_amount: Extract only a clearly identified total overdue or bill amount as a float (or null if not mentioned)",
86
- "available_bank_balance: Extract only a clearly identified available bank balance as a float (or null if not mentioned)",
87
  "min_overdue_amount: Extract only a clearly identified minimum amount due as a float (or null if not mentioned)",
88
  "overdue_date: Extract only a clearly identified payment due date as string (or null if not mentioned)",
89
  "collection_team_lead: Extract only explicit mentions of collection team involvement (or null if not present)",
90
  "legal_notice: Extract only explicit mentions of legal notices (or null if not mentioned)",
91
- "customer_name: Extract only an explicitly identified customer name (or null if not mentioned)"
 
92
  ],
93
  **example**
94
  <input>"Dear Qagent, your XYZ credit card bill of Rs. 24,500 is due on 15-Jul-2023. Min amount due: Rs. 2,450. Account balance on 3-Jul-2023 is Rs 5,000.Pay now to avoid late fees. - XYZ Bank"</input>
@@ -105,12 +105,12 @@ text = """
105
  "overdue_date": "2023-07-15",
106
  "collection_team_lead": null,
107
  "legal_notice": null,
108
- "customer_name": "Qagent"
 
109
  }</output>
110
-
111
- <input>"Dear SBI Cardholder, outstanding of Rs. 9491.00, on your credit card ending 2852 is due on 31-JAN-25. Min. Amount Due: Rs. 475.00. Please ignore if already paid. Click here: https://sbicard.com/quickpaynet to make online payment."</input>
112
  <output>
113
- """
114
 
115
  # Tokenize input and generate output
116
  inputs = tokenizer(text, return_tensors="pt")
 
43
 
44
 
45
  # Prepare your input text
46
+ text = '''
 
47
  {
48
  "task": "Extract structured information from SMS messages to identify financial details, message purpose, and related information",
49
  "instructions": [
 
78
  "key_themes: Extract only 3-5 main themes actually discussed in the SMS as an array of strings - avoid redundant or fabricated themes",
79
  "message_type: Categorize as exactly one of: alert message, delayed payment, repayment reminder, auto-pay reminder, refund information, payment failed information, settlement notification by payment aggregator, loan_emi_reminder, emi_confirmation, loan_offer, new_merchant_acquisition, product_offer",
80
  "product_type: Identify as one of: credit card, debit card, home loan, vehicle loan, merchant_qr_kit, soundbox (or null if not mentioned)",
81
+ "aggregator_name: Extract payment aggregator name like paytm, phonepe, gpay , bharatpe, one 97 communications (or null if not mentioned). The namees can be written with differen caps lock , inside urls etc. Pay attention and extract it correctly.Do not return bank names in aggregators",
82
  "bank_nbfc_fintech_name: Extract the name of the financial institution the message is from (or null if not present). A bank might have aggregator service but dont confuse the bank with aggregator",
83
  "emi_amount: Extract only a clearly identified EMI amount as a float number (or null if not mentioned)",
84
  "Total_overdue_amount: Extract only a clearly identified total overdue or bill amount as a float (or null if not mentioned)",
85
+ "available_bank_balance: Extract only a clearly identified available bank balance as a float (or null if not mentioned). Do not mention available balance when not given",
86
  "min_overdue_amount: Extract only a clearly identified minimum amount due as a float (or null if not mentioned)",
87
  "overdue_date: Extract only a clearly identified payment due date as string (or null if not mentioned)",
88
  "collection_team_lead: Extract only explicit mentions of collection team involvement (or null if not present)",
89
  "legal_notice: Extract only explicit mentions of legal notices (or null if not mentioned)",
90
+ "customer_name: Extract only an explicitly identified customer name (or null if not mentioned)",
91
+ "settlement_amount": Amount credited by the aggregator to the bank account of the merchant/customer,
92
  ],
93
  **example**
94
  <input>"Dear Qagent, your XYZ credit card bill of Rs. 24,500 is due on 15-Jul-2023. Min amount due: Rs. 2,450. Account balance on 3-Jul-2023 is Rs 5,000.Pay now to avoid late fees. - XYZ Bank"</input>
 
105
  "overdue_date": "2023-07-15",
106
  "collection_team_lead": null,
107
  "legal_notice": null,
108
+ "customer_name": "Qagent",
109
+ "settlement_amount":null
110
  }</output>
111
+ <input>"{input}"</input>
 
112
  <output>
113
+ '''
114
 
115
  # Tokenize input and generate output
116
  inputs = tokenizer(text, return_tensors="pt")