Team Ai
Modelpublic

Gopal2002/CASH_AND_BANK_INVOICE

sourceHugging Faceupdated 3y agoView on Hugging Face
1likes10downloads
Model Card

SetFit with BAAI/bge-small-en-v1.5

This is a SetFit model that can be used for Text Classification. This SetFit model uses BAAI/bge-small-en-v1.5 as the Sentence Transformer embedding model. A LogisticRegression instance is used for classification.

The model has been trained using an efficient few-shot learning technique that involves:

  1. 1.Fine-tuning a Sentence Transformer with contrastive learning.
  2. 2.Training a classification head with features from the fine-tuned Sentence Transformer.

Model Details

Model Description

  • —Model Type: SetFit
  • —Sentence Transformer body: BAAI/bge-small-en-v1.5
  • —Classification head: a LogisticRegression instance
  • —Maximum Sequence Length: 512 tokens
  • —Number of Classes: 2 classes <!-- - Training Dataset: Unknown --> <!-- - Language: Unknown --> <!-- - License: Unknown -->

Model Sources

Model Labels

LabelExamples
0<ul><li>'GHt Sa [OI uco Bank\n\nvis Free Number: 180¢-193-9125 _\n\nDICGC INSURANCE UPTO 5 LAC\n\nBRANCH\n\nUCO Bank\nP NT\n(1) Consuitants are requested to note that all moneys\n\nremitted to the Bank should either be sent by Registered\nPost or handed over to the Cash Department, as no\n\n \n\nUco BANK\n\naq\n\nName\n\n"IFSC: uceaocotms\n\' dress\n\nKICK Code: 7428029504\n\nHIRAKUD\n-HIRAKED BRARCH HIRAKUS\nProae:\n\nindividual (s) outside. the Cash Department has/have JHARY EIST\nauthority to receive cash. KADAMPOLA\n(2) The account-holder should insist on delivery of Pass Book HERAKUD\n‘ made uptodate as far as possible on the same date; a 6.8%\n- otherwise he should obtain a receipt indicating when the HIRAKYD PIN .#oBlss\nPass Book will be delivered.\n(3) Deposit Rules in vogue can be obtained by account-holder TET. WaT / Asst.\nfrom the Branch on request Q28501 19027145\nPB.NG. }\n\n \n\n \n\n \n\nfe er ee me\n\n \n\x0c'</li><li>' \n\n= 2, ip\nO ~\nN 2\na\n: Y ve re ty\n) 3 x.\nNai] (F) my\n\n \n\ny Viayal chat aloala\nSH PPP ea [sys sys *\nas NB\n2\n=\n\ni x X we\na. = Xt +\n— W\nx 2> x xv)\n— ~ wa al on\nmh a\n\nx\n@\n\n \n\nSy\n>3\nS\nak\n\n \n\n \n\n= coemeirata nani\nyy“\nxX -~<\n. q - r " 2 e eee\nS TTT !\n“ sa S ~\ngaysey Maye oetoe\n\ni\'s . <4 " = : nics\n: 5 oy Sy . : aR N =\nS Sy = yy > =P OW\n, oe Q\n3 4 WK SS j 2 .\n-~ rs, , 4 i AS ~ si 6 .\nA Se S = Ce 4G ‘ tb. ee bene\n\na\n\n \n\nes\nTo a 3,\n-} ™ i] nest -— a Dome: eo . Sp a > Ee eh ao Ty ache oe ewe cede oe oe tee ~\n5 . “i a ( . - i -\n\n \n\n \n\x0c'</li><li>'Interest will be payable @ 24 % p.a. if the invoice is not paid within 30 days of the date of invoice.\n\nABBREVIATION: TB — Tower & Basin\nTO — Tower Only\n\n1. All taxes and duties invoiced herein are subject to revision depending upon the final assessment\n\nby the Statutory Authorities. Any such revision will be to buyer’s account.\n\n2. Payments should be made by A/C Payee cheque/Pay oder/bank draft/Online fund transfer\n\nthrough NEFT/RTGS platform in favour of “Paharpur Cooling Towers Ltd.”. Payment towards this\n\nbill made in any other form will be done entirely at your own risk.\n\n3. ALL DISPUTES SUBJECT TO CALCUTTA JURISDICTION ONLY.\n\x0c'</li></ul>
1<ul><li>'. Ae - PR CSeathetn & 3)\n" J She ase 9 Pao\n\n‘s lad Bank Afr o Steppe\nINfave 4 fi foe & ats bent\n\nHINDALCO INDUSTRIES LIMITED\nHIRAKUD\n\nPAYMENT ORDER\n\nPayto Payment to Mr.Dilip Das\n\n\nTravel expenses for Interview w candidate (A (Admin) J] jo. _Cash Vr.No. Q pisl\n\npk check he inkwes IFSC. code Emp.No/s.codeNo. _ OT Pago\n\nby Cash/Cheque/D.D./Transfer the sum of —Rs.13,695.00 _AP.Vr.No.\nRupees Thirteen Thousand Six Hundred Ninety Five Only ———__ ; 3 ua 202\nDate\n\n \n\n \n\n \n\nX\n\n5\n\nee\nain & Flight Tickets is. _ 13,195.00\nConvenience expenses Rs. — 500. 00°\n\n \n\n \n\nDetail Travel plan and tickets enclosed\n\nBank Account details also enclosed\n\n \n\n \n \n \n\nPrepared by Recommended by Endorsed by\nDate q Head- HR\n: Hirakud Complex\n\n \n \n \n\n \n \n\n \n\né y Cash 2. DAD ey ‘ZO\n(i \'y Cheque No DVPOVe Bee\n\n \n\n \n \n\nState Bank of India, Burla\nState Bank of India, Hirakud\n\nPunjab National Bank, Sambalpur [PNB-1]\nUCO Bank, Hirakud\n\nUCO Bank, Sambalpur\nIDB! , Sambaipur (IDB! -1)\nIDBI , Sambalpur (IDBI -2)\n\n \n \n \n\n \n\n \n \n\n \n\n \n \n\n \n\n \n \n \n \n \n\n \n\n \n\n \n \n\nCashier\n\n \n\n \n\nReceived Payment Charge Account Checked by\n\n \n\nSignature Signature\n\x0c'</li><li>'HINDALCO INDUSTRIES LIMITED\nHIRAKUD\n\nPAYMENT ORDER\nPay to FRakesh Gupta ; . .3898 BA (Q-1 2-15\n\nCash Vr.No.\n\n \n\n \n\n \n\n— - Emp.No./S.Code No. $-392 \nby Cash/Cheque/D.D./Transfer the sum of aAP vr.No. 91 355%\nRupees Four Thousand Six Hundred Only\n\n \n\n \n\n \n\n22\nDate 48-02-16\nDetails of Payment Amount\nTowards change of Battery of Vehicle No. OR-02-AM-8904\n\nas detailed below: (Bill Attached)\n(i) Bill No. 3898 Dt.19-12-2015\n\n \n\nTotal Rs. . 4,600.00\n\nPrepared by Recommended by Endorsed by Authorised by Approved by\nLanier bnwnnWenuw \\ \\ .\n\\4 = Ww \\ le\n\n\\ov Jv JI 4.) ee Zan”\n\nDate Dept Head Plant Head Hed - Location Head\n\n \n\n \n\nPayment made on\n(a) By Cash\n\n(b) By Cheque No.\n\n \n\n \n\nState Bank of India, Burla\n\nState Bank of india, Hirakud\n\nPunjab National Bank, Sambalpur [PNB-1]\nUCO Bank, Hirakud\n\nUCO Bank, Sambaipur\n\n{DBI , Sambalpur (IDB! -1)\n\nIDBI , Sambalpur (IDBI -2)\n\n \n\n \n\n \n\n \n\n \n\nCashier\n\nReceived Payment Charge Account Checked by\n\nSignature Signature\n\x0c'</li><li>'tT) Ce cfd\n\n \n \n \n \n \n \n \n\nADITYA BIRLA HINDALCO INDUSTRIES LIMITED\n874 HIRAKUD POWER\n\naN’ PAYMENT ORDER\n\nPP -200- AI66\n\nCash Vr.No.\n\n \n \n \n\nAP.Vr.No._G/8Ol tT\n\nby Cash/Cheque/D.D./Transfer the sum of\nELEVEN THOUSAND FIFTY FOUR ONLY\n\n \n\nRupees\n\n \n \n \n \n\nDate:- 8.01.20\n\nENERGY CHARGES OF INTAKE CHAMBER FOR THE MONTH OF DEC 2019,BILL NO- L\n1533 2639.00\n8415.00 ~\n\n“\nTotal Total Rs. 41054.00\n\nPrepared by Recammeded by Endorsed by Authorised By Approved by\n\npu ( Nx\nHead-F&A Head - Sambalpur Cluster\nCharge Account an ou\n\n \n\n \n \n \n \n\n \n\nENERGY CHARGES OF ASH MOUND FOR THE MONTH OF DEC 2019, BILL NO-1532\n\n \n\n \n\n \n\n \n \n \n\n \n\n \n\n \n \n \n \n \n \n \n\nState Bank of india,\nState Bank of India, Buria\n\nPunjab National Bank, Sambalpur [PNB-1]\nPunjab National Bank, Kolkata {[PNB-2]\nUCO Bank, Hirakud\nUCO Bank, Sambalpur\n\n—\n\n \n \n \n \n \n\nes\neee\n\nReceived Payment Charge Account Checked by\n\n \n\nSignature Signature\n\x0c'</li></ul>

Evaluation

Metrics

LabelAccuracy
all1.0

Uses

Direct Use for Inference

First install the SetFit library:

bash
pip install setfit

Then you can load this model and run inference.

python
from setfit import SetFitModel

# Download from the 🤗 Hub
model = SetFitModel.from_pretrained("Gopal2002/CASH_AND_BANK_INVOICE")
# Run inference
preds = model(" 
")

<!--

Downstream Use

List how someone could finetune this model on their own dataset. -->

<!--

Out-of-Scope Use

List how the model may foreseeably be misused and address what users ought not to do with the model. -->

<!--

Bias, Risks and Limitations

What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model. -->

<!--

Recommendations

What are recommendations with respect to the foreseeable issues? For example, filtering explicit content. -->

Training Details

Training Set Metrics

Training setMinMedianMax
Word count1201.25344241
LabelTraining Sample Count
0113
133

Training Hyperparameters

  • —batch_size: (32, 32)
  • —num_epochs: (2, 2)
  • —max_steps: -1
  • —sampling_strategy: oversampling
  • —bodylearningrate: (2e-05, 1e-05)
  • —headlearningrate: 0.01
  • —loss: CosineSimilarityLoss
  • —distancemetric: cosinedistance
  • —margin: 0.25
  • —endtoend: False
  • —use_amp: False
  • —warmup_proportion: 0.1
  • —seed: 42
  • —evalmaxsteps: -1
  • —loadbestmodelatend: False

Training Results

EpochStepTraining LossValidation Loss
0.002310.3054-
0.1142500.1162-
0.22831000.0043-
0.34251500.0015-
0.45662000.0014-
0.57082500.0008-
0.68493000.0013-
0.79913500.001-
0.91324000.0004-
1.02744500.0008-
1.14165000.0008-
1.25575500.0011-
1.36996000.0008-
1.48406500.0007-
1.59827000.0005-
1.71237500.0005-
1.82658000.0007-
1.94068500.0005-

Framework Versions

  • —Python: 3.10.12
  • —SetFit: 1.0.3
  • —Sentence Transformers: 2.2.2
  • —Transformers: 4.35.2
  • —PyTorch: 2.1.0+cu121
  • —Datasets: 2.16.1
  • —Tokenizers: 0.15.0

Citation

BibTeX

bibtex
@article{https://doi.org/10.48550/arxiv.2209.11055,
    doi = {10.48550/ARXIV.2209.11055},
    url = {https://arxiv.org/abs/2209.11055},
    author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
    keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
    title = {Efficient Few-Shot Learning Without Prompts},
    publisher = {arXiv},
    year = {2022},
    copyright = {Creative Commons Attribution 4.0 International}
}

<!--

Glossary

Clearly define terms in order to be accessible across audiences. -->

<!--

Model Card Authors

Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction. -->

<!--

Model Card Contact

Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors. -->